Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'AppleScript to open a collection of Safari tabs' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
AppleScript to open a collection of Safari tabs
Authored by: Frederico on Apr 18, '11 01:25:04PM

Sorry, but would the author please explain why this hint is superior to 'Open in Tabs' already provided in Safari?

A Collection of Bookmarks in a Safari Folder, stored anywhere from the Bookmarks Menu to the Bookmarks Toolbar gives the option to do *exactly* what the script above offers, and also offers the advantage of leaving the first new Tab with an active Back command that will completely close all the new tabs and return you to all the old tabs if you made a mistake.

If the advantage of this script is it can be keystroke activated from a macro, so can the Safari feature.

What am I missing here? Is there really some advantage to manually editing a (admittedly low-complexity) script if you need to make a change to URL or resulting Tab order?

The above commenters modified version allowing for different tabs for different days from a single source command is the only real single-keystroke-via-macro advantage I see offered; but Safari can also have Monday-Friday/Sat-Sun options easily built, as well.

Not trying to be pissy; honestly trying to understand the purpose of adding complexity to an existing Safari function.



[ Reply to This | # ]
AppleScript to open a collection of Safari tabs
Authored by: NaOH-Lye on Apr 18, '11 02:08:08PM

The built-in Safari/OS X method for assigning a keyboard shortcut via System Preferences > Keyboard will only work if the user has one folder of bookmarks. As it is, the system for customizing keyboard shortcuts in OS X has no accommodation for menu items of the same name which occur multiple times within an applications.

Just as an example, I have about 50 bookmark folders, some nested within others, some just in the Bookmark Bar. I don't believe there's a way using built-in options to assign a shortcut to the Open In Tabs item in a specific folder. If there is, I missed it and would be interested in seeing it.

Users can run into the same issue in Mail. Menu items are duplicated in Message > Move To and in Message > Copy To. Again, though, System Preferences > Keyboard doesn't provide a way to distinguish between these menu items.



[ Reply to This | # ]
AppleScript to open a collection of Safari tabs
Authored by: Frederico on Apr 18, '11 02:12:41PM

Yes, but this script cannot be keystroked from Keyboard Shortcuts, either, unless built as a service, which would be kinda odd, but doable.

My reference to Keystroking was suggesting that somehow this script, invoked from a third party macro, such as FastScripts or Keyboard Maestro, Butler, etc., might have some advantage not revealed in the script itself.

Again, what does this script offer that Safari does not?



[ Reply to This | # ]