• 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: Tue, 19 May 2009 19:44:25 -0700

On Apr 16, 2009, at 6:40 AM, Michelle Steiner wrote:

This works:
info for file "Dora:Users:michelle:Desktop:LD.gif"

So does this:
info for alias "Dora:Users:michelle:Desktop:LD.gif"

This fails, as it should:
info for "Dora:Users:michelle:Desktop:LD.gif"

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

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

Which results would you like to be different, and in what way?

(Personally, I don't think commands that operate on files should ever work with strings, because they're ambiguous. I think you should have to say “file …”, “alias …” or “POSIX file …”.)

-- 
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: Philip Aker <email@hidden>
    • Re: Info for
      • From: Michelle Steiner <email@hidden>
    • Re: Info for
      • From: Tim Mansour <email@hidden>
  • Prev by Date: Scripting iPhoto to show photo in Events Album
  • Next by Date: Re: Info for
  • Previous by thread: Scripting iPhoto to show photo in Events Album
  • Next by thread: Re: Info for
  • Index(es):
    • Date
    • Thread