How can my program tell whether a dropped item is a folder or a file?
on open FolderList --expecting two folders try if class of FolderList is not list then ¬ error "Class of FolderList is " & ¬ class of FolderList & "."
if length of FolderList is not two then ¬ error "Length of FolderList is " & ¬ length of FolderList & "."
set FolderA to item 1 of FolderList set FolderB to item 2 of FolderList
error "class of FolderA=" & class of FolderA
--> Gets <<class bmrk>> for either folders or files
CompareFolders(FolderA, FolderB)
on error errmsg number errn display dialog "Error1: " & errmsg & " (" & errn & ")" end try end open
|