Re: file or folder?
Re: file or folder?
- Subject: Re: file or folder?
- From: Jason Bourque <email@hidden>
- Date: Mon, 20 Aug 2001 08:08:51 -0400
On 8/20/01 5:55 AM, "Ray Phillips" <email@hidden> wrote:
>
Dear AppleScript Users:
>
>
When a group of files and folders is dragged onto a droplet, what is the
>
recommended way of determining which items are files and which are folders?
>
>
I believe this much is mandatory:
>
>
on open(list)
>
>
end open
>
>
>
Ray
>
___________
Once you get an item in a variable (it will be an alias)
If (anItem as string) ends with ":" then
Set itsaFolder to true
Else
Set itsaFolder to false
End
All folders will have ":" at the end of it.
This way you don't have to use the finder to get the class of the item.
Saves you an Apple Event
Jason Bourque