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


Click here to return to the 'Save selected text from Safari to a text file' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Save selected text from Safari to a text file
Authored by: jooblie on Feb 25, '04 11:53:09AM

Is there any way to loop thru all the tabs of a window, grabbing the URL from each?



[ Reply to This | # ]
Save selected text from Safari to a text file
Authored by: orpy on Feb 26, '04 05:37:56PM

Not sure - you might have to resort to UI scripting to do this.

You could grab the URL of the currently active tab then select "close tab" and grab the URL of the next tab etc until there are no more tabs left?

Safari's dictionary is sadly lacking on the subject of tabs.

The properties returned from a tabbed window make no mention of tabs.

---
--
Martin



[ Reply to This | # ]
Check out "An improved 'Combine Windows' AppleScript for Safari"
Authored by: ageless on Apr 15, '04 01:42:46AM
http://www.macosxhints.com/article.php?story=20040401180858458

Check out the last version of the applescript, you can adapt it to select all the tabs in all open windows.

[ Reply to This | # ]