• 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: aborting a running script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: aborting a running script


  • Subject: Re: aborting a running script
  • From: Jim Brandt <email@hidden>
  • Date: Mon, 28 Feb 2011 07:09:32 -0600

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


 _______________________________________________
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

  • Follow-Ups:
    • Re: aborting a running script
      • From: Thomas Fischer <email@hidden>
    • Re: aborting a running script
      • From: Jan Bultereys <email@hidden>
    • Re: aborting a running script
      • From: OzSanta <email@hidden>
References: 
 >Re: aborting a running script (From: Jan Bultereys <email@hidden>)

  • Prev by Date: Re: aborting a running script
  • Next by Date: Re: aborting a running script
  • Previous by thread: Re: aborting a running script
  • Next by thread: Re: aborting a running script
  • Index(es):
    • Date
    • Thread