Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to be able to use a web browser to launch applescripts or quickies shortcuts. The problem is in Safari, for instance, a link to a script just shows it in the Finder. It will not run a script. I know this is because of security issues, but is there a way to make a browser open these scripts?

Is there a browser that will do it? This use to work fine using an old version of Internet Explorer for Mac, but since upgrading to Snow Leopard, I can't get it to work.

Thanks

share|improve this question
add comment

3 Answers

Do you want to automate tasks in your web browser? Then iMacros for Firefox and iMacros for Chrome is what you need. These two are free/open-source "web browser macro recorder" addons.

share|improve this answer
    
+1 For listing two of the best browsers. (Safari is one of the worst well-known browsers, IMHO.) –  muntoo Jan 18 '11 at 6:51
add comment

You could create your own AppleScript application, which allows you to also register your own URL schemes, such as myapp:. When such AppleScript application is then installed on some Mac, it will "listen" to URLs you defined, like myapp://go?text=Hello%20world. Clicking such URL will run the AppleScript right away.

See How do I make Safari open search results in a new tab by default? for an example.

AppleScript also supports the applescript: URL scheme. However: that will not run the script, but only open it in AppleScript Editor, after which you need to run it yourself. Like copy the following (as one line) into any browser on Mac OS X:

applescript://com.apple.scripteditor?action=new&script=display%20dialog%20%22Hello%2C%20World%21%22

To convert a script into such a clickable applescript: URL, see Convert Script to Markup Code.

share|improve this answer
add comment

In Internet Explorer 8, you can enable the running of Java applets by clicking TOOLS > INTERNET OPTIONS > SECURITY > LOCAL INTRANET > CUSTOM LEVEL and then set ENABLE for the option 'Scripting of Java applets' in the SCRIPTING section.

That section controls all scripting settings on your local intranet, including your local hard disk.

Because you are adjusting only the LOCAL INTRANET zone, this does not risk a security breach. Scripting in the INTERNET zone, for instance, is not affected by changes made only in the LOCAL INTRANET zone.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.