• 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
Script Editor 'get selection'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Script Editor 'get selection'


  • Subject: Script Editor 'get selection'
  • From: John Delacour <email@hidden>
  • Date: Wed, 5 Mar 2003 21:51:54 +0000
  • Mac-eudora-version: 6.0a9

Here are some more constructive comparisons



Latest Script Editor:


tell application "Script Editor"
try
get selection in window 2
on error e
e
--> "NSCannotCreateScriptCommandError"
end try
get selection of document 2
--> characters 11 thru 16 of document 2
get selection in document 2
--> characters 11 thru 16 of document 2
get selection of window 2
end tell

(Apple's other editor, WorldText, has a very reduced dictionary in the Classic version and just aone line in the OS X version.


Other applications:


tell application "Eudora"
get selected text in window 1
end tell
--> some text

tell application "BBEdit 6.5"
get selection in window 1
--> characters 1 thru 9 of text window 1...
selection as string
--> "some text"
end tell

tell application "Scriptable Text Editor"
get selection in window 1
--> contents of document 1 of ...
selection as string
--> "some text"
end tell

tell application "Tex-Edit Plus"
get selection in window 1
--> "some text"
end tell
_______________________________________________
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.

  • Follow-Ups:
    • Re: Script Editor 'get selection'
      • From: Paul Skinner <email@hidden>
    • Re: Script Editor 'get selection'
      • From: Paul Skinner <email@hidden>
  • Prev by Date: AppleScript Paste Image Into Eudora EMail?
  • Next by Date: checkboxes
  • Previous by thread: Re: AppleScript Paste Image Into Eudora EMail?
  • Next by thread: Re: Script Editor 'get selection'
  • Index(es):
    • Date
    • Thread