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: Sat, 22 Aug 2020 14:53:00 -0700
> On Aug 21, 2020, at 10:57 PM, Shane Stanley via AppleScript-Users
> <email@hidden> wrote:
>
> This will return the value in seconds:
>
> use AppleScript version "2.5" -- macOS 10.11 or later
> use framework "Foundation"
> use framework "AppKit"
> use scripting additions
>
> set upTime to current application's NSProcessInfo's processInfo()'s
> systemUptime()
Thanks, Shane. Is there a way to get that to return an integer only,
instead of something like 2.588932109455E+4, without resorting to awk?
_______________________________________________
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