Displays the file type and file creator designations for any Mac OS document or application.
- 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
You need to login to post a comment.