/ Published in: AppleScript
Displays the file type and file creator designations for any Mac OS document or application.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
on open (fileList) tell application "Finder" set myFile to item 1 of fileList if kind of myFile is not "folder" then display dialog ¬ "file creator: " & (the creator type of (myFile as alias)) & return & ¬ "file type: " & (the file type of (myFile as alias)) end tell end open