• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Folder action switching itself off?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Folder action switching itself off?
      • From: wayne melrose <email@hidden>
References: 
 >Re: Folder action switching itself off? (From: Simon Troup <email@hidden>)

  • Prev by Date: Re: Automating ichat, itunes and ical
  • Next by Date: Re: New window in Terminal.app
  • Previous by thread: Re: Folder action switching itself off?
  • Next by thread: Re: Folder action switching itself off?
  • Index(es):
    • Date
    • Thread