Wait Until Process Completion
Wait Until Process Completion
- Subject: Wait Until Process Completion
- From: Luther Fuller <email@hidden>
- Date: Mon, 12 May 2008 20:43:26 -0500
The following worked correctly in Tiger.
repeat
delay 1
do shell script "ps -p " & pid --<<<<
if not (the result contains pid) then exit repeat
end repeat
But, in Leopard, the line marked --<<<< errors (= 1) and my script
stops.
So, I replaced it with ...
repeat
delay 1
try
do shell script "ps -p " & pid
on error
exit repeat
end try
end repeat
and now my script is again working correctly. But why?
Something has changed its behavior.
Does anyone know what's going on here?
_______________________________________________
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