On 8 Nov, 2006, at 04:59, Ruth Bygrave wrote: Anyone know how to set up Toast to do disc images?
I
Hi Ruth,
See if this helps:
tell application "Toast 6 Titanium"
--this section for testing activate
set myFolder to (choose folder with prompt "Please choose a folder to image.") set myFolderInfo to info for myFolder set myFolderName to myFolderInfo's name set myImageFileContainer to (choose folder with prompt "Please choose where the image file is to be saved.") set theDiskName to (display dialog "Please choose a name for the disk image volume" default answer myFolderName) set myFileRef to (choose file name default location myImageFileContainer default name myFolderName & ".toast") --end of test stuff
set myDisc to make Data disc with properties {name:theDiskName, file system type:Mac OS Extended} (* options such as "Mac only" or "compressed" are not accessible as commands they need to be set up manually ahead of time or scripted through the graphic interface *) add to myDisc items {myFolder} --list of file and folder references save myDisc as disc image myFileRef --write myDisc --without asking end tell
I kind of agree with J. Stewart, that you could get better compression options and greater portability with the shell commands--hdiutil is, after all, a part of the standard installation of Mac OS X--yet I see where you're coming from as far as convenience for your users.
Peace,
paul --
|