Re: aborting a running script
Re: aborting a running script
- Subject: Re: aborting a running script
- From: Jan Bultereys <email@hidden>
- Date: Mon, 28 Feb 2011 14:35:05 +0100
- Thread-topic: aborting a running script
Title: Re: aborting a running script
Hi Jim,
Run the script as an application and force quit from the dock, whenever required....
You can use the “find” command instead of “ls”
Best regards,jan
On 28/02/11 14:09, "Jim Brandt" <email@hidden> 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
Met vriendelijke groeten / Cordialement / Kind regards,
Jan Bultereys
Asst Manager Cat. Prod. Systems Creative Services Benelux
Office Depot
Schoonmansveld, 28
2870 Puurs
Belgium
T +32 (0)3 860 55 02
F +32 (0)3 860 55 49
M +32 (0)474 52 98 57
E-mail: email@hidden
Delivering Winning Solutions that Inspire Worklife
This email and any attached files are confidential and may be legally
privileged. If you are not the intended recipient, any disclosure,
reproduction, copying, distribution, or other dissemination or use of this
communication is strictly prohibited. If you have received this
transmission in error please notify the sender immediately and then delete
this email.Email transmission cannot be guaranteed to be secure or error
free as information could be intercepted, corrupted, lost, destroyed, arrive
late or incomplete, or contain viruses. The sender therefore is in no way
liable for any errors or omissions in the content of this message, which may
arise as a result of email transmission. If verification is required,
please request a hard copy.
_______________________________________________
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