Mac OS 9 Discussion > Software
using diskCopy to create ".smi" self mounting images using Applescript
supernova777:
http://snippetcenter.org/en/create-self-mounting-image-from-disk-copy-image-s338.aspx
Description
There is a little known feature of Disk Copy: it can create a self-mounting image from a disk image generated by it. However this feature is accessible only by AppleScript and not from the GUI. Save the following script as an application (droplet) and drop an image file on it to generate the corresponding self-mounting image.
--- Code: ---on open (imagefile)
set imagefile to imagefile as text
if imagefile ends with ".img" then
set len to length of imagefile
set smifile to (characters 1 thru (len - 4) of imagefile) & ".smi" as text
else
set smifile to imagefile & ".smi"
end if
tell application "Disk Copy"
create SMI file smifile source images file imagefile
end tell
end open
--- End code ---
supernova777:
getting an error.. -1302?
perhaps i need to visit http://macscripter.net/index.php for some help xD
this sucks! so close!! but . argh!!
http://support.apple.com/kb/TA24879?viewlocale=en_US#
--- Quote ---AppleScripts that extend the functionality of Disk Copy, version 6.3 or greater. They are provided as examples of how to use AppleScript to control Disk Copy, and gain access to features not present in the user interface. Create self-mounting image will prompt the user to select a disk image, verify it, then let the user save it as a self-mounting image. AppleScripts can be executed directly from Disk Copy by placing them in a folder named 'Scripts' in the same folder as Disk Copy. When a Scripts folder containing AppleScripts is present, a new menu will appear in Disk Copy named "Scripts". AppleScripts selected from this menu will have their "on run" handler executed.
Floppy insert preferences will prompt the user to decide what action Disk Copy will take if a floppy disk is inserted while Disk Copy is the foreground application. The "Make an Image" button will result in the floppy being saved as a disk image, and the "Copy" button will result in the floppy being copied and restored onto another floppy. Segment Image will ask the user how they want to segment an image (by size or number of parts), prompt the user to select a disk image, verify it, then save the image segmented. Using the Script Editor or other AppleScript script editor, the contents of the scripts can be viewed.
This software consists of a self-mounting Disk Copy compressed image (.smi) file. Download this software to your hard drive and then double-click it to use it. You do not need Disk Copy to access smi files.
Note: Disk Copy 6.3 Scripts, released July 17, 1998 requires Disk Copy 6.3 or greater, and a Mac OS based computer with AppleScript installed.
--- End quote ---
http://download.info.apple.com/Apple_Support_Area/Apple_Software_Updates/English-North_American/Macintosh/Utilities/Disk_Copy/Disk_Copy_6.3_Scripts.smi.bin
supernova777:
heres the script to "Save as Application"
can anyone help me make this work??
supernova777:
in .sea format
supernova777:
ok this seems to work alot easier:
http://macintoshgarden.org/apps/shrinkwrap
image > convert image "Self mounting image"
wonder why this applescript shit gave me that error.. ohwell.. i was stoked to be using applescript for a min there.. too bad it didnt end in success:(
Navigation
[0] Message Index
[#] Next page
Go to full version