Re: "info for"
Re: "info for"
- Subject: Re: "info for"
- From: Timothy Bates <email@hidden>
- Date: Sat, 25 May 2002 15:35:13 +1000
- .mxoez?+: O?W^h1]g}IB\WO2A=6#`2^rL?jAu,r8EcKz@UG.r.7[$&Ym;j8^Wp;/KAlcda MO/$} $"[ c?\#d@cuN
- 9+kli1>@: KaeEcbn$EIG)tY@^[7y`lyrI<4S(cnqzmTD&4<tTkuNR(4dweN}SUlDX/X^c>"
>
I cannot make "info for" in the Standard Additions work.
>
For example, even when "selection" is a valid group of files:
>
tell application "Finder"
>
info for selection
>
end tell
This works and copes with the (years old) inability of the finder to return
a single item alias list. Someone will no doubt reply with a work around
that avoids the try block, but I like to have aliases or strings to work
with.
tell application "Finder"
try
set theSelection to the selection as alias list
on error
set theSelection to {the selection as alias}
end try
end tell
repeat with anItem in theSelection
info for (anItem as file specification)
end repeat
_______________________________________________
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.
References: | |
| >"info for" (From: David Crowe <email@hidden>) |