Bringing an MC app to the front

Richard Gaskin ambassador at fourthworld.com
Wed Dec 18 17:22:01 EST 2002


Ken Ray wrote:

>> 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 result 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, 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

I have no trouble opening the file, the problem is bringing that app to the
front.

Will that script bring the app forward?

How can I bring the app forward without opening a document?

-- 
 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




More information about the metacard mailing list