Re: Using the Safari beta 2 do JavaScript command
Re: Using the Safari beta 2 do JavaScript command
- Subject: Re: Using the Safari beta 2 do JavaScript command
- From: Brennan <email@hidden>
- Date: Sun, 20 Apr 2003 10:18:33 +0200
On Sat, 19 Apr 2003 21:22:42 -0700, "John S. Baltutis" <email@hidden>
wrote:
>
From <http://www.apple.com/applescript/safari/jscript.01.html>.
>
>
"Using the do JavaScript command in the Safari AppleScript
>
dictionary, you can create AppleScript scripts that interact
>
with the Safari JavaScript DOM (Document Object Model)."
This may be useful, but
>
A WORD ABOUT SCRIPT AND DO
>
>
One of the easiest methods of gaining the appearance of
>
scriptability is to implement the Do Script event. Do Script
>
enables users to pass statements or groups of statements
>
written in your own internal scripting language to your
>
application for execution. If you have an internal scripting
>
language already, Do Script can be OK as a first step. Just
>
don't stop there -- in the end, it's useful as a supplement to
>
the rest of your scriptability, but not as a substitute.
>
>
The drawbacks to Do Script are that (1) new users must learn a
>
new language -- yours -- in addition to AppleScript, and (2) Do
>
Script is a one-way communication in most cases -- the script
>
can control your application, but it acts much more like a
>
puppeteer than a team leader. In the end, Do Script defeats the
>
purpose of a single language for controlling all applications.
This comes from one of Apple's very best general Applescript
implementation articles (which all serious scripters should read):
<
http://developer.apple.com/dev/techsupport/develop/issue21/21simone.html>
Brennan
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.