An easily modifiable apple script for setting the file type and creator code
is:
tell application "Finder"
set the file type of file "Path:Apovfile.pov" to "TEXT"
set the creator type of file "Path:Apovfile.pov" to "POV3"
end tell
then to check the value of a file use:
choose file
set fileInfo to info for result
display dialog "type:" & (file type of fileData as text) & " creator:" &
(file creator of fileData as text)
apple has changed the properties of these items so check your finder
dictionary if these don't compile they have been tested and used under
Tiger 10.4
hope it helps
Post a reply to this message
|