Newbies elguapo Posted December 14, 2009 Newbies Posted December 14, 2009 How do I SPEED UP the changing of text color and other characteristics? In a page of text, I want to change the color, then make BOLD, every 2nd, sometimes 3rd, line of text... without messing with the ones in between. This means I have to triple-click the line of text, then turn change the color, then turn it bold. Doing this to 12 or so lines on a page makes it take a minute or two. I'd rather simply position the cursor, then call up a script (e.g., Cmd-4), but I can't see how to do this in a script, though I've looked and looked. Any clues for this non-programmer? Many thanks in advance...
comment Posted December 14, 2009 Posted December 14, 2009 Try something like: Set Selection [ Start Position: Position ( Get ( ActiveFieldContents ) ; ¶ ; Get ( ActiveSelectionStart ) ; - 1 ) + 1; End Position: Position ( Get ( ActiveFieldContents ) & ¶ ; ¶ ; Get ( ActiveSelectionStart ) ; 1 ) ] # Insert Calculated Result [ TextColor ( TextStyleAdd ( Middle ( Get ( ActiveFieldContents ) ; Get ( ActiveSelectionStart ) ; Get ( ActiveSelectionSize ) ) ; Bold ) ; RGB ( 220 ; 0 ; 0 ) ) ]
Recommended Posts
This topic is 5458 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now