• 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 Debugger 5: Duplicate Selection Handler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script Debugger 5: Duplicate Selection Handler


  • Subject: Re: Script Debugger 5: Duplicate Selection Handler
  • From: Christopher Stone <email@hidden>
  • Date: Tue, 11 Sep 2012 11:43:11 -0500

On Sep 11, 2012, at 10:58, Michelle Steiner <email@hidden> wrote:
Is it paragraph aware?  I don't have SD, so I can't test that.
______________________________________________________________________

Hey Michelle,

Nope.

If memory serves Script Debugger 3 back before Mac OS X had much more robust text scripting, and I think it used the WASTE text engine by Marco Piovanelli.  The transition to Cocoa was difficult and some features were lost.

The current selection-object is sadly limited, but sometimes you can do quite a lot with a limited tool.  ;-)

On the whole SD-5 kicks major butt, but there's still room for growth.

It's nice when 15 minutes of work produce a really useful add-on for software...  It's fantastic when you can make a number of disparate apps work together to do the "impossible" and very Unixy I might add.

It's a terrible shame that Apple treats its namesake scripting language like typhoid Mary and fails to fix long-standing bugs.

I am grateful though that it's still available on the platform.  Without it the Mac is a pretty poor boat anchor at best.

--
Best Regards,
Chris

selection-object

selection-object (noun)A way to refer to a range of text.

description

You won’t work explicitly with any objects whose class is selection-object; you can fetch the selection as text (the default) or as a point (a starting offset and a length). But the properties of the selection-object do apply to the selection, so you can get and set the selection’s contents and character range, and these are equivalent to getting and setting the selection as text and as a point, respectively.

properties

Property
Access
Type
Description
character rangeget/setpointThe position of the selection, expressed as a list: {character offset, length}. Set this to reposition the selection.
contentsget/settextThe selected text. Set this to replace the text with different text.

where used

The selection-object class is used in the following ways:
event source text property of the event log entry class/record
last error range property of the document class/record
selection property of the script window class/record
selection property of the document class/record

 _______________________________________________
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: 
 >Script Debugger 5: Duplicate Selection Handler (From: Christopher Stone <email@hidden>)
 >Re: Script Debugger 5: Duplicate Selection Handler (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Rewrite simple Finder tell statement to "do shell script"
  • Next by Date: Use Spotlight to Archive Files
  • Previous by thread: Re: Script Debugger 5: Duplicate Selection Handler
  • Next by thread: Re: Script Debugger 5: Duplicate Selection Handler
  • Index(es):
    • Date
    • Thread