Re: Unable to send user input string to Webster Dictionary Application using variable
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