Re: Question about "info for" command
Re: Question about "info for" command
- Subject: Re: Question about "info for" command
- From: "Marc K. Myers" <email@hidden>
- Date: Thu, 14 Jun 2001 13:52:12 -0400
- Organization: [very little]
>
Date: Thu, 14 Jun 2001 10:10:08 +0200
>
Subject: Question about "info for" command
>
From: Jan Pieter Kunst <email@hidden>
>
To: Applescript lijst <email@hidden>
>
>
tell application "Finder"
>
set x to folder of (info for selection)
>
end tell
>
>
--> returns an error message??
You've got a conflict between the Finder (which knows what a folder is)
and the "info for" scripting addition command. Try it this way:
tell application "Finder" to set theFile to (item 1 of the selection) as alias
set x to folder of (info for theFile)
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[6/14/01 1:52:01 PM]