BBEdit 5 & selection-object
BBEdit 5 & selection-object
- Subject: BBEdit 5 & selection-object
- From: "Daniel Komrska jr." <email@hidden>
- Date: Thu, 22 Feb 2001 19:22:31 +0100
Hallo,
I wrote this:
set x to line of selection-object
After compile I get this:
set x to (line of selection) - object
What is wrong?
Iam using BBEdit 5.0 and Script Debugger 1.0.4.
Thank you
Daniel Komrska jr.
Here is part from BBEdit dictionary:
-------
Class selection-object : the selected text
Elements:
character by numeric index, before/after another element, as a
range of elements
line by numeric index, before/after another element, as a range of
elements
paragraph by numeric index, before/after another element, as a
range of elements
text as a range of elements
word by numeric index, before/after another element, as a range of
elements
Properties:
contents type class [r/o] -- the contents of the selection
length integer [r/o] -- length of text object (in characters)
offset integer [r/o] -- offset of a text object from the
beginning of the document (first char has offset 1)
startLine integer [r/o]
endLine integer [r/o]
startColumn integer [r/o]
endColumn integer [r/o]
--------