|
|
number lines of selected text?
|
|
|
|
Forum Regular
Join Date: Apr 2000
Location: Germany
Status:
Offline
|
|
is there an OS X feature or a .service plugin or any other way that would let me number the lines of the selection within a text? i don't think the terminal could be useful here, because it is only some lines i want to have numbers, not the whole text. oh yeah: this is supposed to work with ye olde 10.1.5
actually i'm not sure to which board this would fit best. could also be a unix question, or at "Mac OS X"!?
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: Feb 2001
Status:
Offline
|
|
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Apr 2000
Location: Germany
Status:
Offline
|
|
flysky, i do have word.service installed already. but there is no option to number lines, only sort them. are you sure you have that option? if so, in which menu, "format" or "convert"?
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: Feb 2001
Status:
Offline
|
|
Originally posted by Stefan:
flysky, i do have word.service installed already. but there is no option to number lines, only sort them. are you sure you have that option? if so, in which menu, "format" or "convert"?
I'm not at my OS X box right now, so I'll have to check when I get home, but isn't it part of the statistics (where ever that's located--haven't used it for a while)?
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: Feb 2001
Status:
Offline
|
|
Highlight text --> Services --> Statistics (Shift-Command-i)
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Apr 2000
Location: Germany
Status:
Offline
|
|
Originally posted by flysky:
Highlight text --> Services --> Statistics (Shift-Command-i)
sorry, that was a misunderstanding: you are right. the "statistic" option does count lines. thing is: i don't want the lines counted, i want them with numbers in front. i.e. i want:
line one text bla
line two text bla
to become:
1 line one text bla
2 line two text bla
|
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Jan 2002
Location: Melbourne, Australia
Status:
Offline
|
|
Originally posted by Stefan:
sorry, that was a misunderstanding: you are right. the "statistic" option does count lines. thing is: i don't want the lines counted, i want them with numbers in front. i.e. i want:
line one text bla
line two text bla
to become:
1 line one text bla
2 line two text bla
Try this , I just wrote it up. It is a service that numbers lines of text. I must stress that I just wrote it up in the last hour or so more as a learning exercise than anything else. I have done very limited testing using it on Text Edit files. If it manages to destroy one of your documents or causes a kernel panic, don't whinge to me ok.
Copy the NumberLines.service file in the disk image to ~/Library/Services. Note: you may have to create this folder. Log out and log back in again and there should be a 'Number Lines' menu item in the Services menu when some text is selected. Hope it does what you want.
Wesley
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Apr 2000
Location: Germany
Status:
Offline
|
|
spot on, wesley! this works perfectly. you'd absolutely make my day if there was an option to only number every fifth or tenth line, since i need this for numbering verses of poems. it would be absolutely perfect if empty lines could be excluded from being numbered. would this be hard to achieve? if it involves much work for you, don't bother. what you did already saved me hours of work.
thanks again
stefan
<edit>the only little problem i've encountered so far, is that your service shows up in the dock as a running program</edit>
(
Last edited by Stefan; Nov 9, 2002 at 12:25 PM.
)
|
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Jan 2002
Location: Melbourne, Australia
Status:
Offline
|
|
Originally posted by Stefan:
spot on, wesley! this works perfectly. you'd absolutely make my day if there was an option to only number every fifth or tenth line, since i need this for numbering verses of poems. it would be absolutely perfect if empty lines could be excluded from being numbered. would this be hard to achieve? if it involves much work for you, don't bother. what you did already saved me hours of work.
thanks again
stefan
<edit>the only little problem i've encountered so far, is that your service shows up in the dock as a running program</edit>
Thanks for the feedback. If I'm looking for something to do one night I might look into the options you suggested. As for it coming up as an runinng program I'm not sure if there is any way around this, I am new to it though. To my knowledge all Services launch the application that provides them but if you know different let me know.
Wesley
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|