Re: Getting info for files in Finder selection
Re: Getting info for files in Finder selection
- Subject: Re: Getting info for files in Finder selection
- From: Peter Waibel <email@hidden>
- Date: Fri, 13 May 2005 16:50:56 +0200
Try this:
tell application "Finder"
set theSelection to selection
--return class of item 1 of theSelection
--> document file
end tell
repeat with i in theSelection
-- info for anything -- the alias or file reference to the file or
folder
set fi to info for (file (i as string))
end repeat
Cheers
Peter
Am 13.05.2005 um 11:55 schrieb pete boardman:
I'm trying to get something like this working:
--
tell application "Finder" -- Tiger 10.4.
set theSelection to selection
repeat with i in theSelection
set fi to info for i
end repeat
end tell
--
but I keep getting errors like "Finder got an error: File document
file ... wasn't found."
This gives the same error:
--
tell application "Finder"
set theSelection to selection
end tell
repeat with i in theSelection
set fi to info for i
end repeat
--
I think it's class trouble, but I'm not sure how to resolve it. Is
'info for' wanting something that the Finder isn't giving it?
Pete
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden