• 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: Double Tell - Tell by Variable Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Double Tell - Tell by Variable Question


  • Subject: Re: Double Tell - Tell by Variable Question
  • From: Shane Stanley <email@hidden>
  • Date: Fri, 26 Jun 2015 09:12:00 +1000

On 26 Jun 2015, at 12:54 am, Dave <email@hidden> wrote:
>
>   on square_(aNumber)
> 	   return aNumber ^ 2
>   end square_

You'll also need:

  on square_(aNumber)
	   return (aNumber as real) ^ 2
  end square_

Pointers aren't converted to AppleScript classes automatically; you need to use *as* to convert them.

--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>


 _______________________________________________
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


References: 
 >Double Tell - Tell by Variable Question (From: Dave <email@hidden>)
 >Re: Double Tell - Tell by Variable Question (From: Shane Stanley <email@hidden>)
 >Re: Double Tell - Tell by Variable Question (From: Dave <email@hidden>)

  • Prev by Date: Re: Double Tell - Tell by Variable Question
  • Next by Date: Re: Hide ribbon in Word
  • Previous by thread: Re: Double Tell - Tell by Variable Question
  • Next by thread: Re: Double Tell - Tell by Variable Question
  • Index(es):
    • Date
    • Thread