Javascript

Does anyone know the javascript code that will press a bookmark on the bookmarks bar in Safari? My bookmark title is “aviation”. Any help would be appreciated.

You can’t use javascript (unless you’re talking about LateNigth’s javascript component, or really talking about applescript instead of javascript).

So, if you’re talking about applescript, there are various ways thru UI scripting (search this subforum for “UI AND Scripting” or for “System AND Events AND keystroke”). And you could also simply instruct Safari to open a given URL in the current window, and you wouldn’t need a third-party app to click your bar-bookmark (search for “safari AND set AND url AND document”).