Updated the applescript documentation for te new framework, and replaced the Eudora example with one that uses Disk Copy (which everyone running MacOS 8 or

higher should have).
This commit is contained in:
Jack Jansen 2000-08-20 21:57:38 +00:00
parent e743c6e27e
commit c15ab036df
9 changed files with 1250 additions and 961 deletions

View file

@ -0,0 +1,15 @@
import Disk_Copy
import macfs
import sys
talker = Disk_Copy.Disk_Copy(start=1)
talker.activate()
filespec = macfs.FSSpec('my disk image.img')
try:
objref = talker.create('my disk image', saving_as=filespec, leave_image_mounted=1)
except Disk_Copy.Error, arg:
print "ERROR: my disk image:", arg
else:
print 'objref=', objref
print 'Type return to exit-'
sys.stdin.readline()