append(): Fixing the test for convertability after consultation with
[python/dscho.git] / Mac / Demo / applescript / makedisk.py
blob3016964d4045c81b6104b2448577b6169687e5e2
1 import Disk_Copy
2 import macfs
3 import sys
5 talker = Disk_Copy.Disk_Copy(start=1)
6 talker.activate()
7 filespec = macfs.FSSpec('my disk image.img')
8 try:
9 objref = talker.create('my disk image', saving_as=filespec, leave_image_mounted=1)
10 except Disk_Copy.Error, arg:
11 print "ERROR: my disk image:", arg
12 else:
13 print 'objref=', objref
14 print 'Type return to exit-'
15 sys.stdin.readline()