Frontmost
Frontmost
- Subject: Frontmost
- From: Hudson Barton <email@hidden>
- Date: Thu, 5 May 2005 07:44:17 -0400
I'm trying to run a script from the script menu and then return the
user to application he was in before the script ran. The following
works just fine when run from the Script Editor, but not when run
from the Script Menu. Why?
tell application "System Events"
set devant to (name of every process whose frontmost is true
and visible is true and name is not "System Events") as string
end tell
----Do stuff here including opening 1 or more other applications
tell application "System Events"
set frontmost of process devant to true
end tell
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden