• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Return of the bug: "tell me to activate"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


Hey Ray,

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"
-------------------------------------------------------------------------------------------

--
Take Care,
Chris

 _______________________________________________
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

References: 
 >Javascript app.displayDialog() not working (From: Beinan Li <email@hidden>)
 >Return of the bug: "tell me to activate" (From: Ray Robertson <email@hidden>)
 >Re: Return of the bug: "tell me to activate" (From: Christopher Stone <email@hidden>)
 >Re: Return of the bug: "tell me to activate" (From: Ray Robertson <email@hidden>)

  • Prev by Date: Set List View Attributes of a Finder Window Using System Events
  • Next by Date: Re: GUI script a popup button
  • Previous by thread: Re: Return of the bug: "tell me to activate"
  • Next by thread: GUI script a popup button
  • Index(es):
    • Date
    • Thread