Re: aborting a running script
Re: aborting a running script
- Subject: Re: aborting a running script
- From: Tommy Bollman <email@hidden>
- Date: Mon, 28 Feb 2011 23:30:00 +0100
Hello.
I just wanted to add to this thread that if there is some kind of cleanup required before the
eventual app quits, then measure should be taken as described in Applescript The Definitive Guide 2nd Edition. As I can't find the book at the moment ;-) you better find it online at Google,
and search for "Paul Berkowitz", since he was the guy inventing the method for overcoming the problems. This technique of his really works when you need to quit gracefully.
HTH
Tommy
Den 28. feb. 2011 kl. 13.31 skrev Jim Brandt:
> I have a question about aborting a running script.
>
> When invoked from the script menu, which application or process is in control of running the script? Is it System Events? Is there a graceful way to cancel the script while it is running?
>
> I have several scripts that walk file directories, and after starting them, they take longer than I intended and I want to shut them down. So I'm looking for a way to do this without putting dialog in that needs responded to every so often.
>
> Is there an accepted way to do this. Stopping a process from Activity Monitor?
>
>
> Also, does anyone have a way to build a list of all files regressively in folders below the current level?
>
> i.e.
>
> folder 1
> file 1
> file 2
> file 3
> folder 2
> file 4
> file 5
> folder 3
> folder 4
> file 6
> file 7
>
> I want a list of the paths of all files (and folders) shown. Can the Finder give this in a single command?
>
>
> TIA,
>
> Jim
>
> _______________________________________________
> 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
Best regards
Tommy Bollman
--------------------------------------------------------------------------------------------------
Mollison's Bureaucracy Hypothesis:
If an idea can survive a bureaucratic review
and be implemented it wasn't worth doing.
_______________________________________________
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