• 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: Steven Angier <email@hidden>
  • Date: Mon, 15 Jul 2002 09:51:28 +1000

On 15/7/02 9:32 AM, "Robert Stretch" <email@hidden> wrote:

> So my question is, after all
> that, how do I make it so that AppleScript recognizes the equation for
> what it is supposed to be, an unquoted equation, and calculate it?

You have to use run script:


set theText to text returned of (display dialog "Please enter a calculation"
default answer "" with icon 1)

set theResult to run script theText
return theResult


Steven Angier
Macscript.com
_______________________________________________
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: 
 >Unquoting a string (From: Robert Stretch <email@hidden>)

  • Prev by Date: Re: Moving Icons Was: Writing to a file
  • Next by Date: Re: Unquoting a string
  • Previous by thread: Unquoting a string
  • Next by thread: Re: Unquoting a string
  • Index(es):
    • Date
    • Thread