• 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: Ed Stockly <email@hidden>
  • Date: Tue, 18 Aug 2009 12:54:38 -0700 (PDT)

Try this:
tell application "Merriam-Webster"
  activate
  MWClearPaste answer as string
end
tell


AppleScript uses unicode for all text, but some applications may not be ready to handle Unicode. If you coerce the text to a string inside the application tell, it might work.

I don't think the variable 'answer' is an application key word, based on the syntax coloring of your script.

>>>I think the literal works (example: "rabbit") because it bypasses the OK prompt. 

>>>>Could the OK button add an additional property to the text? 

{text returned:"rabbit", button returned: "OK"}


No it doesn't work that way. The value and class of the text returned has nothing to do with the button.


>>>Is there a way to see with certainty what exactly the variable "x" contains besides a display dialogue?


Yes, open the Log window in Script Editor and place the following commands in your script after the dialog:


log answer

log class of answer

log class of "rabbit

and inside the application tell


log class of "rabbit

set answer to answer as string

log class of answer

log answer



>>>The MWClearPaste is the only command in the entire Webster's applescript dictionary.


No surprise, you could tell by the syntax of the command that the applescript implementation would be lame.


Ironic, a Dictionary application has a lame appleScript dictionary.


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

References: 
 >Re: Unable to send user input string to Webster Dictionary Application using variable (From: Window Pen <email@hidden>)

  • Prev by Date: RE: Indesign CS4 question
  • Next by Date: Find/replace
  • 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