• 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: Need to run script periodically (updated for your info)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need to run script periodically (updated for your info)


  • Subject: Re: Need to run script periodically (updated for your info)
  • From: Christopher Stone <email@hidden>
  • Date: Wed, 15 Feb 2017 21:28:11 -0600

On Feb 15, 2017, at 20:54, Brian Christmas <email@hidden> wrote:
While I’m at it, is there ANY way of determining if a script is actually being executed or turned off, such as while the system is waiting to re-opening it while going through a ’sleep’ cycle?

Similar to the ‘process’ call of an App.


Hey Brian,

Hmm...

The only thing I can think of offhand is to poll the shell.

If you run this:

do shell script "sleep 15"

You can see `sleep` running in the Activity Monitor.

You can also find it in the Terminal:

ps auxc | egrep -i "sleep"

Or from an AppleScript:

do shell script "ps auxc | egrep -i \"sleep\""

I wouldn't be too surprised if AppleScriptObjC offered more options, but that'll have to wait for Shane.

--
Best Regards,
Chris

 _______________________________________________
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: Need to run script periodically (updated for your info)
      • From: Brian Christmas <email@hidden>
References: 
 >Re: Need to run script periodically (From: Brian Christmas <email@hidden>)
 >Fwd: Need to run script periodically (updated for your info) (From: Brian Christmas <email@hidden>)
 >Re: Need to run script periodically (updated for your info) (From: Christopher Stone <email@hidden>)
 >Re: Need to run script periodically (updated for your info) (From: Brian Christmas <email@hidden>)
 >Re: Need to run script periodically (updated for your info) (From: Christopher Stone <email@hidden>)
 >Re: Need to run script periodically (updated for your info) (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: Need to run script periodically (updated for your info)
  • Next by Date: Handling Collisions on Copy or Move
  • Previous by thread: Re: Need to run script periodically (updated for your info)
  • Next by thread: Re: Need to run script periodically (updated for your info)
  • Index(es):
    • Date
    • Thread