determine file, folder, app?

[quote]
how do i get applescript to determine whether or not the item dropped on it is a file, folder, or application?

[quote]

try using class of
ie.

on open x
repeat with theItem in x
if class of theItem is "application" then
display dialog theItem as string & " is an application"
else if class of theItem is "file" then
display dialog theItem as string & " is a file"
else if class of theItem is "folder" then
display dialog theItem as string & " is a folder"
else
display dialog theItem as string & " is another file type"
end if
end repeat
end open

I think that’ll work, but can’t be certain, depends what “class” returns. Use the results window to check.
oh, & might need to enclose that all in a “tell app finder” block.
Cameron