Re: Applescript to change line breaks ?

2018-08-13 Thread Christopher Stone
On 08/13/2018, at 12:55, Bernardo mailto:issarf...@gmail.com>> wrote: > OK, I reply to myself. It works with: Hey Bernardo, This works with BBEdit 12.1: tell application "BBEdit" set line breaks of every text document to DOS end tell -- Best Regards, Chris -- This is the BBEdit Talk

Re: AppleScript to set the current file to: language = 'Unix Shell Script' ?

2018-08-13 Thread Christopher Stone
On 08/13/2018, at 10:39, TJ Luoma mailto:luo...@gmail.com>> wrote: > 1. How can I tell BBEdit “If you open a file with no file extension, assume > it is a 'Unix Shell Script' file? > > 2. Is there a way (presumably via AppleScript?) to tell BBEdit “Hey, this > document that you are currently

Re: Applescript to change line breaks ?

2018-08-13 Thread Bernardo
I fogot to say that is for BBEdit 9.6.3 -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email "supp...@barebones.com" rather than posting to the group. Follow @bbedit on Twitter: --- You

Re: Applescript to change line breaks ?

2018-08-13 Thread Bernardo
OK, I reply to myself. It works with: set docList to every text document > repeat with doc in docList > tell doc to set line breaks to DOS > -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please

Re: Grep for everything between two tags?

2018-08-13 Thread Patrick Woolsey
On 8/13/18 at 11:27 AM, jerry.nil...@gmail.com (Jerry Nilson) wrote: Cannot figure out (new to this) how to write a grep search to match: Where I want to substitute all similar lines with: Thought I could write: .* or possibly with a ? after, but seems I may need more escape characters

Re: Grep for everything between two tags?

2018-08-13 Thread Jerry Nilson
You are right!  I bloody well tried exactly that too, but maybe I had not selected the whole row when applying to "selected text" only (as I did not see the full row on my computer ...). Now it of course worked right away! Tried to fix a kmz file exported from a Google map, that mishandles the

Re: AppleScript to set the current file to: language = 'Unix Shell Script' ?

2018-08-13 Thread Patrick Woolsey
On 8/13/18 at 11:39 AM, luo...@gmail.com (TJ Luoma) wrote: 1. How can I tell BBEdit “If you open a file with no file extension, assume it is a 'Unix Shell Script' file? BBEdit should ordinarily detect that based on the file's shebang line (at least for well-known shells). 2. Is there a

Re: Grep for everything between two tags?

2018-08-13 Thread Sam Hathaway
`.*?` worked for me with your sample line. -sam On 13 Aug 2018, at 11:27, Jerry Nilson wrote: Hi, Cannot figure out (new to this) how to write a grep search to match: Where I want to substitute all similar lines with: Thought I could write: .* or possibly with a ?

Applescript to change line breaks ?

2018-08-13 Thread Bernardo
Hello, I'm trying to create an Applescript to change open documents line breaks to DOS (CRLF), so I wrote: on processOpenDocs() > repeat with thisDoc in documents > tell thisDoc to set line breaks to DOS > end repeat > end processOpenDocs > But it throws an error telling "Unix"

AppleScript to set the current file to: language = 'Unix Shell Script' ?

2018-08-13 Thread TJ Luoma
Hello Friends Two questions: 1. How can I tell BBEdit “If you open a file with no file extension, assume it is a 'Unix Shell Script' file? 2. Is there a way (presumably via AppleScript?) to tell BBEdit “Hey, this document that you are currently showing, set its language to 'Unix Shell Script'"?

Grep for everything between two tags?

2018-08-13 Thread Jerry Nilson
Hi, Cannot figure out (new to this) how to write a grep search to match: Where I want to substitute all similar lines with: Thought I could write: .* or possibly with a ? after, but seems I may need more escape characters here because some of the characters to be