• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Droplet in Bookmark Tool bar of Safari/Firefox?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Droplet in Bookmark Tool bar of Safari/Firefox? (From: Joseph Weaks <email@hidden>)

  • Prev by Date: Automator information available
  • Next by Date: [Q]Automator in OS X
  • Previous by thread: Droplet in Bookmark Tool bar of Safari/Firefox?
  • Next by thread: Re: Droplet in Bookmark Tool bar of Safari/Firefox?
  • Index(es):
    • Date
    • Thread