tell application "Finder"
set x to (make new folder at desktop with properties {name:"TEST-FOLDER"}) -- as alias
set varType to (class of x) as text
try
set objType to (class of item x) as text
on error
set objType to "error"
end try
display dialog varType & ", " & objType
end tell
-- with 'as alias', displays "alias, folder" in 10.4.11, 10.5 and 10.6.
-- comment out 'as alias', then ...
--
-- in 10.5.8, displays "folder, error". Should display "?, folder"
-- in 10.6.1, displays "folder, error". Should display "?, folder"
-- in 10.4.11, displays "folder, error". Should display "?, folder"