Nov 30, '05 06:56:00AM • Contributed by: mark hunte
So I rewrote the script to simplify it, as well as address these issues. The script uses GUI scripting, so make sure you have that activated (it's the 'Allow access for assistive devices' checkbox in the Universal Access System Preferences panel). As usaual, I will use Spark to run mine, but you can also put the complied script in your Safari AppleScript menu, or use another launching method of choice.
[robg adds: I tested this via a Butler AppleScript action and hotkey. At first, it didn't seem to work quite right, as I wasn't getting anything bookmarked and the bookmark folder's name was incorrect. I did a bit of testing, and got it to work by adding a delay 1 line, immediately below the set theDate to (current date) as string line in the script. I was also losing the initial "S" in the keystroke "Saved Tabs line, so I simply doubled it (SSaved Tabs).
Note that these issues are quirks of my method of implementation via Butler, as I had no such issues running the raw script directly from Script Editor. As such, I haven't put my changes into the source. Once I made my tweaks, everything worked great -- I can now save open tabs by hitting Command-Option-S in Safari.]
