Re: Quitting Scripts
Re: Quitting Scripts
- Subject: Re: Quitting Scripts
- From: Laine Lee <email@hidden>
- Date: Thu, 08 Oct 2009 20:38:19 -0500
- Thread-topic: Quitting Scripts
On 10/4/09 5:44 AM, "Brian Christmas" <email@hidden> wrote:
> G'day scripters
>
> I've googled and can't find an answer to this.
>
> I've got a 5000+ line script that automates the printing and
> compressed saving of incoming graphics attachments in Mail.
>
> I periodically get the script to check a data file to see if a flag is
> set for it to quit, and if so, it executes a error -128 to stop dead.
>
> Trouble is, if the user plays with the computer at the wrong time,
> parts of the script freeze despite extensive error trapping, and don't
> resume until the 'Applescript timed out' 1 minute interval, which
> wastes valuable time (we sometimes process 50 emails an hour).
>
> Is there any way of stopping/quitting running scripts that are hung?
> And no, I can't save and call it as an App, as parts of it don't work
> that way.
>
> Regards
>
> Santa
> _______________________________________________
--
Stop - halt - abort - quit - a running Applescript
Leopard or Snow Leopard command:
sudo killall AppleScript\ Runner
Older systems
sudo killall System Events
Regards,
Laine Lee
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden