The Omni Group

Go Back   The Omni Group Forums > OmniWeb > OmniWeb General
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
Applescript and Bookmarklets Thread Tools Search this Thread Display Modes
I'm trying to connect my Quix bookmarklet to a keyboard command (say, control-Q). My first try was applescript, using the following code:

Code:
tell application "OmniWeb"
	tell favorites
		set theaddress to address of bookmark "Quix"
	end tell
	
tell front browser
	OpenURL theaddress
end tell

end tell
This does not seem to work because the OpenURL command opens a new browser tab.

Any other suggestions?
  Reply With Quote
Why not just assign a keyboard shortcut to the relevant bookmark? You can assign a keyboard shortcut to any menu item (including bookmarks in the bookmarks menu) via the "Keyboard" system preference pane.
__________________
Troy Brandt
Omni Person
  Reply With Quote
Yep, that works. Thanks!
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bookmarklets stopped working - facej OmniWeb Bug Reports 0 2009-05-22 05:33 AM
Javascript bookmarklets broken again philonous OmniWeb Bug Reports 2 2007-12-03 11:21 AM
Bookmarklets in OmniWeb 5.5? khoiv OmniWeb Bug Reports 4 2006-12-05 09:28 AM
Bookmarklets dont work hardcoreUFO OmniWeb Bug Reports 0 2006-12-05 05:59 AM
sp10 javascript bookmarklets philonous OmniWeb Bug Reports 1 2006-05-11 09:18 AM


All times are GMT -8. The time now is 06:10 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.