Maybe this piece of code may help.
(path to desktop as text) & "Default.lproj:"
tell application "System Events"
try
kind of (get properties of disk item result)
(* {
name extension:"lproj",
volume:"Macintosh HD",
creation date:date "samedi 17 mars 2012 10:27:52",
class:folder,
modification date:date "samedi 17 mars 2012 10:27:52",
physical size:missing value,
path:"Macintosh HD:Users:…",
displayed name:"Default.lproj",
POSIX path:"/Users/…",
visible:true,
id:"Default.lproj,-100,88830",
size:missing value,
busy status:false,
container:folder "Macintosh HD:Users:…" of application "System Events",
package folder:false,
name:"Default.lproj"}
*)
on error
"folder"
end try
set theKind to result
log theKind
(*folder*)
end tell
(path to desktop as text) & "GlobalCSCA110111.pdf"
tell application "System Events"
try
kind of (get properties of disk item result)
(* {
short version:"",
container:folder "Macintosh HD:Users:…" of application "System Events",
path:"Macintosh HD:Users:…:GlobalCSCA110111.pdf",
file type:missing value,
volume:"Macintosh HD",
physical size:16384,
id:"GlobalCSCA110111.pdf,-100,4552795",
displayed name:"GlobalCSCA110111.pdf",
busy status:false,
kind:"Portable Document Format (PDF)",
creator type:missing value,
version:"",
name extension:"pdf",
POSIX path:"/Users/…/GlobalCSCA110111.pdf",
name:"GlobalCSCA110111.pdf",
modification date:date "mercredi 31 octobre 2012 20:35:21",
size:16384,
class:file,
type identifier:"com.adobe.pdf",
package folder:false,
stationery:false,
creation date:date "mercredi 31 octobre 2012 20:35:21",
default application:alias "Macintosh HD:Applications:Preview.app:" of application "System Events",
visible:true,
product version:""} *)
on error
"folder"
end try
set theKind to result
log theKind
(*Portable Document Format (PDF)*)
end tell