Anyone know how to set up Toast to do disc images?
I want to choose a base 'Uncompressed' folder full of folders, and a base 'Compressed' folder full of disc images, and the script will go through the Uncompressed folder, and if it finds any folders that don't have a corresponding compressed image, make one.
I create a Mac-only disc image first, to compress it, and then burn that to disc eventually. I'm not so interested in scripting burning the disc, because that requires user intervention anyway, putting the disc in. It would be very useful to be able to set the creation of compressed images going as a batch, though, because that might well run overnight with no intervention required.
I looked at the dictionary for Toast, and cannot figure out what properties to use to choose 'compressed' and 'mac only', as most of the settings seem to be to do with video DVDs rather than data.
Then I Googled for it, but couldn't find any examples of 'how to create a disc image in Toast' that I could cannibalise, although I found somebody asking for help with this.
Probably obvious question 1)
Tried: set myDisc to (make new disc with properties {name:theName}) s\ It didn't seem to like that, although all the words except theName are blue, so it knows what the words mean, and said 'cannot make new class disc'. How do I tell it to make an object of class disc, since all the dictionary tells me is that it knows what a disc is?
I used 'tell application Toast Titanium' to launch Toast, and I know Toast can see the script, because the focus moves to Toast when I run the script...
Probably obvious question 2) How do I set properties for it, for example as disc image or disc, and as Mac-only compressed vs Mac or PC, and do I need to tell it it's a Data disc (because whenever I add the words 'Data disc', which are in the dictionary, it throws an error)?
Probably obvious question 3) How do I prepare the disc? When I create it, is that like the ordinary Toast window, and I then add files to it and use the 'write' command to burn the disc?
Beginner-level, as if that isn't obvious. All I need is the odd line of code to get the syntax right, I can work on it from there. |