• 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: Unable to send user input string to Webster Dictionary Application using variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to send user input string to Webster Dictionary Application using variable


  • Subject: Re: Unable to send user input string to Webster Dictionary Application using variable
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 19 Aug 2009 09:18:01 +1000
  • Thread-topic: Unable to send user input string to Webster Dictionary Application using variable

On 18/8/09 10:47 PM, "Window Pen" <email@hidden> wrote:

> Websters receives the look up word only if directly quoted in the script. I
> want to send the lookup word by variable containing the user input. 

Your problem is that the app is expecting MacRoman text, but display dialog
these days returns Unicode text. You can use a hack something like this:

set answer to «class ktxt» of (answer as record)

which will work as long as your text is restricted to ASCII characters, and
you never upgrade to OS X 10.5.

--
Shane Stanley <email@hidden>
AppleScript Pro Sessions <http://scriptingmatters.com/aspro>


 _______________________________________________
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: 
 >Unable to send user input string to Webster Dictionary Application using variable (From: Window Pen <email@hidden>)

  • Prev by Date: Re: Find/replace
  • Next by Date: Re: Value of insertion point in Quark 8
  • Previous by thread: Re: Unable to send user input string to Webster Dictionary Application using variable
  • Next by thread: Re: Unable to send user input string to Webster Dictionary Application using variable
  • Index(es):
    • Date
    • Thread