Sep 22, '04 10:00:00AM • Contributed by: abrin523
[robg adds: I have not tested this one...]
|
|
|
A 'Save Tabs as Bookmark Folder' script for Safari
Sep 22, '04 10:00:00AM • Contributed by: abrin523
I've been frustrated with Safari's lack of a "Save tabs" as bookmark folder method. Combining a couple of posts mainly this one, I wanted to share a solution. First, download, compile and save this safari_tabs script in your Safari "Scripts folder." From there, when you activate it, it will iterate through every tab of every window and create a bookmark folder with a bookmark for each tab. Note, this is not localized, and has been tested with 10.3.5
[robg adds: I have not tested this one...]
•
[14,229 views]
Hint Options
A 'Save Tabs as Bookmark Folder' script for Safari
cool!
A 'Save Tabs as Bookmark Folder' script for Safari
Does not compile for me.
A 'Save Tabs as Bookmark Folder' script for Safari
It's a line-break character (special case) for AppleScript. Just delete the offending character and append the next line to the end of the current one (remove spaces too if you feel up to it. That will make it compilable.
A 'Save Tabs as Bookmark Folder' script for Safari
Doesn't work for me. I fxed the "Á" business, compiled and saved the script, accessed it from the script menu and wathced it do its magic. It iterated through each tab in each window I have open, bringing them to the front one after the other, and all that. It ended up by creating a new collection folder in the bookmarks window with the current date and time, but the collection was empty.
A 'Save Tabs as Bookmark Folder' script for Safari
Doesn't work for me either. :-(
A 'Save Tabs as Bookmark Folder' script for Safari
I run it directly in safari from the script menu. Nothing happened. Then i run it directly from skripteditor and got the following error "?System Events? got an error: NSReceiverEvaluationScriptError: 4"
same here... too bad, this would have been kinda handy...
A 'Save Tabs as Bookmark Folder' script for Safari
Same here. I've done some GUI scripting, but I can't quite figure out how else to do what the script is trying to do on this line:
A 'Save Tabs as Bookmark Folder' script for Safari
This script is a raging example of why GUI scripting is so terribly, horribly unreliable -- with all due respect to the author.
For example, this script as written will: • fail if the Address bar is not visible • fail if the Location bar is visible • double the number of entries for each URL if the Downloads or Activity window is open • Fail for any other number of differences in what the author and the user has set to display I can fix a lot of this script with a lot of checks and error handling, but I'm not sure it's worth it. To the poster directly above, and those above that, you might try swapping out this section for the original (be sure to delete the original section and replace it entirely with this:
A 'Save Tabs as Bookmark Folder' script for Safari
OK, here's a couple more fixes:
The above section will prevent multiple URLs from being added; still need to fix the script so it doesn't check every URL an extra time for every open non-browser window.
This second version of the above section should create the bookmark focus required in nearly every possible window configuration (View Location Bar on/off; view Address Bar on/off; etc.) I still have to fix the condition where the script won't run at all if the view is not that the author tested it under.
A 'Save Tabs as Bookmark Folder' script for Safari
a few items and an updated script:
1) check the localization items at the top, the previous version was not fully localized
2) the script relies on the optional scriptible UI settings for applescript
A 'Save Tabs as Bookmark Folder' script for Safari
Interesting that you addressed localization issues, but did not take advantage of or offer comment on the other fixes posted. The script as resubmitted, still, has numerous serious flaws based on assumptions of user prefs and open windows that can be addressed.
A 'Save Tabs as Bookmark Folder' script for Safari
Frederico, I think your changes are great and I definitely see the issues you've addressed -- i just didn't see them when I posted the update. I agree that the GUI Scripting is far less than ideal. I'll see about updating it.
A 'Save Tabs as Bookmark Folder' script for Safari
Thanks alot for your time!
Another way to go
It isn't ready for primetime, yet, but SafariStand is a plugin for Safari that will do a lot of things, but also has a Bookmark Shelf feature that will let you open a bunch of tabs, then save them and open them later. It is a separate window, but it works how it's supposed to, and the author would take kindly to input from the English speakers. Get SafariStand from here.
Just use Safari Extender
Safari Extender does something very similar to this. There are scripts out there that work, but everytime something changes the scripts break. Safari Extender is maintained by the author, a well known shareware developer. To me, it's worth a small fee to have this (and other) features available reliably.
A 'Save Tabs as Bookmark Folder' script for Safari
Saft does this as well.
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.47 seconds |
|