Re: Info for question
Re: Info for question
- Subject: Re: Info for question
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 15 Jun 2001 16:00:29 -0700
On 6/15/01 1:23 PM, "Jan Erik Mostrvm" <email@hidden> wrote:
>
I don't have access to Mac OS X, only 9.1. I tried to find some info about any
>
changes to the "info for" command but didn't find anything that covered my
>
problem.
>
>
Does anyone knows what the problem is? (adding a 'file' after "info for" seems
>
to help but I would like to know why)
Jan,
If you look closely at the dictionary entry for 'info for', you will see
that it says:
info for --file specification -- the alias, file specification, or path
to the file or folder
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.
What won't work is just the filePath string. So why did it work for you and
everyone else except that one user? Because you all must have either Jon's
Commands and/or Akua Sweets osax installed, and that user does not. Jon's
and Akua have silent coercions of string pathnames to alias and file
specifications, which operate even when you don't call for them.
This question came up just 4 days go on this list or the other one. There
were about 12 emails about it. In fact, it comes up about every 10 days or
so. It's not a bad idea to read carefully all the threads that don't concern
some application you don't have, even if you think it's not something that
concerns you. Usually it will concern you sooner or later - sometimes within
4 days!
--
Paul Berkowitz