Using Apple’s URLProtocol, a link to AppleScript text can be placed in an HTML document and viewed in Safari.
Clicking that link in Safari will create/insert/append the AppleScript in a new Script Editor doc or the frontmost open SE doc. This is how Clicking the header of an AppleScript in this forum will insert the script in your editor.
Now my question: Is there a way to have that link on a Safari page send an event to a running AppleScript rather than insert text in an open script?
Why? I’d like to create a Safari web page with a bunch of links on it and have a script respond to whichever was clicked.
Seeing that you’re using OS 9 or below, you could also use the built-in CGI handlers. OS X users would have to install something like acgi dispatcher. This post reminded me of support for AppleScript in Dashboard widgets. Wait a minute, AppleScript widgets! Don’t widgets run in Safari? Well, they do. Except that when I launched a widget with an AppleScript back end (in this case Voices.wdgt from the developer examples) Safari completely failed to execute the AS code. Oh well, it was worth a shot.
P.S. How are you using Safari on OS 9 anyway? :lol:
Are you sure this post is in the right thread? I’m running OS X 10.4.3, and never use OS 9 and have no internet presence that would indicate otherwise.
As to the PS, I’m sure you cannot use Safari with OS9, not that I’ve tried.
Or is it just that the Missing Link software is purely OS9 and I don’t need it here?
To me, it looks like this thread is in the Mac OS forum, not the Mac OS X forum. Am I mis-understanding the forum design? Or perhaps there’s a bug somewhere? I’m reading this in the Mac OS forum.
AppleScript Forums
AppleScript | Mac OS
Scripting Forum for all versions of AppleScript prior to OS X
(Moderated by Bruce Phillips, Dennis Cox, Kim Hunter, Ollie Wagner)
AppleScript | OS X
Scripting related topics for OS X
(Moderated by Bruce Phillips, Dennis Cox, Kim Hunter, Ollie Wagner)
The only demo of Missing Link available at ScriptBuilders is for use with OS X, not OS 9, despite the double listing.
However, ‘development’ of ML was discontinued as of October '04, and I have never tested it on Tiger.
I’d be genuinely grateful if a couple of brave souls were willing to give it a try on the latest OS X version… and report back conclusively whether it does or doesn’t work.
If it’s thumbs up, I’ll let the demo stay. Thumbs down, I’ll ask to have it removed.