Du bist hier: Snippet-Verzeichnis » Apple (1)
Sprache:

Create Self-Mounting Image from Disk Copy Image

Sprache: English
Programmiersprache: AppleScript
Veröffentlicht von: akochoi [nicht registriert]
Letzte Änderung: 15.05.2006
Aufrufe: 1412


Beschreibung

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

1 on open (imagefile) 2 set imagefile to imagefile as text 3 if imagefile ends with ".img" then 4 set len to length of imagefile 5 set smifile to (characters 1 thru (len - 4) of imagefile) & ".smi" as text 6 else 7 set smifile to imagefile & ".smi" 8 end if 9 tell application "Disk Copy" 10 create SMI file smifile source images file imagefile 11 end tell 12 end open

Noch kein Kommentar vorhanden

Dieses Snippet kommentieren

Name *  

E-Mail (wird nicht angezeigt) *    

Website  

Kommentar *  

Sicherheitscode Sicherheitscode *    

RSS