|
|
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! |
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.10 seconds |
|