Mac Roundup AAPL: $160.18 (-1.04)ArchivesResourcesContact

Advanced Search

 

The Archives Section

 

 
 

Roundup Date: Thursday, May 08, 2008

Use Script Editor to develop bookmarklets

Use Script Editor to develop bookmarklets - (View article)
macosxhints.com
If you're developing a non-trivial bookmarklet you may be able to speed up your edit cycle by having an applescript which executes the javascript in your browser, like this:tell application "Safari" activate do JavaScript " // Of course your bookmarklet code goes here, for example... alert('hello world'); " in front documentend tellI just edited the Javascript in Script Editor and hit the run button to test. Just be careful of using double quotes, and you can postpone escaping the script and adding it to your bookmarks until the very end. ... [More]