Re: tutorial on HFS versus finder and POSIX file path ?
Re: tutorial on HFS versus finder and POSIX file path ?
- Subject: Re: tutorial on HFS versus finder and POSIX file path ?
- From: Matt Deatherage <email@hidden>
- Date: Tue, 17 Oct 2006 12:07:04 -0500
On 10/17/06 at 11:02 AM, Yvon Thoraval <email@hidden> wrote:
yes a know all of that but in some circonstance i get an error message
like can't make fref from POSIX blahblah...
It would be a lot easier to diagnose if you'd share actual error
messages; even native English speakers have trouble understanding
"blahblah..." :-)
There is an internal File Manager data type (the FSRef) that's currently
recommended for storing file references, but you can only create FSRef
structures that point to existing files - you can't make one
that points
to a file that doesn't exist, even though a pathname can.
Aliases are
the same way, as many scripters have noted.
AppleScript uses FSRefs internally in some places, so at some point,
trying to refer to an actual "file" object may fail if the file
does not
exist. I can't tell you exactly when or now, and I don't know
if this
is your "can't make fref from POSIX blahblah" problem, but it's worth
noting.
--Matt (not Bob Loblaw)
--
Matt Deatherage <email@hidden>
GCSF, Incorporated <http://www.macjournals.com>
"Software that rewards you for doing something one percent of
the time
will get used, and software that punishes you for doing it
only 99
percent of the time will not get used." -- Dan Bricklin,
channeled by
Dave Winer
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden