• 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: Thu, 30 Mar 2017 15:53:40 +0000
  • Thread-topic: Looking for Scripts, Snippets, Ideas for Toggling Windows and Tabs of an App

David,

Many thanks again for your ideas and scripts.  I really didn't expect anyone to write the scripts for me.
It is very kind of you to do so.

Please see my reply below.

Best Regards,

Jim Underwood
aka JMichaelTX


From: David Gregg <email@hidden>
Date: Thu, Mar 30, 2017 at 8:33 AM
Subject: Re: Looking for Scripts, Snippets, Ideas for Toggling Windows and Tabs of an App


The tabbing solution is more difficult because there currently isn't a standard way for keeping track of the tab history. Even if there is a way to get the tab index it is generally just ordered in a left to right sequence (this is the case in both Safari and Script Debugger).

Exactly!  You nailed the issue/challenge.


Solution 2
========
To simplify the solution, if possible physically move the tabs so they are next to each other.

Thanks.  While I'd prefer not to move the tabs, this provides a workaround until we can find a better solution.


Below is an example for Script Debugger using mostly System Events. A Keyboard Maestro variable is used to save off the name of the left-most tab.

Example for Script Debugger
======================

Thanks again for this script.
When I tried to script Script Debugger 6, I found that it was not possible to directly set a document/Tab as frontmost.
However, the SD developer was very responsive to my query, and I believe that this capability will be coming soon in a SD6 update.

With this update, we should be able to target any two Tabs for toggling, without the need to move them adjacent first.

But in the meantime, your script provides a workable solution.

 _______________________________________________
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>)
 >Re: 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: 10.12.4 ?
  • Next by Date: Re: Looking for Scripts, Snippets, Ideas for Toggling Windows and Tabs of an App
  • 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