2000-08-20 18:57:38 -03:00
|
|
|
import Disk_Copy
|
|
|
|
import macfs
|
|
|
|
import sys
|
|
|
|
|
|
|
|
talker = Disk_Copy.Disk_Copy(start=1)
|
|
|
|
talker.activate()
|
|
|
|
filespec = macfs.FSSpec('my disk image.img')
|
|
|
|
try:
|
2004-07-18 03:16:08 -03:00
|
|
|
objref = talker.create('my disk image', saving_as=filespec, leave_image_mounted=1)
|
2000-08-20 18:57:38 -03:00
|
|
|
except Disk_Copy.Error, arg:
|
2004-07-18 03:16:08 -03:00
|
|
|
print "ERROR: my disk image:", arg
|
2000-08-20 18:57:38 -03:00
|
|
|
else:
|
2004-07-18 03:16:08 -03:00
|
|
|
print 'objref=', objref
|
2000-08-20 18:57:38 -03:00
|
|
|
print 'Type return to exit-'
|
|
|
|
sys.stdin.readline()
|