Return to Snippet

Revision: 114
at June 30, 2006 08:52 by splorp

Initial Code
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

Initial URL

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

Initial Title
Get Mac File Type & Creator

Initial Tags
file, mac, script

Initial Language