(* Freeware AppleScript from WhatsMyIP.org © 2017 Check out our other scripts! @ http://www.whatsmyip.org/lib/applescripts/ Identify File is an AppleScript gui wrapper for the unix program `file`, which reads the data of unknown files and tried to identify the type of file it is. *) on run set x to (choose file with prompt "Please select a file to identify..." with showing package contents) open x end run on open x set fileType to do shell script "file '" & (POSIX path of x) & "'" display dialog fileType buttons "OK" default button 1 with icon note end open