Re: number
Re: number
- Subject: Re: number
- From: "Nigel Garvey" <email@hidden>
- Date: Thu, 22 Sep 2005 14:51:40 +0100
Bernard Bernu wrote on Wed, 21 Sep 2005 23:25:58 +0200:
>In the following script I got the error message :
>cannot use -1.780654340609 as a number.
>Why ?
>script o
> property x : -1.780654340609
>end script
>-(o's x)
I think your last lines's trying to negate the reference 'o's x' rather
than the number itself.
>but this works :
>
>set x to o's x
>-x
Or:
-(get o's x)
Or:
-(o's x as number)
Or:
(o's x) * -1
Or:
0 - (o's x)
Anything using an operator that forces a resolution the reference.
NG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden