Re: Select part of frontmost document

2011-12-30 Thread John Delacour
At 18:05 + 24/12/11, Phil Dobbin wrote: ...I've got a file I'm wondering is there a way to select all the text between line 1 line 1217 so it can be copied to the Clipboard... Here's a case where AppleScript probably provides the best answer -- for one thing you can choose what to

Re: Select part of frontmost document

2011-12-27 Thread Ronald J Kimball
On Sat, Dec 24, 2011 at 08:17:54PM +, Phil Dobbin wrote: On 24/12/11 19:57, Bruce Van Allen b...@cruzio.com wrote: Here's a find pattern that selects the first N lines in BBEdit: \A([^\r]*\r){N} So you would use: \A([^\r]*\r){1217} At minimum you could save this search

Re: Select part of frontmost document

2011-12-27 Thread Phil Dobbin
On 27/12/11 16:18, Ronald J Kimball r...@tamias.net wrote: If you change it to: \A(?:[^\r]*\r){1217} it might avoid running out of stack space. Thank you, Ronald. Appreciated. Cheers, Phil... -- Nothing to see here... move along, move along -- You received this message because

Re: Select part of frontmost document

2011-12-26 Thread Gribnif
On Dec 25, 1:11 pm, LuKreme krem...@kreme.com wrote: Put the cursor on line one. Jump to Line 1247 (Command-J) Shift-Click Regrettably, this does not work. Jump to Line moves the cursor, so Shift-Click has no point of reference. That's why you have to use the scroll bar, as I suggested

Re: Select part of frontmost document

2011-12-25 Thread LuKreme
On 24 Dec 2011, at 11:05 , Phil Dobbin wrote: I've got a file I'm wondering is there a way to select all the text between line 1 line 1217 so it can be copied to the Clipboard rather than dragging the cursor across it (I do this quite often on several files that are shared across the LAN

Select part of frontmost document

2011-12-24 Thread Phil Dobbin
Hi, all season's greetings :-) I've got a file I'm wondering is there a way to select all the text between line 1 line 1217 so it can be copied to the Clipboard rather than dragging the cursor across it (I do this quite often on several files that are shared across the LAN but not often enough

Re: Select part of frontmost document

2011-12-24 Thread Bruce Van Allen
On 2011-12-24, Phil Dobbin wrote: Hi, all season's greetings :-) I've got a file I'm wondering is there a way to select all the text between line 1 line 1217 so it can be copied to the Clipboard rather than dragging the cursor across it (I do this quite often on several files that are

Re: Select part of frontmost document

2011-12-24 Thread Phil Dobbin
On 24/12/11 19:57, Bruce Van Allen b...@cruzio.com wrote: Here's a find pattern that selects the first N lines in BBEdit: \A([^\r]*\r){N} So you would use: \A([^\r]*\r){1217} At minimum you could save this search pattern in BBEdit's find window. You could also script it, perhaps

Re: Select part of frontmost document

2011-12-24 Thread Christopher Stone
On Dec 24, 2011, at 12:05, Phil Dobbin wrote: I've got a file I'm wondering is there a way to select all the text between line 1 line 1217 so it can be copied to the Clipboard rather than dragging the cursor across it (I do this quite often on several files that are shared across the LAN

Re: Select part of frontmost document

2011-12-24 Thread Phil Dobbin
On 24/12/11 20:46, Christopher Stone listmeis...@thestoneforge.com wrote: This one is quite easy as you'll see. [snip scripts] Hi, Chris. Thanks for that. That'll work. Is there also any way to cut the text rather than copying it to the Clipboard (Applescript is not my strong suit even after

Re: Select part of frontmost document

2011-12-24 Thread Christopher Stone
On Dec 24, 2011, at 14:57, Phil Dobbin wrote: Is there also any way to cut the text rather than copying it to the Clipboard __ Hey Phil, In my other two script that first 'tell' would be better as: tell text of front text

Re: Select part of frontmost document

2011-12-24 Thread Phil Dobbin
On 24/12/11 21:13, Christopher Stone listmeis...@thestoneforge.com wrote: [...] As to your question - you want to cut to the clipboard - yes? Not just delete the lines. So if I understand correctly - this should be in the ballpark: [snip script] That's spot on. Thanks very much, Chris.

Re: Select part of frontmost document

2011-12-24 Thread Gribnif
Another way to do this: 1. Open the document. Put the cursor at the start. 2. Use the scroll bar to go down to line 1217. 3. Hold the Shift key on the keyboard while clicking to the left of line 1218. The whole region is now selected. -- You received this message because you are subscribed to

Re: Select part of frontmost document

2011-12-24 Thread Phil Dobbin
On 24/12/11 20:38, Gribnif goo...@dwilga.gotdns.org wrote: Another way to do this: 1. Open the document. Put the cursor at the start. 2. Use the scroll bar to go down to line 1217. 3. Hold the Shift key on the keyboard while clicking to the left of line 1218. The whole region is now

Re: Select part of frontmost document

2011-12-24 Thread Christopher Stone
On Dec 24, 2011, at 14:38, Gribnif wrote: Another way to do this: __ Another way is: Type Cmd-J Type 1218 Return Type Cmd-L Type Cmd-Shft-Up-Arrow Type Cmd-X On the whole I prefer the scripted method. :) However, if you

Re: Select part of frontmost document

2011-12-24 Thread Robert A. Rosenberg
At 18:05 + on 12/24/2011, Phil Dobbin wrote about Select part of frontmost document: Hi, all season's greetings g I've got a file I'm wondering is there a way to select all the text between line 1 line 1217 so it can be copied to the Clipboard rather than dragging the cursor across