Re: Apple Timed Out Error
Re: Apple Timed Out Error
- Subject: Re: Apple Timed Out Error
- From: Daniel Rodrigue <email@hidden>
- Date: Tue, 09 Mar 2010 13:58:01 -0500
Hi Richard,
On Mar 09, 2010, at 11:45, Richard @ Beaver Promotions wrote:
I have a display dialog box that comes up on alerting the user to do
something.
But this user could be away from his desk on break, making a coffee,
attending a meeting, taking a smoke, anyway but as his desk when
this alert box appears.
How do I correctly stop this dialog box from raising an Apple Timed
Out error?
Hum... Do I understand that you want to stop the script if there is no
answer to the «display dialog» or you just want to avoid going to the
«Time Out Error» because there is no answer?
To dismiss quietly the Dialog, use the «giving up» option of the
«display dialog» command.
set theResult to display dialog unicode text ¬
default answer unicode text ¬
hidden answer boolean ¬
buttons {unicode text, ...} ¬
default button unicode text | integer ¬
cancel button unicode text | integer ¬
with title unicode text ¬
with icon unicode text | integer ¬
with icon stic ¬
with icon file ¬
giving up after integer
To stop the script use the following:
set sResult to button returned of (get display dialog "Please do
something..." buttons {"OK", "Cancel"} giving up after 3)
if sResult = "" then error number -128 -- <<<<< the script will stop
right there.
On another topic this same script checks whether a file that was
created by a cgi script exists on an ftp server. Due to finder
only mounting
read-only ftp drives I have to dismount and re-mount the ftp drive
every x minutes. This is quite annoying, I wonder if there is any
alternatives.
You can use the «cURL» UNIX command with the FTP option to read or
write the an FTP server...
Regards,
Dan
--/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\--
Daniel Rodrigue / Simple & Logik
Vox: 450-468-5726 • cel: 514-996-5726
1261 rue Bourgeoys, Longueuil (Québec) Canada J4M 1Z5
••••••••••••••••••••••••••••••••••••••••••••••••••••••
“Quidquid latine dictum sit, altum sonatur.”
“Peu importe, dit en latin ça sonne profond.”
“Whatever is said in Latin sounds profound.”
--\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden