• 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: tutorial on HFS versus finder and POSIX file path ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tutorial on HFS versus finder and POSIX file path ?


  • Subject: Re: tutorial on HFS versus finder and POSIX file path ?
  • From: Yvon Thoraval <email@hidden>
  • Date: Wed, 18 Oct 2006 08:58:06 +0200


Le 17 oct. 06 à 19:07, Matt Deatherage a écrit :

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.



yes, thanks, i know very well the File Manager's type FSRef because i wrote a C extension for Ruby in order to use it...

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. 


some times AppleScript says "file wasn't found" even if i get the unix path of the file using path snagger contextual menu..

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.


anyway I'll re-post upon that subject when I get a concrete example !

best,

Yvon
 _______________________________________________
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

References: 
 >Re: tutorial on HFS versus finder and POSIX file path ? (From: Matt Deatherage <email@hidden>)

  • Prev by Date: Re: TextEdit find/replace script
  • Next by Date: Re: tutorial on HFS versus finder and POSIX file path ?
  • Previous by thread: Re: tutorial on HFS versus finder and POSIX file path ?
  • Next by thread: Re: tutorial on HFS versus finder and POSIX file path ?
  • Index(es):
    • Date
    • Thread