Re: run script from browser
Re: run script from browser
- Subject: Re: run script from browser
- From: "Gary (Lists)" <email@hidden>
- Date: Wed, 24 Aug 2005 23:44:18 -0400
"Martin Orpen" wrote:
> I'd be surprised if you're getting the expected behaviour. Can you reproduce
> that behaviour on a vanilla Tiger install?
I am getting the expected behavior, but I'm using X.3.9 and therefore have
no knowledge of Tiger.
My IE bookmark for using AS to change the downloads folder in OS 9, for
example, is this:
<DT><A
HREF="file:///Polyphemos [2.5G]/AppleScript Development/Script Project
s/Internet Scripting/Internet Explorer/Swap Downloads Folder/swap_DL
_folder_IC">swap_DL_folder_IC</A>
If the screenshot that I sent (which shows my link in an HTML file, as well
as the link rendered in the browser, and then a display dialog running)
doesn't make it, I can discuss off-list any of this (it's interesting to me
anyway.)
Since I'm pretty sure that you would be comfortable adding to, or snooping
around, your protocol entries, you might try going that route.
I'll look tomorrow for my prior notes and work on that choice.
Perhaps if Peter Bunn is reading this thread, he can shed some light on all
the caveats and machinations. Most folks maybe know of Peter, but he wrote
an AS application years ago that provided a range of in-URL launching
features. It was called "Missing Link". I came across that tool because I
wanted to do the same kinds of things you're doing now.
<meandering>
I've thought about this topic a lot today, while doing other non-computer
things. There is quite often a 'knee-jerk' reaction to the notion of
"launching an AppleScript from a browser". There is no similar reaction to
the idea of "launching an AppleScript from FileMaker", for example.
I think that it has a lot to to do with what comes to mind when different
folks process the word "browser". I think it tends to convey a notion of
"the web", when that is only one context in which the application (the
browser) is useful.
It is one thing, of course, to have the ability to launch AppleScript from a
_web page_, while quite another to be able to do so from a _browser_. (Which
is just a viewing shell, and is a quite logical place from which to want to
do this kind of action.)
Browsers are so much more than they were even 5 years ago in terms of their
integration into the general flow of computer usage, and the term no longer
really conveys "World Wide Web" as much as it does "html-based files".
There really should be robust ways to link to AppleScript actions from
within a browser (even if not from within a remote file.)
Security issues can always be overcome to prevent some action or other, and
so arguing purely on the grounds of security is not all that useful.
Again, FileMaker is an interesting example. One of its commands allows the
sending of 'raw' events to target applications. Okay, that's useful of
course. Any application, or even script, could really be written to send a
raw event to some target and have it respond by opening -- like a saved
applet, for example.
So, in that sense (if it makes any...I'm not that comfortable with all the
lower-level vocabulary), any file at a known exact location is vulnerable to
almost everything.
So, permissions and other layers of "ownership" and control are put in place
to protect certain regions of the file system.
On the User Interface front, if I'm browsing around the web and I want to do
some scripted action, maybe save some selected text into a database, for
example, then I write a script to do that but I put it in some other menu --
like the Scripts menu.
Why not just put it in my bookmarks, or in my toolbar?
So, I can see the merit of all the issues regarding remote execution, but
local execution from a "web" browser is really no different than any other
kind of application.
I can use Graphic Converter to browse a folder full of images. I can
control click and execute scripts on individual images. Well, I can use a
browser's side bar to show a folder listing and preview the images in the
main window...but I can't control-click and do the same actions.
It's kind of an artificial distinction at the local level, and I think
there's both merit and market for a tool that could bring that to the
browser view.
</meandering>
--
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