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: Michelle Steiner <email@hidden>
- Date: Fri, 2 Oct 2009 16:45:15 -0700
On Oct 2, 2009, at 4:09 PM, Mari Masuda wrote:
tell application "Finder"
set MARI to name extension of (info for myFile)
log MARI
end tell
---end script snippet---
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---
Get rid of the Finder block; it's not needed and is interfering with
the command.
The reason that the first snippet works is that "name extension" is
defined in the Finder's library, but "folder" has a completely
different definition in the Finder's library, which causes that
snippet to fail.
-- Michelle
--
Those who extol the "nobility of labor" mean the labor of others.
_______________________________________________
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