Re: "info for"
Re: "info for"
- Subject: Re: "info for"
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 24 May 2002 22:58:04 -0700
On 5/24/02 10:35 PM, "Timothy Bates" <email@hidden> wrote:
>
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
There's no more 'file specification' in OS X. That bit will stop working one
of these days. Better just to leave it as
repeat with it from 1 to (count theSelection)
set anItem to item i of theSelection
info for anItem
end repeat
You can get info for an alias perfectly well. You may just need to evaluate
the list item as here.
--
Paul Berkowitz
_______________________________________________
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.