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: Window Pen <email@hidden>
- Date: Tue, 18 Aug 2009 21:32:22 +0700
Thanks Geoff for taking a look at this.
Direct Quote:
The command in Webster MWClearPaste works with the script if I set answer to "rabbit", but not via the variable.
Pass By Variable:
If I'm sending "\"rabbit\"", how can I set change text received from user to wrap the word in quotes, then pass to Webster?
When I set up a check, I got "rabbit" from display dialog by the variable answer, but this "\"rabbit\"" would explain what that didn't work.
Pass without use of set statement:
I tried to send without a set statement, but got an undefined error.
--
display dialog "Look up " default answer "" with title "Webster's"
set dialogInfo to result
set answer to text returned of dialogInfo
tell application "Merriam-Webster"
activate
--set answer to (quote & answer & quote) as string -- sends var in quotes but does not place input in application
--set answer to "rabbit" as string --works for "rabbit" but not for "answer" incorporating user input
MWClearPaste answer
end tell
_______________________________________________
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