Get Mac File Type & Creator


/ Published in: AppleScript
Save to your folder(s)

Displays the file type and file creator designations for any Mac OS document or application.


Copy this code and paste it in your HTML
  1. on open (fileList)
  2. tell application "Finder"
  3. set myFile to item 1 of fileList
  4. if kind of myFile is not "folder" then display dialog ¬
  5. "file creator: " & (the creator type of (myFile as alias)) & return & ¬
  6. "file type: " & (the file type of (myFile as alias))
  7. end tell
  8. end open

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.