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

Use Script Editor to develop bookmarklets Web Browsers
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"
  do JavaScript "
    // Of course your bookmarklet code goes here, for example...
    alert('hello world');
  " in front document
end tell
I 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.
  • Currently 1.57 / 5
  You rated: 2 / 5 (7 votes cast)

Use Script Editor to develop bookmarklets | 1 comments | Create New Account
Click here to return to the 'Use Script Editor to develop bookmarklets' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use Script Editor to develop bookmarklets
Authored by: seldom_used on May 09, '08 08:34:48PM

Thanks a lot - this lead me to write my first bookmarklet that does something useful :)

[ Reply to This | # ]