• 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: run script from browser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: run script from browser


  • Subject: Re: run script from browser
  • From: "Gary (Lists)" <email@hidden>
  • Date: Wed, 24 Aug 2005 17:30:07 -0400

"Matt Neuburg" wrote:

> On Wed, 24 Aug 2005 11:10:11 -0400, Rick Frank <email@hidden> said:
>> Is there a way to have an applescript run on a users local machine in
>> response
>> to a button click on a browser?
>
> I truly hope not. However, there is a way to have an applescript be loaded
> from a browser into the Script Editor; the user can then choose to run it.
> m.

I made a little brief report on different browser tests using the "file:"
link launching method.  I included a PNG screenshot, and so the message is
being held for approval.  If it's gets bounced, so be it, no loss.

In general, I found that in OS X, different browsers handle the case
differently. The only reliable launching, every time, is from Explorer.

==
- Camino has intermittent success, sometimes downloads a Hex binary,
sometimes launches the script application (I don't know why).

- Explorer launches and runs the application.

- FireFox offers to download the file.

- Mozilla hits a UI bug, but it doesn't execute the script.

- Safari opens Finder to the file object's container, with item selected.
==

All in all, I prefer to control the destiny of my browser and desktop, and
I've relied on Explorer's launching for a very long time (bookmarks in my
toolbar can be JavaScript or AppleScript, which is good).

In general, though, given the OSX world, I think I just prefer Safari's
alternative.  Then I can very quickly just "Cmd-O" to launch if I want.
That's a good compromise, IMO.

In a closed desktop environment, useful AppleScript applications _should_ be
able to be launched from various places, I think, including a browser link.

Using a pseudo protocol of one's own is the best way to prevent general and
accidental mischief. In OS9, I used "gary://" as a protocol.

But, that's not my cup of tea, so I'll let the security folks have at it.
--
Gary

 _______________________________________________
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

  • Follow-Ups:
    • Re: run script from browser
      • From: Martin Orpen <email@hidden>
References: 
 >Re: run script from browser (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: [newby] Detect if a script was started from the command line
  • Next by Date: [OT] Re: Cut while renaming a file in Finder List view
  • Previous by thread: Re: run script from browser
  • Next by thread: Re: run script from browser
  • Index(es):
    • Date
    • Thread