Re: Display dialog + compiled scripts
Re: Display dialog + compiled scripts
- Subject: Re: Display dialog + compiled scripts
- From: Alex Robinson <email@hidden>
- Date: Wed, 31 Jul 2002 23:38:25 +0100
>
tell frontmost application
>
display dialog "whatever"
>
end tell
>
>
That way it should always end up at the front of whatever you're working in...
That doesn't work. Well, not in OSX it doesn't.
"Execution Error
frontmost application does not understand the display dialog message"
the following ugly snippet seems to do the trick:
>
>>>>
set theApp to ""
tell application "Finder"
set theApp to name of (every process whose frontmost is true) as text
end tell
tell application theApp
display dialog "whatever"
end tell
<<<<<
_______________________________________________
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.