• 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: Looking for Scripts, Snippets, Ideas for Toggling Windows and Tabs of an App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Looking for Scripts, Snippets, Ideas for Toggling Windows and Tabs of an App


  • Subject: Re: Looking for Scripts, Snippets, Ideas for Toggling Windows and Tabs of an App
  • From: Jim Underwood <email@hidden>
  • Date: Wed, 29 Mar 2017 23:49:36 +0000
  • Thread-topic: Looking for Scripts, Snippets, Ideas for Toggling Windows and Tabs of an App

David,

Thank you very much.
That script works perfectly with Script Editor and Evernote, and probably any other app with multiple windows.

Best Regards,

Jim Underwood
aka JMichaelTX


From: David Gregg <email@hidden>
Date: Wed, Mar 29, 2017 at 5:19 PM
To: JMichael <email@hidden>
Cc: "ASUL (AppleScript)" <email@hidden>
Subject: Re: Looking for Scripts, Snippets, Ideas for Toggling Windows and Tabs of an App

Jim,

I believe this will handle the window toggling.

tell application "System Events"
set frontmostApp to name of first item of (processes whose frontmost is true)
tell process frontmostApp
set value of attribute "AXMain" of window 2 to true
end tell
end tell

David
 _______________________________________________
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

  • Follow-Ups:
    • Re: Looking for Scripts, Snippets, Ideas for Toggling Windows and Tabs of an App
      • From: David Gregg <email@hidden>
References: 
 >Looking for Scripts, Snippets, Ideas for Toggling Windows and Tabs of an App (From: Jim Underwood <email@hidden>)
 >Re: Looking for Scripts, Snippets, Ideas for Toggling Windows and Tabs of an App (From: David Gregg <email@hidden>)

  • Prev by Date: Re: Looking for Scripts, Snippets, Ideas for Toggling Windows and Tabs of an App
  • Next by Date: Re: Software Installer – Finding the Local Application
  • Previous by thread: Re: Looking for Scripts, Snippets, Ideas for Toggling Windows and Tabs of an App
  • Next by thread: Re: Looking for Scripts, Snippets, Ideas for Toggling Windows and Tabs of an App
  • Index(es):
    • Date
    • Thread