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: Mon, 24 Aug 2020 17:35:34 +1000
On 24 Aug 2020, at 3:05 am, Jeremy Roussak via AppleScript-Users
<email@hidden> wrote:
>
> The “as integer” looks better, to my eye
And most times it's a better choice for that reason. But AppleScript has a
relatively modest range for integers, after which it silently switches to reals
anyway. As a result, you can get oddities like this:
set x to 2 ^ 32
x div 1 --> 4.294967296E+9
x as integer --> Script Error: Can’t make 4.294967296E+9 into type integer
I doubt that your system has been running that long, but it's something to keep
in mind.
--
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