Re: aborting a running script
Re: aborting a running script
- Subject: Re: aborting a running script
- From: OzSanta <email@hidden>
- Date: Tue, 01 Mar 2011 00:14:07 +1100
On 01/03/2011, at 12:09 AM, Jim Brandt wrote:
Jan,
I don't want a time limit, there will be times when I'm willing to let it crunch away. This question was more of a "I changed my mind because it's taking too long" situation :>)
Thanks for the shell script suggestion. I hadn't thought of that one. I'll play around with it.
My need was to have a list of paths to compare against a list built from an HTML file for missing files. Not sure an LS command will be easy to do that with though. On Feb 28, 2011, at 6:54 AM, Jan Bultereys wrote: Hi Jim, You can set up “timehandler” in your script where it cancels the script if the scirpt runs for example longer than 15 minutes.... -- on start — log the time -- on run compare the time and cancel when due time has been reached.... Your second question... something quick and dirty... since I don’t know your output intent.. set mainfolder to "/Users/belmac42/Desktop/mainfolder" set thelist to do shell script "cd " & mainfolder & "; ls -R" Change belmac42 to your user Change mainfolder to a folder on your desktop where you have folders and files inside.... Best regards,jan
G'day Jim.
Try re-writing (if necessary) and running the script as an application, then you can Quit at any time.
Regards
Santa
|
_______________________________________________
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