The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

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

 
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?
 
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
 
Yep, that works. Thanks!
 
 


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 06:33 AM
Javascript bookmarklets broken again philonous OmniWeb Bug Reports 2 2007-12-03 12:21 PM
Bookmarklets in OmniWeb 5.5? khoiv OmniWeb Bug Reports 4 2006-12-05 10:28 AM
Bookmarklets dont work hardcoreUFO OmniWeb Bug Reports 0 2006-12-05 06:59 AM
sp10 javascript bookmarklets philonous OmniWeb Bug Reports 1 2006-05-11 10:18 AM


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


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.