Waiting for modal dialog box to clear
Waiting for modal dialog box to clear
- Subject: Waiting for modal dialog box to clear
- From: Simon Forster <email@hidden>
- Date: Wed, 18 May 2005 11:08:36 +0100
Hope someone can offer some suggestions here. I'm scripting an export
from Adobe After Effects - and exporting isn't directly scriptable
(at least not in v 6.0 which is what I'm working with). UI Scripting
works fine though - and I have to admit I thought I had it all
licked, but...
While rendering After Effects (AE) throws up a dialog box. I had a
little repeat loop which checks for the presence of the Export dialog
box which seemed to work fine on a dual processor G5 but subsequently
fails on my G4 PowerBook. The loop is:
tell application "System Events"
tell process "After Effects"
--Keep on pausing while the rendering and exporting is happening
repeat while window "Export" exists
tell me to delay 5
end repeat
end tell
end tell
I've tried variations on the theme and wrapped stuff in "with
timeouts" but the script isn't failing at any point, it's simply that
the conditional evaluates to false when it shouldn't - but only
towards the end of the export process - i.e. the progress bar is
almost full and then it evaluates to false. Why? Any idea as to
what's going on here? Any suggested workarounds?
TIA
Simon Forster
_____________________________________________________
LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK
Tel: +44 (0)70 9230 5244 Fax: +44 (0)70 9230 5247
_____________________________________________________
_______________________________________________
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