Re: Frontmost app
Re: Frontmost app
- Subject: Re: Frontmost app
- From: Jason Bourque <email@hidden>
- Date: Thu, 16 Jan 2003 14:11:09 -0500
Sure, try this. Also you forgot to use application in the tell block.
tell application getFrontApplication() to display dialog "Hello"
on getFrontApplication()
(path to frontmost application) as text
end getFrontApplication
Jason Bourque
On 1/16/03 2:37 PM, "Steve Roy" <email@hidden> wrote:
>
Is there a better way to tell the frontmost app to do something than the
>
following?
>
>
tell getFrontApplication() to display dialog "Hello"
>
>
on getFrontApplication()
>
tell application "Finder"
>
set theList to name of every process whose frontmost is true
>
end tell
>
return application (theList as string)
>
end getFrontApplication
>
>
>
Steve
_______________________________________________
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.