Re: URL Access Scripting
Re: URL Access Scripting
- Subject: Re: URL Access Scripting
- From: John W Baxter <email@hidden>
- Date: Sat, 7 Sep 2002 14:58:57 -0700
At 23:22 -0700 9/6/2002, idlewild wrote:
>
Doug,
>
>
<<Watch out for replacing. It's not a boolean! I really don't know just
>
what it is but you have to say "replacing yes" or "replacing no" and
>
don't try replacing "yes">>
>
>
Is this a bug in the syntax checking?
>
>
Haven't tried yet but is the correct syntax:
>
>
upload theFile as alias to theServer replacing yes with progress and
>
authentication without binhexing
The words yes and no (and their companion ask) are in the basic always
present vocabulary (standing, cleverly, for 'yes ', 'no ', and 'ask ' with
one, two, and one trailing space(s) respectively). It appears that URL
Access Scripting doesn't offer to ask, no doubt because it is the eventual
target which is supposed to ask, and it's off across the world somewhere.
The trio appear in contexts like
quit saving ask
(which would cause an application to put up its usual query about saving
unsaved changes).
quit saving no
says to toss unsaved changes;
quit saving yes
says to save unsaved changes.
In applications which use the extended quit command rather than the
required one. (Standard Suite rather than Required Suite.)
The trio appears in many apps in close, as well. Here's AppleWorks 6's
close (Standard Suite extended):
close: Close a window or a document
close reference -- the object to close
[saving yes/no/ask] -- specifies whether or not changes should be
saved before closing
[saving in alias] -- the file in which to save the object
[as file type type class] -- the type of file in which to save the
document
[using translator international text] -- the name of the translator
to use to save the document
[Aside...AH HA...another "international text" instance from Winter
1992...don't worry, an standard AppleScript string literal will do fine.]
--John
--
John Baxter email@hidden Port Ludlow, WA, USA
_______________________________________________
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.