POV-Ray : Newsgroups : povray.macintosh : re-creation Server Time
23 Nov 2024 23:47:48 EST (-0500)
  re-creation (Message 1 to 9 of 9)  
From: Anton Sherwood
Subject: re-creation
Date: 4 Oct 2005 02:04:47
Message: <43421b7f$1@news.povray.org>
I've just moved my files from Linux to Mac.  Is there an easy way to 
give all my .pov files the right creator code?

-- 
Anton Sherwood, http://www.ogre.nu/
"How'd ya like to climb this high *without* no mountain?" --Porky Pine


Post a reply to this message

From: kurtz le pirate
Subject: Re: re-creation
Date: 4 Oct 2005 02:50:35
Message: <4342263b$1@news.povray.org>

43421b7f$1@news.povray.org...
> I've just moved my files from Linux to Mac.  Is there an easy way to 
> give all my .pov files the right creator code?


which os : 9 or X ?


Post a reply to this message

From: Anton Sherwood
Subject: Re: re-creation
Date: 5 Oct 2005 19:42:18
Message: <434464da@news.povray.org>
> "Anton Sherwood" a escrit
>> I've just moved my files from Linux to Mac.  Is there an easy way
>> to give all my .pov files the right creator code?

kurtz_le_pirate wrote:
> which os : 9 or X ?

10.4.2 to be precise.

-- 
Anton Sherwood, http://www.ogre.nu/
"How'd ya like to climb this high *without* no mountain?" --Porky Pine


Post a reply to this message

From: kurtz le pirate
Subject: Re: re-creation
Date: 6 Oct 2005 02:57:31
Message: <4344cadb$1@news.povray.org>

434464da@news.povray.org...
>> "Anton Sherwood" a escrit
>>> I've just moved my files from Linux to Mac.  Is there an easy way
>>> to give all my .pov files the right creator code?
>
> kurtz_le_pirate wrote:
>> which os : 9 or X ?
>
> 10.4.2 to be precise.

right, choose one povray file, get info (cmd i), choose "open with..." 
and select povray application.
at this point, the selected file must have the right icon. now click 
the the button "Modify all..."**  to force all files to be openned 
with povray.

** : because i have a french system, i man not sure about the excat 
labal for this button.

have fun !
klp


Post a reply to this message

From: Anton Sherwood
Subject: Re: re-creation
Date: 7 Oct 2005 01:04:02
Message: <434601c2@news.povray.org>
Anton Sherwood wrote:
> I've just moved my files from Linux to Mac.  Is there an easy way to 
> give all my .pov files the right creator code?

Hm.  I don't know what I did, but they now have the right creator code, 
so that double-clicking foo.pov opens Povray -- BUT Povray doesn't 
recognize them in the Open dialog!

-- 
Anton Sherwood, http://www.ogre.nu/
"How'd ya like to climb this high *without* no mountain?" --Porky Pine


Post a reply to this message

From: jlindersmith
Subject: Re: re-creation
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

From: jlindersmith
Subject: Re: re-creation
Date: 7 Oct 2005 23:20:01
Message: <web.434739e0c57fc1e962660460@news.povray.org>
Here is a drop on that will process folders full of pov files and should
take care of folder inside folders:
Just copy and paste from here down into apple script and save as an
application:

property extension_list : {"pov", "inc", "map"}
property fileType : "TEXT"
property creatorType : "POV3"
-- This droplet processes both files or folders of files dropped onto the
applet
on open these_items
 repeat with i from 1 to the count of these_items
  set this_item to (item i of these_items)
  set the item_info to info for this_item
  if folder of the item_info is true then
   process_folder(this_item)
  else if (alias of the item_info is false and the name extension of the
item_info is in the extension_list) then
   process_item(this_item)
  end if
 end repeat
end open

-- this sub-routine processes folders
on process_folder(this_folder)
 set these_items to list folder this_folder without invisibles
 repeat with i from 1 to the count of these_items
  set this_item to alias ((this_folder as text) & (item i of these_items))
  set the item_info to info for this_item
  if folder of the item_info is true then
   process_folder(this_item)
  else if (alias of the item_info is false and the name extension of the
item_info is in the extension_list) then
   process_item(this_item)
  end if
 end repeat
end process_folder

-- this sub-routine processes files
on process_item(this_item)
 tell application "Finder"
  set the file type of file (this_item as text) to fileType
  set the creator type of file (this_item as text) to creatorType
 end tell
end process_item


Post a reply to this message

From: Kenneth
Subject: Re: re-creation
Date: 27 Oct 2005 16:40:00
Message: <web.43613a15c57fc1e71fa4210@news.povray.org>
Anton Sherwood <bro### [at] poboxcom> wrote:
> I've just moved my files from Linux to Mac.  Is there an easy way to
> give all my .pov files the right creator code?
>

On my older Mac system (PowerMac with an older OS), I've been using a nice
little free program for years, called CREATOR CHANGER, to change creator
types. The current website is

http://alphaomega.software.free.fr/typeandcreatorchanger/Type%20And%20Creator%20Changer.html

and the current version is called TYPE AND CREATOR CHANGER 3.2

Perhaps this would work for you?

Ken


Post a reply to this message

From: kurtz le pirate
Subject: Re: re-creation
Date: 28 Oct 2005 12:49:02
Message: <kurtzlepirate-62E3A0.18490228102005@news.povray.org>
In article <web.43613a15c57fc1e71fa4210@news.povray.org>,
 "Kenneth" <kdw### [at] earthlinknet> wrote:

::Anton Sherwood <bro### [at] poboxcom> wrote:
::> I've just moved my files from Linux to Mac.  Is there an easy way to
::> give all my .pov files the right creator code?
::>
::
::On my older Mac system (PowerMac with an older OS), I've been using a nice
::little free program for years, called CREATOR CHANGER, to change creator
::types. The current website is
::
::http://alphaomega.software.free.fr/typeandcreatorchanger/Type%20And%20Creator%
::20Changer.html
::
::and the current version is called TYPE AND CREATOR CHANGER 3.2

or you make this little applescript :

on open (FileList)
  repeat with i from 1 to number of items in the FileList
    tell application "Finder"
      set thisFile to item i of FileList
      set (creator type of file thisFile) to "XXXX"
    end tell
  end repeat
end open


XXXX is NPOV for MegaPov and POV3 for POV-Ray. Let " arond XXXX.
this script can change the creator for all fileS dragged on it.
other thing. you can add this line :
    set (file type of file thisFile) to "TEXT"

to change the fileS type in one shot.


hope that help !
klp


Post a reply to this message

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