• 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: Better Open Dictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Better Open Dictionary


  • Subject: Re: Better Open Dictionary
  • From: John Delacour <email@hidden>
  • Date: Wed, 5 Mar 2003 21:00:35 +0000
  • Mac-eudora-version: 6.0a9

At 10:50 am -0500 5/3/03, Steve Roy wrote:

tell application "Script Editor"
set theSelectedText to contents of selection of front document

Interesting.

I had a notion Script Editor 2 might be a cocoa application and as we've been told cocoa doesn't do selection -- that's why TextEdit and Mail can't do it.

However this is the first application I've ever seen that can do selection but not do 'selection as string', which is the most

tell application "Scriptable Text Editor"
selection as string
end tell

tell application "Script Editor"
try
selection as string
on error e
e
end try
end tell
--> "NSReceiverEvaluationScriptError: 5"
--> Extremely helpful error message !!

Well at least we now have another app to start filing hundreds of bugs for.

Any comment from Chris Nebel?

Sigh

JD
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: [ANN] Philadelphia Area AppleScript User's Group Meeting
  • Next by Date: AppleScript Paste Image Into Eudora EMail?
  • Previous by thread: [ANN] Philadelphia Area AppleScript User's Group Meeting
  • Next by thread: Re: Better Open Dictionary
  • Index(es):
    • Date
    • Thread