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: Jeremy Roussak via AppleScript-Users <email@hidden>
- Date: Sun, 23 Aug 2020 17:40:54 +0100
Well, that’s an ingenious solution; but am I the only one to find it a little
weird that we are using a language in which explicitly dividing a number by 1
is a worthwhile exercise?
Jeremy
> On 23 Aug 2020, at 00:15, Shane Stanley via AppleScript-Users
> <email@hidden
> <mailto:email@hidden>> wrote:
>
> On 23 Aug 2020, at 7:53 am, email@hidden <mailto: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
>
_______________________________________________
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