Re: Folder action switching itself off?
Re: Folder action switching itself off?
- Subject: Re: Folder action switching itself off?
- From: yvan-koenig <email@hidden>
- Date: Sat, 29 Jan 2005 08:38:47 +0100
Le 29 janv. 2005 , à 3:43, Simon Troup a écrit :
I have a folder action that's switching itself off after it runs
every time.
Everything in the script runs, the very last thing, a command line
call to a PHP script via the PHP CLI, completes its job successfully.
It's quite involved however, and probably takes a 90 seconds or so to
execute fully.
So, in short, the script works fine from beginning to end, but
switches itself off after the PHP call (which itself works!).
Is applescript "timing out" while waiting for the command line to
return a response? If so, can I get it to fail more gracefully, or
wait longer?
I tried this and still failed ...
with timeout of 300 seconds
do shell script "php /Library/WebServer/Documents/fileops/test.php"
end timeout
... any other suggestions please let me know.
Simon Troup
It would be useful to track the errors which may be encountered.
Most often it is such an error which disconnect the feature.
During tests, a try / end try pair around each instruction may be fine.
if an error is encountered, display an error message allowing you to
know which is the offending instruction.
Yvan KOENIG
_______________________________________________
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