Re: This worked yesterday: File path question
Re: This worked yesterday: File path question
- Subject: Re: This worked yesterday: File path question
- From: "Serge Belleudy-d'Espinose" <email@hidden>
- Date: Sun, 17 Dec 2000 08:45:46 +0100
At 20:49 +0100 16/12/00, cris wrote:
>
> Changing to "open file alias..." got it to start working again.
>
Funny, i just had the same trouble (randomly) and i changed from "alias" to
>
"file". :) But i think that was not the important change. My previous
>
statement was inside a finder tell, now it's alone and works since a week
>
without any trouble.
Well, since it took me awhile to figure it out...
Just a reminder to everyone, and especially myself :)
set xAlias to alias "myDisk:myFile"
and
tell application "Finder" to set xAlias to alias "myDisk:myFile"
both are equivalent and return an alias. But
set xFile to file "myDisk:myFile"
and
tell application "Finder" to set xFile to file "myDisk:myFile"
return respectively:
- file "myDisk:myFile", a file specification;
- file "myFile" of disk "myDisk" of application "Finder", a document file.
There are not equivalent at all.
My workaround for comparing them is to constrain everything to strings.
End of my sunday morning practice.
Serge
__ __ __
_ \///\/ _ I N S T I T U T | Serge Belleudy-d'Espinose - IJM
\///\/// J A C Q U E S | 2 place Jussieu - 75251 Paris Cedex 05
_///\///\_ M O N O D | m@il : email@hidden
__/\///\__ Service Informatique | WWW :
http://www.ijm.jussieu.fr/