Posted By

splorp on 06/30/06


Tagged

file mac applescript filetype filecreator type creator macintosh script


Versions (?)



Who likes this?

5 people have marked this snippet as a favorite

luxuryluke
splorp
vonkinder
hami
mediafp


Get Mac File Type & Creator


Published in: AppleScript 



Website Promotion
DIRECTORY
is a crucial factor for all websites that need to gain better organic search engine rankings and increase website traffic.
Submitting your website as part of your Web Promotion strategy to our SEO friendly and high traffic Business Directory for review is an excellent way to gain a valuable backlink and increase your websites visibility online.

Submit Site


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

Expand | Embed | Plain Text
  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 

You need to login to post a comment.