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

Re: Script Editor 'get selection'


  • Subject: Re: Script Editor 'get selection'
  • From: Paul Skinner <email@hidden>
  • Date: Wed, 5 Mar 2003 17:29:07 -0500

On Wednesday, March 5, 2003, at 04:51 PM, John Delacour wrote:

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

Strange. I get very different results here when I run this.

tell application "Script Editor"
try
get selection in window 2
on error e
e
-->Script Editor got an error: An error of type 10 has occurred.
end try
get selection of document 2
--> Script Editor got an error: An error of type 1 has occurred.
get selection in document 2
--> Script Editor got an error: An error of type 1 has occurred.
get selection of window 2
-->Script Editor got an error: An error of type 10 has occurred.
end tell


Paul Skinner
10.2.4 / 1.9.1 / SE 2.0 (v20) beta
_______________________________________________
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.

References: 
 >Script Editor 'get selection' (From: John Delacour <email@hidden>)

  • Prev by Date: Re: Script Editor 'get selection'
  • Next by Date: List coersion troubles
  • Previous by thread: Re: Script Editor 'get selection'
  • Next by thread: Re: Script Editor 'get selection'
  • Index(es):
    • Date
    • Thread