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: Geoff Graham <email@hidden>
- Date: Tue, 18 Aug 2009 11:47:09 -0400
Perhaps "answer" is a keyword in the Webster app. My favorite variable
name is "x"; you don't see that used too often. Otherwise it's a bit
puzzling. You shouldn't have to, but you could try casting it as a
string. I only say that because you got it to work with a literal:
set answer to (text returned of (display dialog "Look up " default
answer "" with title "Webster's") as string)
geoff
On Aug 18, 2009, at 11:26 AM, Window Pen wrote:
Both Script 1 and 2 compile, but Script 1 like my original script
accepts the user input before Webster application is called to open
and I like that.
The problem remains that it doesn't work. No string is passed into
Wesbster's. The text box remains blank. (Unless we go back to
"rabbit" and that defeats the whole purpose.)
I've enclosed the description of the Webster's command.
The MWClearPaste is defined as:
MWClearPaste v : Clears and sets the supplied string in the entry
field for lookup in current reference.
MWClearPaste string : String to lookup.
Script 1
set answer to text returned of (display dialog "Look up " default
answer "" with title "Webster's")
tell application "Merriam-Webster"
activate
MWClearPaste answer
end tell
Script 2
tell application "Merriam-Webster"
activate
MWClearPaste text returned of (display dialog "Look up " default
answer "" with title "Webster's")
end tell
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
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