Re: How can I simplify the math in this script?
Re: How can I simplify the math in this script?
- Subject: Re: How can I simplify the math in this script?
- From: "Mark J. Reed" <email@hidden>
- Date: Mon, 16 Jun 2008 20:43:37 -0400
On Mon, Jun 16, 2008 at 8:34 PM, Michelle Steiner
<email@hidden> wrote:
> On Jun 16, 2008, at 5:25 PM, Mark J. Reed wrote:
>
>> set unitCount to floor (timeLeft / unitSize)
>
> floor compiles as a variable or handler name.
Gah, must be an OSAX. OK, try
set unitCount to timeLeft div unitSize
and then replace the "(text 1 through -3 of unitCount as string)" with
just "unitCount", since it's then an int.
--
Mark J. Reed <email@hidden>
_______________________________________________
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