Re: Difference between "as alias" and "as file spec
Re: Difference between "as alias" and "as file spec
- Subject: Re: Difference between "as alias" and "as file spec
- From: John W Baxter <email@hidden>
- Date: Thu, 13 Dec 2001 08:26:20 -0800
At 23:09 -0500 12/12/2001, email@hidden wrote:
>
Then, there's the 'file "Disk:path:name"' reference, which isn't a
>
file specification exactly, but an object reference. As such, its
>
like 'window 1' or 'document "MyFile"' or 'application "Microsoft Word"':
>
It isn't really resolved to a concrete thing, but passed to the target
>
application. And AppleScript itself can't resolve it, so
>
>
set f to file "Mydisk:"
>
>
gives an error.
True, but
set fr to a reference to file "Mydisk:"
can be useful at times.
Script debugger shows that this has the value (expressed in the
technobabble of the underlying AE Manager object):
obj {
form:'name',
want:type('file'),
seld:"Mydisk:",
from:'null'()
}
or, in source language:
file "Mydisk:" of <<script>>
(That is, when it is examined by some application, it is up to the
Application to deal with a file whose full path is given as a string. The
above was run in Mac OS X...it hasn't changed since sometime around 1994
when I sent a file "..." thing over to Frontier to see what was inside.)
--John