POV-Ray : Newsgroups : povray.macintosh : re-creation : Re: re-creation Server Time
3 May 2024 20:33:26 EDT (-0400)
  Re: re-creation  
From: jlindersmith
Date: 7 Oct 2005 22:45:00
Message: <web.4347326dc57fc1e962660460@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.