• 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: hdiutil burn
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hdiutil burn


  • Subject: Re: hdiutil burn
  • From: Luther Fuller <email@hidden>
  • Date: Mon, 26 Dec 2005 15:23:27 -0600

An update. Since my last posting, I have tried using drutil to burn. Here's the handler I'm using ...

on burnImage(itemRef)
try
do shell script "drutil -drive 1 eject"
display dialog "Insert media, then ..." buttons {"Cancel", "Continue"} default button 2
do shell script "drutil -drive 1 tray close"
quoted form of (POSIX path of itemRef)
with timeout of 1000000 seconds
do shell script "drutil -drive 1 burn -appendable " & the result
end timeout
-- execution of script always stops here! -------
do shell script "drutil poll"
set the clipboard to (the result as text)
display dialog "Finished!"
on error errText number errNr
quoted form of (POSIX path of itemRef)
display dialog the result as text
"Error = " & errNr & return & errText
display dialog the result
end try
end burnImage


My results were disappointing. On three occasions, I was able to actually burn a session to a CD-RW disk. In all three cases, the itemRef being burned was a folder. I have not yet been able to burn from a .dmg or .sparseimage file. Until I put the timeout around the burn statement, the script timed-out after 1 min and the script died. Now the script just sits there not responding and eventually needs to be force quit.

The 'burn' command seems to be launching some disk burning process, then killing the script. But the burning process continues with absolutely no indication to the user that it's even running. No progress. No icon. No message. No nothing. The CD refuses to be ejected, which seems to indicate that burning is in progress. Then, with no warning, the CD ejects and when reinserted, mounts a new disk.

Perhaps I am using drutil incorrectly, but I am beginning to think that it is simply not very well designed software. We'll see.
_______________________________________________
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
  • Follow-Ups:
    • Re: hdiutil burn
      • From: Axel Luttgens <email@hidden>
    • Re: hdiutil burn
      • From: Emmanuel <email@hidden>
  • Prev by Date: GC header gets pixilated
  • Next by Date: Re: hdiutil burn
  • Previous by thread: hdiutil burn
  • Next by thread: Re: hdiutil burn
  • Index(es):
    • Date
    • Thread