Re: extracting info from list returned by info for
Re: extracting info from list returned by info for
- Subject: Re: extracting info from list returned by info for
- From: Israel Chauca Fuentes <email@hidden>
- Date: Fri, 2 Oct 2009 22:14:33 -0500
On Oct 2, 2009, at 6:09 PM, Mari Masuda wrote:
What I really want to do, however, is extract the value of the
"folder" property in the list returned by "info for". When I try
the following, I get an error:
---script snippet---
set myFile to (choose file)
tell application "Finder"
set MARI to folder of (info for myFile) -- MARI should be false in
this example
log MARI
end tell
---end script snippet---
I think the term "folder" inside the tell block referes to the
Finder's class instead of the record property you want. This works here:
==
set myFile to (choose file)
tell application "Finder"
set theInfo to info for myFile
end tell
set MARI to folder of theInfo
log MARI
==
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden