Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.3: AppleScript and Safari clickable link example' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: AppleScript and Safari clickable link example
Authored by: russh on Oct 29, '03 12:41:02PM

Good concern, but it's a non-issue. It doesn't pose the problem because there is no "run script" option.

---
--
russh



[ Reply to This | # ]
10.3: AppleScript and Safari clickable link example
Authored by: DougAdams on Oct 29, '03 02:09:42PM
Look in Services menu under Script Editor if you want the "Run as AppleScript" command :O

Doug
Doug's AppleScripts for iTunes

[ Reply to This | # ]
10.3: AppleScript and Safari clickable link example
Authored by: BMarsh on Oct 29, '03 06:41:23PM

does this mean that a script could be run "remotely" from a web page in this manner?



[ Reply to This | # ]
10.3: AppleScript and Safari clickable link example
Authored by: DougAdams on Oct 31, '03 06:09:11AM
To a degree. Select the following code and click Services > Script Editor > Run As AppleScript (it's not lethal, trust me!):

display dialog "Hello, World!"

You decide to run it. A site can't make something run on your computer. However, I could just as easily post the text of a script that deleted the contents of your hard drive. But it would be up to you to decide to run it from Services.

On the other hand, URL Protocol Scripting, which embeds code in a link, can only be opened in Script Editor as text. The user would have to compile, run it.

This link is the same code as above, but as an URL Protocol Message.

[ Reply to This | # ]