Re: OS X test for Class Folder
Re: OS X test for Class Folder
- Subject: Re: OS X test for Class Folder
- From: christian vick <email@hidden>
- Date: Mon, 28 Jan 2002 15:37:42 +0100
on 1/28/02 9:57 AM, Rich Fortnum at email@hidden wrote:
>
If folder of (myItem) then
>
display dialog "this is a folder!" buttons "OK"
>
Else
>
display dialog "This ain't no folder" buttons "OK"
>
End if
>
>
Doesn't seem to work. Any ideas welcome.
If you coerce the path reference to a string, you can test for an folder by
asking for the colon at the end:
Set ThePath to (alias foo as string)
If ThePath ends with ":" then display dialog "this is a folder!" buttons
"OK"
Greetings
cris