• 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: Adam Bell <email@hidden>
  • Date: Mon, 2 Jan 2006 20:48:44 -0400

I the script is hanging because it's waiting for a response from the shell script. Others, as Paul said, will know better what the response must be, but my recollection that it is a 0 if the operation completed successfully, and an error number if not. Perhaps what's needed is a "fake" response as part of the script.


On 1/2/06, Paul Berkowitz <email@hidden> wrote:
On 1/2/06 4:28 PM, "Luther Fuller" <email@hidden> wrote:

> With a little patience, I've found the problem with using the command ...
>
> do shell script "hdiutil burn " & sourceImage & " -optimizeimage "
>
> My application hangs because it's waiting for a response from the
> command and it does not get a response until the burn is completed.
> You can see it happening in Activity Monitor.
>
> So I tried using 'ignoring application responses'. Like this ...
>
> "hdiutil burn " & sourceImage & " -optimizeimage "
> ignoring application responses
> do shell script the result
> end ignoring
>
> It has no effect at all. Same hang. But the disk DID burn correctly!
>
> Anyone have any insight into this?
>
> I hope there's a simple fix. The fix I have in mind is unorthodox,
> but I think it will work.

'ignoring application responses' only operates if you are directing a
command to an _application_ other than the one running the script. 'do shell
script' does not target an application, so it cannot apply there. I think
there might be some way to tell a 'do shell script' to ignore its result by
redirecting it to the error stream or something like that - others here will
know. (It involves adding a redirection to the end of the command.) Perhaps
that might have the same effect of not waiting for the result; but having said that - I don't think it's a good idea.

--
Paul Berkowitz


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden
This email sent to
email@hidden



--
Some minds remain open long enough for a truth to both enter and leave without processing.
 _______________________________________________
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

References: 
 >Re: hdiutil burn (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: hdiutil burn
  • Next by Date: Re: hdiutil burn
  • Previous by thread: Re: hdiutil burn
  • Next by thread: Re: hdiutil burn
  • Index(es):
    • Date
    • Thread