Re: topping a window of an application not understanding AppleScript
Re: topping a window of an application not understanding AppleScript
- Subject: Re: topping a window of an application not understanding AppleScript
- From: julifos <email@hidden>
- Date: Thu, 12 Jun 2003 13:31:04 +0200
>
Dear AppleScipt-programmers,
>
>
I'm not experienced using AppleScript, so please excuse, if my question
>
is "too easy" to be asked. ;-)
>
>
I'm trying to run an application through AppleScript that does not
>
understand apple-script at all. This works fine by the "Launch Application"
>
command. My problem is now, that I want the window of this application to
>
be topped. Usually I'd use
>
>
tell application "Finder"
>
activate application "MMX"
>
end tell
>
>
where "MMX" is the name of the application. But this seems not to work
>
becuause
>
the application I want to activate doesn't understand the AppleScript-command
>
"activate": I get the AppleScript error message "Connection is Invalid".
>
>
Does anyone know how to activate the (already opened) window of an application
>
that does not understand AppleScript, maybe by GUI commands, or is this
>
totally
>
impossible?
>
>
Thanks for your help,
>
>
Gerald
Hi, Gerald!
You can try this:
#####################################
tell application "Finder" --> or "System Events"
set frontmost of application process "Microsoft Word" to true
end tell
#####################################
JJ
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.