• 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
do shell script hanging for no reason after recent OS updates...?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

do shell script hanging for no reason after recent OS updates...?


  • Subject: do shell script hanging for no reason after recent OS updates...?
  • From: Ubence Quevedo <email@hidden>
  • Date: Sat, 12 May 2007 12:47:00 -0700

Hi All,

There was a great hint posted at Mac OS X Hints regarding an apple script that would mount a disk image, launch an application, and when the application was done, it would dismount the image [also optionally change the screen resolution with cscreen].

Here is the link to the hint:
http://www.macosxhints.com/article.php?story=2007011608181916

I took the original hint and modified it so it would meet my needs. I didn't have any problems what-so-ever with the script until now.

Has do shell script broke for certain actions? It seems recently, or least after one of the number of updates that Apple has released in the last month or two, that do shell script has broken for the below action:

do shell script ("hdiutil attach /Users/Shared/Disk_Images/640x480/ discovery_airport.dmg -mount required -noverify 2>&1>/tmp/ volumepath_" & ProcessNumber)

where ProcessNumber is:

set ProcessNumber to do shell script ("echo $$")

This would normally mount the disk image for Discovery Airport, but now the script hangs.

I launched a terminal and did a ps aux | grep hdiutil, and got the following results:

uquevedo 403 ... 12:41PM 0:00.48 hdiutil attach /Users/Shared/ Disk_Images/640x480/discovery_airport.dmg -mount required -noverify

uquevedo 402 ... 12:41PM 0:00.01 sh -c hdiutil attach /Users/ Shared/Disk_Images/640x480/discovery_airport.dmg -mount required - noverify 2>&1>/tmp/volumepath_401

The script looks like it fails at one attempt of the command and then is successful at a relaunch of the command? Eventually the script fails with "Finder got an error: Apple Event timed out.".

The system is a iMac G3 running 10.4.9 with all the latest updates.

I'm not terribly familiar with applescript. Does anyone have any advice on how to fix this?

Thanx in advance...

-Ubence
_______________________________________________
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/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: do shell script hanging for no reason after recent OS updates...?
      • From: Philip Aker <email@hidden>
  • Prev by Date: Re: Error of Type -10827 has occurred
  • Next by Date: Re: do shell script hanging for no reason after recent OS updates...?
  • Previous by thread: applescript and http
  • Next by thread: Re: do shell script hanging for no reason after recent OS updates...?
  • Index(es):
    • Date
    • Thread