Re: 'Info for' Questions
Re: 'Info for' Questions
- Subject: Re: 'Info for' Questions
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 03 Mar 2004 07:10:06 -0800
On 3/3/04 6:28 AM, "email@hidden" <email@hidden> wrote:
>
>
If I use ...
>
>
tell application "Finder"
>
set theFile1 to choose file with prompt "Choose a File:"
>
set fileInfo to info for theFile1
>
>
set folderStatus to (folder of fileInfo)
>
>
end tell
>
>
fileInfo & return & folderStatus
>
>
... I receive an 'AppleScript Error' Message of ...
>
"Can't get folder of {name:"Boogle", creation date:date "Freitag, 13.
>
Februar 2004 19.29.06 Uhr", ... short version:"", long version:""}.
The real Question here is - why in the world are you sticking all this in
the Finder?? Naturally the Finder's definition of 'folder' is going to take
precedence over 'info for' definition of 'folder'. Instead of walking you
through each and every example where this is happening, just do this:
remove the Finder tell block. Try all your examples again - no Finder
anywhere - then let us know if you see any anomaly.
--
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.