Re: Return of the bug: "tell me to activate"
Re: Return of the bug: "tell me to activate"
- Subject: Re: Return of the bug: "tell me to activate"
- From: Christopher Stone <email@hidden>
- Date: Thu, 11 Aug 2016 20:57:28 -0500
On Aug 11, 2016, at 20:14, Ray Robertson <email@hidden> wrote:
When you run the script and the dialog is displayed frontmost, what application shows as active according to the menu bar? When I run it from Script Editor, all works well except for the menu bar, which still says Finder.
I missed that. The menu bar says "Finder"
This does the same thing:
------------------------------------------------------------------------------------------- set appName to "Script Editor" tell application "Finder" to activate tell me to activate
tell application "System Events" repeat while frontmost of application process appName is false delay 0.05 end repeat delay 0.1 end tell
display dialog "test" -------------------------------------------------------------------------------------------
This does in fact switch back to Script Debugger and shows "Script Debugger" in the menu bar.
------------------------------------------------------------------------------------------- set appName to "Script Debugger" tell application "Finder" to activate tell me to activate
tell application "System Events" repeat while frontmost of application process appName is false delay 0.05 end repeat end tell
display dialog "test" -------------------------------------------------------------------------------------------
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden