i have thought about using an idle handler but how would it work (i have never used one)
basically my script is set to open an excel file do some stuff then take that copy into Quark
where there is some hand formating to be done before continuing
some times no hand work is needed
other times it may take 10-15 min
i would prefer to just be able to hit an ok button once done
but sometimes it “times out” before i am done
the reason i need it to be in one AS is cause there are variables in the first part of the script that i would be unable to carry into the 2nd half if it were a seperate script
yeah i think you could store a handler in a separate file and display a dialog with infinite timeout. then when you hit OK have it run that “outside” handler to process the rest. you might have to declare the variables outside of the handler in that other script though. not really sure.
Your understanding of ‘with timeout’ is incorrect.
It doesn’t tell AppleScript to wait that amount of time for the next statement to execute. It sets the amount of time AppleScript will wait for future applications calls to execute.
The correct way to do this is using the ‘giving up after’ parameter. This will dismiss the dialog after the set time unless the user dismisses it first - I assume this is the result you’re aiming for?