Re: Info for question
Re: Info for question
- Subject: Re: Info for question
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 16 Jun 2001 10:06:27 -0700
On 6/15/01 4:00 PM, I wrote:
>
Although the description says 'the alias, file specification, or path to
>
the file or folder' it's not actually true. The true class is the one
>
listed : 'file specification'. That requires that you write 'file' before
>
the path. 'alias' will work just as well, since AppleScript will happily
>
coerce 'alias' (assuming there really is a file at that location) into
>
'file specification'. Or you can even write '[filePath] as file
>
specification' and that will work too.
>
Correction: that last sentence is not true. You can't coerce a string path
name 'as file specification' without an osax coercion, as Nigel Garvey has
pointed out to me privately, and I've just confirmed.
I believe I have been able to do this, not with 'info for', but within the
specific context of a 'save' command as implemented by Outlook Express. I'm
going to check that out too to make sure. But in any case, it does not work
in plain AppleScript, nor with the 'info for' command, without one of the
osax coercions installed. You need 'file [filePath]' to refer to a file
specification.
--
Paul Berkowitz