Jeeze. It's been a long time since I seriously scripted BBEdit. In this case I want to prefix every line in the front document.
This works fine:
tell application "BBEdit" tell front text document set before first word of line 3 to "•" end tell end tell
This doesn't:
tell application "BBEdit" set before first word of every line of front text document to "•" end tell
This does the job perfectly:
tell application "BBEdit" tell front text document add prefix ( lines 1 thru -1 ) prefix "•" end tell end tell
And you can loop through or do a find/replace of course. All this discovered, and I still feel like I'm missing something. Any more useful magic?
Thanks.
-- Chris
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email "support@barebones.com" rather than posting to the group. -~----------~----~----~----~------~----~------~--~-
Oct 30
Semper Fidelis Re: Scripting Line Prefix
Oct 30, 2009; 08:12
Semper Fidelis
Re: Scripting Line Prefix
Oct 30
Jan Pieter Kunst Re: Scripting Line Prefix
Oct 30, 2009; 08:22
Jan Pieter Kunst
Re: Scripting Line Prefix
Oct 30
Semper Fidelis Re: Scripting Line Prefix
Oct 30, 2009; 09:34
Semper Fidelis
Re: Scripting Line Prefix
Oct 30
Christopher Stone Re: Scripting Line Prefix
Oct 30, 2009; 13:42
Christopher Stone
Re: Scripting Line Prefix
Oct 30
Semper Fidelis Re: Scripting Line Prefix
Oct 30, 2009; 14:39
Semper Fidelis
Re: Scripting Line Prefix
Oct 30
Ronald J Kimball Re: Scripting Line Prefix
Oct 30, 2009; 14:41
Ronald J Kimball
Re: Scripting Line Prefix
Oct 30
Doug McNutt Re: Scripting Line Prefix
Oct 30, 2009; 14:56
Doug McNutt
Re: Scripting Line Prefix
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!