• 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: 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

References: 
 >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: Launchd Problems
  • Previous by thread: Re: Unable to send user input string to Webster Dictionary Application using variable
  • Next by thread: Find/replace
  • Index(es):
    • Date
    • Thread