Re: Deference number
Re: Deference number
- Subject: Re: Deference number
- From: "Nigel Garvey" <email@hidden>
- Date: Tue, 14 Nov 2017 14:47:40 +0000
Nelson Byrne wrote on Mon, 13 Nov 2017 12:14:15 -0800:
>It is the one returned by the “open file” and used for file Read/write.
I
>should have been clearer.
>>> Is there a simple way for an AppleScript subroutine to get
information
>>> about an open file given its reference number? Its name, for example?
The command's called 'open for access'. It opens an access channel
between the application running the script and a file specified by the
script and returns a reference number for that channel. The number
doesn't refer to the file itself.
The only things you can do with an access channel is to close it or to
get or change the file's contents. It won't tell you anything else about
the file — and doesn't need to, because the only way for a script to
know the reference number is for it to have opened the channel itself
using some form of file specifier, from which stuff like names can be
obtained by other means.
NG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden