• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: number
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: number
      • From: kai <email@hidden>
  • Prev by Date: Re: Applescript-users Digest, Vol 2, Issue 621
  • Next by Date: Using terms from syntax
  • Previous by thread: Re: number
  • Next by thread: Re: number
  • Index(es):
    • Date
    • Thread