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: Ed Stockly <email@hidden>
- Date: Wed, 19 Aug 2009 09:24:44 -0700 (PDT)
How very odd.
I tried downloading the application, but the version I pulled from the MW website has no applescript dictionary at all. The app looks like a pretty sloppy windows port, with windows style buttons.
This project may not have much of a future. If you upgrade the app or the system, you're finished. Plus, the poor applescript implementation makes this app one of the worst possible choices for an appleScript newbie to learn on.
Still...
>>using Shane's:
>>set answer to «class ktxt» of (answer as record)
>>If I set answer to dialogInfo the AppleScript Error at runtime is "Can't make "rabbit" into type record
Try this....
---------------
display dialog "Look up " default answer "" with title
"Webster's"
set dialogInfo to text returned of the result
set answer to dialogInfo
log class of answer
set answer to «class ktxt» of (answer as record)
log class of answer
tell application "Merriam-Webster"
activate
MWClearPaste answer
end tell
--------------------
This moves the coercion of the variable out of the application tell so applescript can handle it cleanly.
HTH,
ES
_______________________________________________
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