• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Toast
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Toast


  • Subject: Re: Toast
  • From: "Paul F. Henegan" <email@hidden>
  • Date: Thu, 9 Nov 2006 00:46:21 -0500


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
--
Paul F. Henegan
email@hidden



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

References: 
 >Toast (From: Ruth Bygrave <email@hidden>)

  • Prev by Date: Re: Toast
  • Next by Date: osxutils and accented chars
  • Previous by thread: Re: Toast
  • Next by thread: URL Access script to a remote volume
  • Index(es):
    • Date
    • Thread