"info for"
"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.