Re: hdiutil burn
Re: hdiutil burn
- Subject: Re: hdiutil burn
- From: Axel Luttgens <email@hidden>
- Date: Wed, 28 Dec 2005 15:25:14 +0100
Luther Fuller wrote:
What I know so far ...
Disk Utility
Can burn a disk from a sparseimage file and preserves all of the
attributes: icon position, icon text size, snap-to-grid, background
picture, view and window bounds. In other words, it makes an exact
copy of the disk image. It also shows progress of the burn. It has
only one problem: 'Leave Appendable' is not available when burning to
a DVD. (Which is the only reason I was trying to use a 'burn' command.)
File/Burn Disk... menu and a Burn Folder's Burn button
This does show progress, but it destroys all the attributes listed
above. The disk it burns is totally unacceptable.
burn command in hdiutil or drutil
This works like Disk Utility, in other words, it works very well, but
progress of the burn is not shown. Not showing progress makes this
unacceptable. I didn't think this was important until after trying the
burn command ... It's a real killer.
XBurn scripting addition
I found this late yesterday and tested it this morning. It does not
show progress. It will only burn a folder, not a sparseimage file. My
test used the equivalent of 'Leave Appendable', but this failed. It
does not preserve attributes listed above. Totally unacceptable.
Why doesn't 'burn' show progress?
Late yesterday I quickly re-read TN2065 "Do shell script ..." and was
reminded that 'do shell script' was designed to run terminal commands
and terminal-only unix boxes don't show progress, at least not like a
Mac does. Which prompts the question: Why was a useless 'burn' command
included in hdiutil and drutil?
Hmm... seems to burn CDs and DVD, doesn't it? Isn't that useful?
Now what do I do?
Well... feel free to send a feature request to Apple, should you really
miss a progress output from those commands.
But you sure will agree this is not really an Applescript matter anymore.
The fix for all these problems is hidden away in Apple's software and
there is no work-around.
OK, I'll take for granted that the implied question is here: could there
be some kind of workaround for using such tools from AppleScript?
As I wrote in my previous email, you could try to run drutil in the
background for burning; that should at least solve your problem with
regards to the script's unresponsiveness when executing the related "do
shell script" command.
If this works, you could then at least be able to check for the burning
process termination.
For example, drutil's "discinfo" verb seems to return a "Media is busy."
string in its output until burning termination.
Of cours, other verbs could provide more valuable info, or even other
commands; some observation/experimentation may prove helpful here
(sorry, I didn't investigate very much...).
Perhaps I will have to wait for Apple to fix the 'Leave Appendable' in
Disk Utility. Better yet, I think Apple should drop Burn Folders and
replace them with sparseimage files or something that behaves like a
"sparseimage folder". (Perhaps it should be called an "Archive
Folder".) ... I'll think about this for awhile.
HTH,
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden