Re: OS X test for Class Folder...continues
Re: OS X test for Class Folder...continues
- Subject: Re: OS X test for Class Folder...continues
- From: Rich Fortnum <email@hidden>
- Date: Mon, 28 Jan 2002 11:19:54 -0500
christian vick chortled:
>
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"
Actually, won't work. Can't coerce this into a string, either as a direct
reference, or as a drop application.
>
on open thisCD
>
set ThePath to thisCD as string
>
if ThePath ends with ":" then
>
display dialog thisCD buttons "OK"
>
else
>
set myName to thisCD
>
display dialog "yubba" buttons "OK"
>
end if
>
end open
Can't get that into a string to test to see if it's a folder
@@@ Rich Fortnum / Viaduct Productions / Toronto (EST)
@@@ Web Design / Databases / Internet Video / Wireless Data
@@@ email@hidden /
http://www.viaduct-productions.com