• 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: Info for
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Info for


  • Subject: Re: Info for
  • From: Chris Page <email@hidden>
  • Date: Wed, 20 May 2009 14:36:59 -0700

On May 19, 2009, at 8:27 PM, Michelle Steiner wrote:


This, however, returns info about the startup disk:
info for "/Users/michelle/Desktop/LD.gif"

It shouldn't return info about the startup disk.

Right. It should return a "file not found" error, which is what I get on my machine. Please file a bug with steps for reproducing (I haven't been able to reproduce it). Do you see this behavior on more than one machine?

And these say the file wasn't found:
info for alias "/Users/michelle/Desktop/LD.gif"
info for file "/Users/michelle/Desktop/LD.gif"

And these should return info about the file.

They should return errors, because “alias” and “file” take HFS paths, and there are no HFS objects on your machine with those names (I presume).

Unfortunately, some commands attempt to guess whether a bare string is an HFS path or a POSIX path. I say, “unfortunately,” because it is guaranteed to be wrong sometimes. There simply is no way to know for certain whether you intended "foo/bar" to be an HFS name that contains a slash or a POSIX path with two directories.

Fortunately, “alias” and “file” by name always means the name is HFS (as far as I am aware). “POSIX file” is the means for explicitly indicating that the name is POSIX.

-- 
Chris Page

  The other, other AppleScript Chris

 _______________________________________________
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

  • Follow-Ups:
    • Re: Info for
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: Info for (From: Chris Page <email@hidden>)
 >Re: Info for (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Excel Save as text question
  • Next by Date: Re: Excel Save as text question
  • Previous by thread: Re: Info for
  • Next by thread: Re: Info for
  • Index(es):
    • Date
    • Thread