• 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: Unquoting a string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unquoting a string


  • Subject: Re: Unquoting a string
  • From: Emmanuel <email@hidden>
  • Date: Tue, 16 Jul 2002 18:46:42 +0200

At 7:12 AM +0200 15/7/02, Robert Stretch wrote:
>
>Thanks for all your help, the run script line worked perfectly and i'll
>remember it for future projects. For this project however, I decided
>that AppleScript has such limited maths capabilities that I would use C
>and the 'bc' inbuilt unix program. I still use AppleScript to gather
>all the information, and change 'plus' to '+' etc, but the actual
>calculation is done in C and sent back to the AppleScript. If anybody
>would like a look at the code, just tell me and i'll post it. Thanks
>again! :,)

If speed is a concern, and if the computation involves variables, and if
you use OS X, you may want to consider the new "evalformula" Smile's
feature:

---------------------- untested
evalformula "sqrt(x*x+y*y)" with {x:3,y:4}
----------------------
--> 5.0

Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Unquoting a string (From: Robert Stretch <email@hidden>)

  • Prev by Date: Re: Postscript from Quark
  • Next by Date: Re: applescript-users digest, Vol 3 #618 - 11 msgs
  • Previous by thread: Re: Unquoting a string
  • Next by thread: Re: Unquoting a string
  • Index(es):
    • Date
    • Thread