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: Shane Stanley via AppleScript-Users <email@hidden>
- Date: Sun, 23 Aug 2020 09:15:40 +1000
On 23 Aug 2020, at 7:53 am, email@hidden wrote:
>
> Is there a way to get that to return an integer only, instead of something
> like 2.588932109455E+4, without resorting to awk?
It's just a real, so:
set upTime to (current application's NSProcessInfo's processInfo()'s
systemUptime()) div 1
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
_______________________________________________
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