Bringing an MC app to the front

Ken Ray kray at sonsothunder.com
Wed Dec 18 17:03:01 EST 2002


RIchard, you can use "open file" through AppleScript; MC doesn't seem to
support the activate event properly (I've already told Scott about this).
Here's an example:

tell application "Finder"
   open file <path to the app>
end tell

That should do it...


----- Original Message -----
From: "Richard Gaskin" <ambassador at fourthworld.com>
To: "MetaCard List" <metacard at lists.runrev.com>
Sent: Wednesday, December 18, 2002 1:08 PM
Subject: Bringing an MC app to the front


> I have two MC-based apps in which one causes the other to open documents
> within it.
>
> Thanks to the discussion here before, I have good communication beteen the
> apps (Apple events on Mac, polling a file on Win).
>
> Now the problem is that if the second app is already open, it opens
> documents okay but stays in the background.
>
> How can I hae one MC-based app bring another one to the front?
>
> I've tried:
>
>    get "tell application" && quote & tAppName & quote && "to activate"
>    do it as applescript
>
> Even though the value of tAppName is correct, the reult comes back
> "execution error".  Do I need to build an AppleScript dictionary entry for
> "activate" for that to work?  Earler discussion here made it seem somehow
> simpler...
>
>
> --
>  Richard Gaskin
>  Fourth World Media Corporation
>  Developer of WebMerge 2.1: Publish any database on any site
>  ___________________________________________________________
>  Ambassador at FourthWorld.com       http://www.FourthWorld.com
>  Tel: 323-225-3717                       AIM: FourthWorldInc
>
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard
>




More information about the metacard mailing list