.firstLineHeadIndent
Posted: 2009-04-02 04:01:24
I am trying to write a macro that will cause the paragraph to indent 1/2 inch at the location of the cursor. I have written the following code and I am getting the message:
"You cannot change the "firstLineHeadIndent" property of the Attributes object."
$doc = Document.active
$selection = $doc.textSelection
$text = $doc.text
$index = $text.length -1
$attributes = $text.attributesAtIndex $index
$points = $attributes.firstLineHeadIndent
$points += 36
$attributes.firstLineHeadIndent = $points
Can someone tell me what I am doing wrong?
"You cannot change the "firstLineHeadIndent" property of the Attributes object."
$doc = Document.active
$selection = $doc.textSelection
$text = $doc.text
$index = $text.length -1
$attributes = $text.attributesAtIndex $index
$points = $attributes.firstLineHeadIndent
$points += 36
$attributes.firstLineHeadIndent = $points
Can someone tell me what I am doing wrong?