Re: How to Run a line of code in external program
On Jan 12, 6:31 am, Paul Burney wrote: > Hi Dennis, > > Your Run Shell Command script has been very, very helpful to me. Thank > you so much for posting it! Thanks for the kind words, Paul. You just made my day. :-) -Dennis -- 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+unsubscr...@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 "supp...@barebones.com" rather than posting to the group.
Using grep for organizing emails
Hi, I have a list of emails enclosed within <> signs preceded by a name, usually in two or three word format. I need to extract those emails and place them in a comma-delimited document. Each entry is on a separate line, followed by the carriage return though I'm curious how to perform that extraction without separate lines present. Thanks for your help, Maciek -- 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+unsubscr...@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 "supp...@barebones.com" rather than posting to the group.
Re: Highlighting a string
startLine is a built-in in thing, which you can find in the AppleScript Dictionary for BBEdit. It finds the line where you're currently selected. You probably don't need the startLine and can just use selection on its own. On Jan 15, 1:51 am, jan wrote: > Thanks, It sure helps. > So I need a startingpoint and selection length. But what about > startLine? -- 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+unsubscr...@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 "supp...@barebones.com" rather than posting to the group.
Re: Highlighting a string
Thanks, It sure helps. So I need a startingpoint and selection length. But what about startLine? This is what I tried: set strEnd to find "'" searching in text 1 of text document 1 options {search mode:literal, starting at top:false, wrap around:false, backwards:false, case sensitive:false, match words:false, extend selection:false} with selecting match set strStart to find "'" searching in text 1 of text document 1 options {search mode:literal, starting at top:false, wrap around:false, backwards:true, case sensitive:false, match words:false, extend selection:false} with selecting match -- this works fine -- tell window 1 to select (characters 10 thru 20) -- this selects first quote tell window 1 to select (characters strStart thru strEnd) -- 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+unsubscr...@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 "supp...@barebones.com" rather than posting to the group.
Re: Highlighting a string
On 15/1/10 00:28, "jan" wrote: > So given my cursor position I would like to select the entire string > around it just like the balance command does. It makes it easy to copy > strings to other documents. > > I tried some Applescript stuff with a forward and backward search but > got stuck in the actual selecting within BBEdit. Any -preferable > elegant- ideas? The first AppleScript selects the string between ' and " which the cursor is in. The second script selects the " or ' as well. Note: I barely know AppleScript, so there may well be a better way to do this. I was given significant help on this list when I wanted to set this up. Script 1: tell application "BBEdit" find "(\"|')" searching in text 1 of text document 1 options {search mode:grep, starting at top:false, wrap around:false, backwards:true, case sensitive:false, match words:false, extend selection:false} with selecting match set daString to (grep substitution of "\\1") select insertion point after selection set theStart to characterOffset of selection find daString searching in text 1 of text document 1 options {search mode:grep, starting at top:false, wrap around:false, backwards:false, case sensitive:false, match words:false, extend selection:false} with selecting match select insertion point before selection set theEnd to (characterOffset of selection) - 1 select characters theStart through theEnd of text 1 of text document 1 end tell Script 2 tell application "BBEdit" find "(\"|')" searching in text 1 of text document 1 options {search mode:grep, starting at top:false, wrap around:false, backwards:true, case sensitive:false, match words:false, extend selection:false} with selecting match set daString to (grep substitution of "\\1") select insertion point after selection set theStart to characterOffset of selection set theStart to theStart - 1 find daString searching in text 1 of text document 1 options {search mode:grep, starting at top:false, wrap around:false, backwards:false, case sensitive:false, match words:false, extend selection:false} with selecting match select insertion point before selection set theEnd to (characterOffset of selection) select characters theStart through theEnd of text 1 of text document 1 end tell HTH Roddie Grant -- 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+unsubscr...@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 "supp...@barebones.com" rather than posting to the group.