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

"info for"


  • Subject: "info for"
  • From: David Crowe <email@hidden>
  • Date: Mon, 27 May 2002 21:41:14 -0600

I'd like to thank Timothy Bates for helping me with "info for". It looks like my problem was how to handle Finder lists properly.

The following toy script ('toy' because you don't need 'info for' to get the name of files!) works (on OS X at least):

tell application "Finder"
try
set theSelection to the selection as alias list
on error
set theSelection to {the selection as alias}
end try

repeat with anItem in theSelection
display dialog "Name: " & name of (info for (anItem as file specification))
end repeat

end tell

Obviously getting all the other information out of the "info for" command is relatively trivial.

- David Crowe
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: "info for"
      • From: JollyRoger <email@hidden>
  • Prev by Date: AppleScript gets incorrect file name - OSX
  • Next by Date: Choose Paper source
  • Previous by thread: Re: "info for"
  • Next by thread: Re: "info for"
  • Index(es):
    • Date
    • Thread