• 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: File best practice questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File best practice questions


  • Subject: Re: File best practice questions
  • From: Philip Aker <email@hidden>
  • Date: Fri, 14 Mar 2008 19:46:20 -0700

On 08-03-14, at 18:53, Mark J. Reed wrote:

I would just like to add that "file" and "posix file" are effectively the same class, differing only in the way the specifier string is parsed. Behind the scenes I think "file" turns into a fileref

FSRef usually.

and posix file turns into a url,

Not currently. It's just a string (Unicode text unless coerced somewhere along the way). I believe URLs are the best vehicle currently available and AppleScript should formalize and implement a class for them along with adapters and wrappers to deal with the existing file approaches (=mess:-). I suppose one could make the argument that URLs don't belong in the language proper but the way I see it, they're already formalized in XML and are more akin to a sub- class of text (like a date can be).



Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Re: File best practice questions (From: "Gary (Lists)" <email@hidden>)
 >Re: File best practice questions (From: Shane Stanley <email@hidden>)
 >Re: File best practice questions (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: File best practice questions
  • Next by Date: Re: Date math problem in Leopard
  • Previous by thread: Re: File best practice questions
  • Next by thread: Re: File best practice questions
  • Index(es):
    • Date
    • Thread