• 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: Michelle Steiner <email@hidden>
  • Date: Tue, 18 Aug 2009 07:55:08 -0700


On Aug 18, 2009, at 7:32 AM, Window Pen wrote:

he 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.

You don't need to wrap it in quotes; you need the quotes only when sending a string literal.

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

Pass without use of set statement:
I tried to send without a set statement, but got an undefined error.  

I think what he means is this:

tell application "Merriam-Webster:
activate
MWClearPaste text returned of (display dialog "Look up " default answer "" with title "Webster's")
end tell

-- 
If you always reach your goals, you set the bar too low.  If you never reach your goals, you set the bar too high.

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

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