Re: Open files
Re: Open files
- Subject: Re: Open files
- From: Shane Stanley <email@hidden>
- Date: Tue, 19 Mar 2002 08:41:54 +1100
On 19/3/02 1:32 AM +1000, Nigel Garvey, email@hidden,
wrote:
>
On the other hand, for a one-off read, it might not be worth using 'open
>
for access' at all. Simply using the 'read' command with the file path
>
will open the file, perform the read as specified, and close the file
>
again afterwards - unless, of course, the file's already open, in which
>
case the read will hijack the existing reference, with all that that
>
implies for your script and whatever opened the file.
Or, with some versions of AS at least, if the file has been opened (and
closed) by the same script earlier on. Using open for access is safer, IMO.
--
Shane Stanley, email@hidden
_______________________________________________
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.