• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: This worked yesterday: File path question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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/


  • Follow-Ups:
    • Re: This worked yesterday: File path question
      • From: Ted Wood <email@hidden>
References: 
 >Re: This worked yesterday: File path question (From: cris <email@hidden>)

  • Prev by Date: Re: Month/Day Conundrums
  • Next by Date: Re: This worked yesterday: File path question
  • Previous by thread: Re: This worked yesterday: File path question
  • Next by thread: Re: This worked yesterday: File path question
  • Index(es):
    • Date
    • Thread