Re: Need to run script periodically (updated for your info)
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.
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.
|
_______________________________________________
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