Re: Droplet in Bookmark Tool bar of Safari/Firefox?
Re: Droplet in Bookmark Tool bar of Safari/Firefox?
- Subject: Re: Droplet in Bookmark Tool bar of Safari/Firefox?
- From: Emmanuel <email@hidden>
- Date: Sat, 15 Jan 2005 22:55:49 +0100
At 3:21 PM -0600 1/15/05, Joseph Weaks wrote:
And moreso, can a javascript link be used to run an Applescript?
Unless I'm missing something huge, you cannot. What you can do is
have Safari send the link to a given app. For instance, if you click
"mailto:blah@blah" Safari will send that to your email software. If
you click "applescript://blahblah" the event will be sent to Script
Editor (or to Smile, if you have set so.)
What I would try is:
1 - invent your own protocol, say "jwlink",
2 - make a bundled applet, and provide its info.plist with the lines
which say "hey, I'm the one which handles the jwlink:// protocol".
One of us (jj) used to have an excellent URL for that. Otherwise,
hack for instance Safari's info.plist, where it says "hey, I'm the
one which handles http://",
3 - have your applet handle your protocol in "open location s" (such
is the event that Safari will broadcast),
-- untested
on open location s
if s is "jwlink://hidesafari" then tell application "Finder" to set
visible of process "Safari" to false
end
4 - put the link "jwlink://hidesafari" in the bookmarks bar. No
javascript, as you see. Javascript is to script the browser, here you
really script Finder I think.
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden