Re: Checking if script is run from login items
Re: Checking if script is run from login items
- Subject: Re: Checking if script is run from login items
- From: Jenni via AppleScript-Users <email@hidden>
- Date: Fri, 21 Aug 2020 20:35:37 -0700
> On Aug 21, 2020, at 12:04 PM, Ralph Richardson <email@hidden>
> wrote:
>
> set myUptime to do shell script “uptime"
Hi Ralph,
This actually works in my situation. Thanks!
It’s too bad, though, that uptime can’t use the -p or -s options on the
Mac — they produce an “illegal option” error. It also returns a mixture of
letters and numbers depending on the time, e.g. "1 hour” or “1:01”, so to parse
this correctly is a pain. However, I think I've worked around those
limitations.
So, in leiu of a proper flag, this looks like it will work.
Thanks again,
Frank
_______________________________________________
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