[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: MacOS floppy creation



> On Thu, May 24, 2001 at 04:45:26PM -0700, Chris Tillman wrote:
>> +        <item>
>> +Obtain <url id="&url-powerpc-resedit;" name="ResEdit">.  Use it to
>> +open the <file>root.bin</file> file (a resource fork will be added to
>> +the file).
>
> adding a resource fork is harmful.  you should not open the file in
> resedit, instead you must use the `get file/folder info'  from under
> file.  iirc this does not open the file nor add a resource fork (no
> corruption)
>
> or use another utility, there used to be something called chown for
> macos that changed these silly codes.  (as opposed to changing file
> owners as in *nix).

How about this Applescript:

<script>

on open file_list
 
 tell application "Finder"
  repeat with floppy_image_file in file_list
   set the creator type of floppy_image_file to "ddsk"
   set the file type of floppy_image_file to "DDim"
   set the locked of floppy_image_file to true
  end repeat
 end tell
 
 tell application "Disk Copy"
  activate
  repeat with floppy_image_file in file_list
   with timeout of 900 seconds
    create a floppy from file floppy_image_file with erase confirmation
            without signature verification and make multiple floppies
   end timeout
  end repeat
 end tell
 
end open

</script >

You just drag the image file to it. But it would need to be put alongside
the other Mac utilities like BootX and BootVars, binhexed, in order to
retain its resource fork and thus its usefulness as a MacOS app.


--

Chris Tillman
tillman@azstarnet.com



Reply to: