Economy-x-Talk - Sample Scripts
Creator Types and File Types AS
Two scripts to set the creator and file type of files.
on setCreator(filePath,creatorType)
set rslt to ""
tell application "Finder"
try
set the creator type of file filePath to creatorType
on error errMsg number errNr
set rslt to "Error: " & errMsg & " (" & errNr & ")"
end try
end tell
return rslt
end setCreator
on setType(filePath,fileType)
set rslt to ""
tell application "Finder"
try
set the file type of file filePath to fileType
on error errMsg number errNr
set rslt to "Error: " & errMsg & " (" & errNr & ")"
end try
end tell
return rslt
end setCreator
Keep this extensive resource of tutorials and samples on-line! Support RunRev.info!
| Yes, this script is useful. I make a donation and choose freely how much I want to donate on-line (PayPal). Click here if you want to make a donation in dollars. | This script has not (completely) solved my problem and I want Economy-x-Talk to take care of it. Let me contact you. |
Copyright©2002-2008 by Mark Schonewille, Nijmegen, the Netherlands. This web site is in no way affiliated with Runtime Revolution Ltd., but we do recommend the Revolution development platform.