Re: Modifying encoding to UTF8 no BOM

2024-06-28 Thread David Viard
Hello Patrick,
Thanks for your answer.

I'll try to be more precise.
It seems the tendency is to use UTF8 no BOM (default) and UTF-16 with BOM. 
But *MICROSOFT* *Excel* (on My *Mac*, Saves as UTF8+BOM(default) with 
Windows CRLF (!) .
Context : I have a Shell Script that :

   1. reads a CSV file with Paths to files (in a folder hierarchy of 
   various folders/subfolders), 
   2. Applies optional extension filters,
   3. downloads files to a folder as a flat structure (all on one level),
   4. The Script has also process & error logging,… 
   5. Moves the processed CSV Files with the logs (With client 
   Name/timestamp…)

I did not use AppleScript.
So either my Shell Script misses something or I need to launch BBEDIT just 
for this conversion, prior to the Script execution. 

Do BBEDIT cmd line Tools handle this? I am not sure from my quick read of 
the manual.

Would I need some AppleScript to trigger BBEdit & handle the save Dialog 
options?

Note, on my last test & log, I get a "xargs: unterminated quote" error, and 
no Files processed.

I can share the Script if that helps
Thanks a lot
Le mardi 25 juin 2024 à 17:52:40 UTC+2, Patrick Woolsey a écrit :

> This sounds to me like a job for a *text factory* with the _Change Text 
> Encoding_ action. :-)
>
> For details, please see the section titled "Text Factories" starting on 
> page 155 of the PDF manual (Help -> User Manual) and I reckon that should 
> suffice to get you started.
>
>
> Regards,
>
> Patrick Woolsey
> ==
> Bare Bones Software, Inc. <https://www.barebones.com/>
>
>
>
>
> > On Jun 25, 2024, at 11:25, David Viard  wrote:
> > 
> > Hello BBEdit 
> > 
> > I have an issue with an export from Excel as TXT or CSV.
> > Excel adds a BOM to TXT / CSV files on export which kills my Shell 
> Script.
> > I have to :
> > • 
> > open the file in BBEdit change encoding and CTL to UNIX and Save (with 
> the right encoding) or in OpenOffice and save again…
> > • Rename the File from .csv to .txt 
> > • It's tedious
> > • I have multiple files to do this way
> > • Coworkers might forget this part of the process and generate an error 
> (File not Found)
> > So, I am inquiring of a scripting solution to handle poInts 1 & 2
> > Was thinking of a Shell Script and a BBEdit but not sure how to do it 
> and include this in my Script
> > 
> > Thanks for any input 
> > 
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or believe that the application isn't working correctly, please email 
"supp...@barebones.com" rather than posting here. Follow @bbedit on Mastodon: 
<https://mastodon.social/@bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/7a88-556a-4dbd-919a-9422a21326d2n%40googlegroups.com.


Modifying encoding to UTF8 no BOM

2024-06-25 Thread David Viard
Hello BBEdit 

I have an issue with an export from Excel as TXT or CSV.
Excel adds a BOM to TXT / CSV files on export which kills my Shell Script.
I have to :

   1. open the file in BBEdit change encoding and CTL to UNIX and Save 
   (with the right encoding) or in OpenOffice and save again…
   2. Rename the File from .csv to .txt 
   

   - It's tedious
   - I have multiple files to do this way
   - Coworkers might forget this part of the process and generate an error 
   (File not Found)
   
So, I am inquiring of a scripting solution to handle poInts 1 & 2
Was thinking of a Shell Script and a BBEdit but not sure how to do it and 
include this in my Script

Thanks for any input 

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or believe that the application isn't working correctly, please email 
"supp...@barebones.com" rather than posting here. Follow @bbedit on Mastodon: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/e8779206-dc2d-47fb-92b1-a41f25995806n%40googlegroups.com.


Re: Can't get CharGPT to work on v15

2024-01-14 Thread David Viard
Primed with $$$ ?
What do you mean?

I have that same error

> Le 12 janv. 2024 à 17:05, Steve Hodgson  a écrit :
> 
> Figured it out - API needs to be primed with $$$. Doh!
> 
> Cheers,
> 
> Steve
> 
> On Friday 12 January 2024 at 15:48:42 UTC Steve Hodgson wrote:
>> I have a different problem. I have a ChatGPT Plus account, an API key setup 
>> in BBEdit, figured out the key combination to use but I get the error below:
>> 
>> You exceeded your current quota please check your plan and billing details.
>> 
>> If I switch to gpt-4 the error becomes:
>> 
>> The model `gpt-4` does not exist or you do not have access to it.
>> 
>> Any thoughts?
>> 
>> Cheers,
>> 
>> Steve
>> 
>> On Wednesday 10 January 2024 at 00:27:47 UTC Maxime Audet wrote:
>>> Hey,
>>> 
>>> Just installed v15 and I'm trying ChatGPT feature. However, it doesn't seem 
>>> to work, am I doing something wrong?
>>> 
>>> See attached recording.
>>> 
>>> Thanks!
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: 
> <https://twitter.com/bbedit>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com 
> <mailto:bbedit+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/74b41016-2661-4157-81c9-775f9f7f5526n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/bbedit/74b41016-2661-4157-81c9-775f9f7f5526n%40googlegroups.com?utm_medium=email_source=footer>.


----
David Viard – DVW Design
Directeur artistique, UX/UI Designer, Chef de projet, Consultant Digital
Art Director, UX/UI Designer, Digital Project Manager, Consultant

Mobile : +33 (0)6 68 49 06 04

Site : https://dvw.design
LinkedIn : https://www.linkedin.com/in/david-viard/

*** 

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/36E03C3D-7C6D-45B2-900E-A2530F9D2BCA%40gmail.com.


Re: Digest for bbedit@googlegroups.com - 1 update in 1 topic

2023-12-17 Thread David Weinberger
Just for fun, I asked ChatGPT 3.5  about this.

Here's my prompt to it:

I have an AppleScript project. I have a set of text files. I am going to go
through them and mark the text blocks I want to extract with ";;" as a
delimiter. Each text block will begin with some header text and a date. I
will create a document that is a list of the pathnames of all the files I
want to process; let's call that the "manifest." I will create a blank
document named "All Extracts.txt". I would like the AppleScript to go
through the manifest, extract each delimited text block, and append it to
"All Extracts.txt"

It responded:

-- Set the path to the folder containing your text files
set folderPath to "YourFolderPath"

-- Create or open "All Extracts.txt" for writing
set outputFile to (open for access (folderPath & "All Extracts.txt")
with write permission)

-- List of file paths in the manifest
set manifest to {"/path/to/your/file1.txt", "/path/to/your/file2.txt"}
-- Add your file paths here

-- Process each file in the manifest
repeat with filePath in manifest
-- Open the current file
set inputFile to open for access filePath

-- Read the content of the file
set fileContent to read inputFile as «class utf8»

-- Close the current file
close access inputFile

-- Extract text blocks based on ";;" delimiter
set textBlocks to paragraphs of fileContent
set extractedText to ""
set isBlockActive to false

repeat with lineText in textBlocks
if lineText starts with ";;" then
if isBlockActive then
-- Append the extracted text to "All Extracts.txt"
write extractedText & lineText & linefeed to
outputFile starting at eof
set extractedText to "" -- Reset for the next block
else
set isBlockActive to true
end if
else
if isBlockActive then
set extractedText to extractedText & lineText & linefeed
end if
end if
end repeat
end repeat

-- Close "All Extracts.txt" after processing all files
close access outputFile

This script assumes that each text block is started with ";;" and ends
before the next ";;" delimiter. It extracts the text blocks and appends
them to the "All Extracts.txt" file in the same folder as your text files.

Remember to replace "/path/to/your/file1.txt", "/path/to/your/file2.txt"
with the actual file paths in your manifest. Also, make sure to back up
your data before running any script, especially if it modifies files.

---

I don't use AppleScript so I don't know if this will work, but my
experience with chatGPT so far has been that at least for the sort of
simple Python and JavaScript programming I do as a clunky hobbyist, it's
usually pretty durn good!

Also, I apologize if I've misunderstood your scenario.

Good luck!


On Sat, Dec 16, 2023 at 10:39 PM  wrote:

> bbedit@googlegroups.com
> 
>  Google
> Groups
> 
> 
> Topic digest
> View all topics
> 
>
>- help on notes project <#m_-1846469767624989676_group_thread_0> - 1
>Update
>
> help on notes project
> 
> Andrew McDowell : Dec 16 08:47AM -0800
>
> - notes project description
> - I have a number of notes journals, some up to 100k words, written over
> some 30 years. Multiple topics in each file. My project is to extract and
> compile all meaningful notes from these journals and split them out by
> topic into separate files. Everything will be plain text, at least
> initially (I'll have to sanitize some Word files). My thought is to use
> BBEdit and Apple Scripts to accomplish this, as it's the only thing I've
> found that shows any promise at all. If anyone has a better idea I'm
> listening.
> - I would prep the notes journal files into delimited text blocks as seen
> below. Following that is my pseudo code attempt at a script. I'm a
> beginner
> with Apple Scripts and with BBEdit. I am not a coder but willing to learn
> enough scripting, regex, etc to do this. Help is appreciated. Let me know
> if I can be clearer.
> - If this works I'm sure I'll find other things to automate for this or
> other projects.
> -
> - proposed form for 'prepped source file' (notes journal)
> - misc (unwanted) text
> - filename1 (target file for the following clip)
> - ;; (beginning delimiter)
> - heading, date
> - text body
> - ;; (end delimiter)
> - misc (unwanted) text
> - filename2
> - ;;
> - heading, date
> - text body
> - ;;
> - misc text
> - etc ... to end of file
> -
> - proposed (pseudo code) script
> - find 1st filename
> - index that file to 

Re: Formatting Multiple Choice Questions Using Regex

2023-09-13 Thread David G Wagner
I am not the best at regex, but the thought of how to indicate what was correct 
was really all I was offering.  If no one comes forward with a solution, then 
would give it shot for  you.


Wags ;)

WagsWorld
Hebrews 4:15
Ph(primary) : 408-914-1341
Ph(secondary): 408-761-7391

On Sep 13, 2023 at 15:38 -0700, 'anotherhoward' via BBEdit Talk 
, wrote:
> David,
> That sounds like a viable solution. I'm open to that idea. Do I have to do 
> anything to my submission for it to be done the way you suggested?
> Howard
>
> > On Wednesday, September 13, 2023 at 6:08:55 PM UTC-4 David G Wagner wrote:
> > > That is still a lot of work on your end. Why not use a square bracket or 
> > > } as the correct answer then it should be handled in hopefully one pass 
> > > and no one is doing extra work. Just thought…
> > >
> > > Wags ;)
> > >
> > > WagsWorld
> > > Hebrews 4:15
> > > Ph(primary) : 408-914-1341
> > > Ph(secondary): 408-761-7391
> > >
> > > On Sep 13, 2023 at 11:55 -0700, 'anotherhoward' via BBEdit Talk 
> > > , wrote:
> > > >
> > > > Hi Bruce,
> > > >
> > > > I misunderstood what was being asked and appreciate the time you put 
> > > > into your response. I do have a separate answer file for each of my 
> > > > tests. Further, in the forum, l only underlined the correct answers’ 
> > > > text because I thought that was the information I was being asked for. 
> > > > My school’s LMS will grade the exams for me once I supply it with the 
> > > > correct answers, which is easy for me to do.
> > > >
> > > > To make things easier here, as most of my tests contain no more than 20 
> > > > multiple-choice questions, for now, in the reformat, please just use 
> > > > for all the possible answers for each question (there are four, from
> > > > Choice 1 to Choice 4), the word “Incorrect.” Then, once I have the code 
> > > > that will enable me to reformat a specific test’s questions, it should 
> > > > take me only a few minutes in BBEdit to change the correct answer in 
> > > > each question from “Incorrect” to “Correct.”
> > > >
> > > > Please let me know if you have any questions about what I wrote.
> > > >
> > > > Howard
> > > > > On Wednesday, September 13, 2023 at 1:44:00 PM UTC-4 Bruce Van Allen 
> > > > > wrote:
> > > > > > anotherhoward,
> > > > > >
> > > > > > So you’re saying that the input text will have the correct answers 
> > > > > > for each question underlined?
> > > > > >
> > > > > > This seems challenging:
> > > > > >
> > > > > > * A regular expression will not detect text formatting such as 
> > > > > > underlining - in fact in plain text such as what we work with in 
> > > > > > BBEdit, there IS no underlining. Some word processors allow 
> > > > > > searching by text formatting; whether they’re scriptable I don’t 
> > > > > > know.
> > > > > >
> > > > > > * It’s your work :), but it seems tedious to have to manually 
> > > > > > underline or otherwise mark the correct answers for each of up to 
> > > > > > 99 questions, especially if the only reason to do so is to help 
> > > > > > with this transformation. When I’ve built quizzes, the answers are 
> > > > > > in a separate index file that is programmatically accessible for 
> > > > > > grading quizzes; such a thing would also be useful for the kind of 
> > > > > > script that could transform your input into your desired output.
> > > > > >
> > > > > > # Answers_Quiz_016.txt
> > > > > > Q A
> > > > > > 1 a
> > > > > > 2 c
> > > > > > 3 a
> > > > > > 4 d
> > > > > > 5 c
> > > > > > ...
> > > > > >
> > > > > >
> > > > > > * I suppose this is also a matter of what control you have over the 
> > > > > > input - the set of questions and the knowledge/designation of the 
> > > > > > correct answers. Also, how frequently you have to do this.
> > > > > >
> > > > > > More description?
> > > > > >
> > > > > > — Bruce
> > > > > >
> > > 

Re: Formatting Multiple Choice Questions Using Regex

2023-09-13 Thread David G Wagner
That is still a lot of work on your end. Why not use a square bracket or } as 
the correct answer then it should be handled in hopefully one pass and no one 
is doing extra work. Just thought…

Wags ;)

WagsWorld
Hebrews 4:15
Ph(primary) : 408-914-1341
Ph(secondary): 408-761-7391

On Sep 13, 2023 at 11:55 -0700, 'anotherhoward' via BBEdit Talk 
, wrote:
>
> Hi Bruce,
>
> I misunderstood what was being asked and appreciate the time you put into 
> your response. I do have a separate answer file for each of my tests. 
> Further, in the forum, l only underlined the correct answers’ text because I 
> thought that was the information I was being asked for. My school’s LMS will 
> grade the exams for me once I supply it with the correct answers, which is 
> easy for me to do.
>
> To make things easier here, as most of my tests contain no more than 20 
> multiple-choice questions, for now, in the reformat, please just use for all 
> the possible answers for each question (there are four, from
> Choice 1 to Choice 4), the word “Incorrect.” Then, once I have the code that 
> will enable me to reformat a specific test’s questions, it should take me 
> only a few minutes in BBEdit to change the correct answer in each question 
> from “Incorrect” to “Correct.”
>
> Please let me know if you have any questions about what I wrote.
>
> Howard
> > On Wednesday, September 13, 2023 at 1:44:00 PM UTC-4 Bruce Van Allen wrote:
> > > anotherhoward,
> > >
> > > So you’re saying that the input text will have the correct answers for 
> > > each question underlined?
> > >
> > > This seems challenging:
> > >
> > > * A regular expression will not detect text formatting such as 
> > > underlining - in fact in plain text such as what we work with in BBEdit, 
> > > there IS no underlining. Some word processors allow searching by text 
> > > formatting; whether they’re scriptable I don’t know.
> > >
> > > * It’s your work :), but it seems tedious to have to manually underline 
> > > or otherwise mark the correct answers for each of up to 99 questions, 
> > > especially if the only reason to do so is to help with this 
> > > transformation. When I’ve built quizzes, the answers are in a separate 
> > > index file that is programmatically accessible for grading quizzes; such 
> > > a thing would also be useful for the kind of script that could transform 
> > > your input into your desired output.
> > >
> > > # Answers_Quiz_016.txt
> > > Q A
> > > 1 a
> > > 2 c
> > > 3 a
> > > 4 d
> > > 5 c
> > > ...
> > >
> > >
> > > * I suppose this is also a matter of what control you have over the input 
> > > - the set of questions and the knowledge/designation of the correct 
> > > answers. Also, how frequently you have to do this.
> > >
> > > More description?
> > >
> > > — Bruce
> > >
> > > _bruce__van_allen__santa_cruz_ca_
> > >
> > >
> > >
> > >
> > >
> > > > On Sep 13, 2023, at 10:11 AM, 'anotherhoward' via BBEdit Talk 
> > > >  wrote:
> > > >
> > > >
> > > > Bruce,
> > > >
> > > > Please look at my last response, and let me know if that’s provides the 
> > > > needed information.
> > > >
> > > > Thanks,
> > > > Howard
> > > > On Wednesday, September 13, 2023 at 1:06:21 PM UTC-4 Bruce Van Allen 
> > > > wrote:
> > > > Here’s what I think what Kevin is getting at: if you want a generalized 
> > > > method that works for every/any question, not just the three in your 
> > > > example, then that method has to know which answer to designate as 
> > > > correct.
> > > >
> > > > E.g., you’ve said there can be as many as 99 questions; which answer 
> > > > for question 3 would be the correct one? For question 4? etc.
> > > >
> > > > There’s nothing in image 1 (the input) that indicates whether a), b), 
> > > > c), or d) is the correct answer for each question.
> > > >
> > > > — Bruce
> > > >
> > > > _bruce__van_allen__santa_cruz_ca_
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > > On Sep 13, 2023, at 9:55 AM, 'anotherhoward' via BBEdit Talk 
> > > > >  wrote:
> > > > >
> > > > > Kevin,
> > > > > Is this of help? I’ve underlined the correct answers in the input.
> > > > > Howard
> > > > >
> > > > > Here is the input in text format:
> > > > > 1. Why is the "Description" component important when reflecting on 
> > > > > sports?
> > > > > a) It helps you set future goals.
> > > > > b) It provides context and sets the stage for reflection.
> > > > > c) It summarizes the main lessons learned.
> > > > > d) It assesses the positive and negative aspects.
> > > > >
> > > > > 2. Why is the "Evaluation" component important?
> > > > > a) This is choice one.
> > > > > b) This is choice two.
> > > > > c) This is choice three.
> > > > > d) This is choice four.
> > > > >
> > > > > 10. Why is the "Analysis" component important?
> > > > > a) This is choice one.
> > > > > b) This is choice two.
> > > > > c) This is choice three.
> > > > > d) This is choice four.
> > > > >
> > > > > On Wednesday, September 13, 2023 at 12:51:46 PM UTC-4 anotherhoward 
> > > > > wrote:
> > > 

Re: Fix filenames with blank spaces...

2023-07-09 Thread David Puente

I tried to explain:
The text now is "Anotación 2019-07-08 151143.png” and I want to remove 
special characters (latin characters as accents) in all the png files 
texts… Consider there are spaces and it’s not needed to remove. Only 
change the accents to non accented words…


Is it clear?

-- Mensaje original --
De "Neil Faiman" 
Para "BBEdit Talk Mailing List" 
Fecha 8/7/23, 17:21:00
Asunto Re: Fix filenames with blank spaces...


On Jul 8, 2023, at 8:39 AM, David Puente  wrote:


 Hi folks,
 I need to find some trick to rename the text:

 

 I need find all the .png names removing spaces and accents... Is there any 
pattern to make it possible? Thanks


It will be much easier for people to help you if you can tell us not just what 
your input looks like, but what you want it to look like after it has been 
transformed. Otherwise, we are just guessing, and are likely to give you a 
solution that doesn’t solve your problem.

Regards,
Neil Faiman

--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "supp...@barebones.com" rather than posting here. 
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit 
Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/2E26C10E-604F-40D7-8E0B-DF08D346C86B%40faiman.org.


--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "supp...@barebones.com" rather than posting here. 
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/em612510c7-310f-4384-a876-4a1dd5f12a33%4015366124.com.


Fix filenames with blank spaces...

2023-07-08 Thread David Puente
Hi folks, 
I need to find some trick to rename the text:



I need find all the .png names removing spaces and accents... Is there any 
pattern to make it possible? Thanks

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/6a83df15-0871-402a-8e0a-ce2995da0f3en%40googlegroups.com.


Re: Digest for bbedit@googlegroups.com - 3 updates in 1 topic

2023-05-04 Thread David Weinberger
*Bruce*, yes, I can manually reorder files in the "Project" list in the
project sidebar, as well as in the Currently Open Documents (COD) pane.

The COD pane defaults to alphabetical; that is, if I open a file in the top
pane for the first time, it inserts itself in alphabetical order into the
bottom pane. I like that behavior.

*Fletcher*, if I drag a folder from the Finder into the Project pane, its
contents do not show up as alphabetized.

Is the "Project" pane in the Projects sidebar alphabetizing itself for
anyone?  Is this a bug or my misuse/misconfiguration/misunderstanding of a
feature?

David W.

On Wed, May 3, 2023 at 11:39 PM  wrote:

> bbedit@googlegroups.com
> <https://groups.google.com/forum/?utm_source=digest_medium=email#!forum/bbedit/topics>
>  Google
> Groups
> <https://groups.google.com/forum/?utm_source=digest_medium=email/#!overview>
> <https://groups.google.com/forum/?utm_source=digest_medium=email/#!overview>
> Topic digest
> View all topics
> <https://groups.google.com/forum/?utm_source=digest_medium=email#!forum/bbedit/topics>
>
>- Digest for bbedit@googlegroups.com - 2 updates in 1 topic
><#m_-6608735223114166141_group_thread_0> - 3 Updates
>
> Digest for bbedit@googlegroups.com - 2 updates in 1 topic
> <http://groups.google.com/group/bbedit/t/3614dc1e86efd016?utm_source=digest_medium=email>
> David Weinberger : May 03 09:00AM -0400
>
> Holger,
>
> Thanks for the tip. But I'm not saying D'oh! quite yet :)
>
> I hadn't paid any attention to that preference setting, so thanks.
> Unfortunately, the most relevant option ("Add documents to sidebar in
> alphabetical order") was already checked. The option says:
>
> BBEdit will add newly created or opened documents to the sidebar list in
> alphabetical order, if possible. Turn this option off to always add
> documents to the end of the list.
>
>
> It doesn't affect the ordering of a project's files in that project
> sidebar; even with the option selected, it places additions to the project
> at the end of the list. I don't know if that's a bug, if it isn't meant to
> apply to the "Project" listing, or if I'm misunderstanding the setting.
> (That third option is always the most likely.)
>
> David W.
> da...@weinberger.org
> [home page <https://weinberger.org/>] [writings
> <https://www.weinberger.org/writings/index.html>] [Everyday Chaos
> <https://everydaychaosbook.com/>]
> he/him
>
>
> Bruce Van Allen : May 03 07:18AM -0700
>
> Just checking - have you tried dragging items up or down in the project
> sidebar to change the order? Works over here, even with "_Add docs in alpha
> order" checked.
>
> — Bruce
>
> _bruce__van_allen__santa_cruz_ca_
>
>
>
>
>
> Fletcher Sandbeck : May 03 07:41AM -0700
>
> FWIW, I've always thought the Project listing was alphabetical. It
> certainly appears that way in the projects I use. Come to think of it I
> can't even drag items into a different order...
>
> However, if I add a "Collection" to the sidebar in the project then the
> files within that collection can be dragged into a different order. If all
> my files are within a collection then the sort seems customizable but if
> they are outside a collection then they are alphabetical. Similarly if I
> add an "Item" to the sidebar then that item can be dragged around, even
> into the folders that I have.
>
> David, you could try dragging a folder from the Finder into the project
> sidebar and seeing if it behaves more like you want.
>
> [fletcher]
>
>
> Back to top <#m_-6608735223114166141_digest_top>
> You received this digest because you're subscribed to updates for this
> group. You can change your settings on the group membership page
> <https://groups.google.com/forum/?utm_source=digest_medium=email#!forum/bbedit/join>
> .
> To unsubscribe from this group and stop receiving emails from it send an
> email to bbedit+unsubscr...@googlegroups.com.
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/CALLXKrR2tRO2qpchWr3HSmfOrq07Gutp5ZusNHoSBFja5fNaxw%40mail.gmail.com.


Re: Digest for bbedit@googlegroups.com - 2 updates in 1 topic

2023-05-03 Thread David Weinberger
Holger,

Thanks for the tip. But I'm not saying D'oh! quite yet :)

I hadn't paid any attention to that preference setting, so thanks.
Unfortunately, the most relevant option ("Add documents to sidebar in
alphabetical order") was already checked. The option says:

BBEdit will add newly created or opened documents to the sidebar list in
alphabetical order, if possible. Turn this option off to always add
documents to the end of the list.


It doesn't affect the ordering of a project's files in that project
sidebar; even with the option selected, it places additions to the project
at the end of the list. I don't know if that's a bug,  if it isn't meant to
apply to the "Project" listing, or if I'm misunderstanding the setting.
(That third option is always the most likely.)

David W.
da...@weinberger.org
[home page <https://weinberger.org/>] [writings
<https://www.weinberger.org/writings/index.html>] [Everyday Chaos
<https://everydaychaosbook.com/>]
he/him


On Tue, May 2, 2023 at 11:40 PM  wrote:

> bbedit@googlegroups.com
> <https://groups.google.com/forum/?utm_source=digest_medium=email#!forum/bbedit/topics>
>  Google
> Groups
> <https://groups.google.com/forum/?utm_source=digest_medium=email/#!overview>
> <https://groups.google.com/forum/?utm_source=digest_medium=email/#!overview>
> Topic digest
> View all topics
> <https://groups.google.com/forum/?utm_source=digest_medium=email#!forum/bbedit/topics>
>
>- Alphabetizing project listing <#m_4229365903456454372_group_thread_0>
>- 2 Updates
>
> Alphabetizing project listing
> <http://groups.google.com/group/bbedit/t/7a23e6ea796456e9?utm_source=digest_medium=email>
> David Weinberger : May 02 09:11AM -0400
>
> I am sure I'll be D'oh slapping my forehead about this, especially since I
> did look in the manual, and this is such a nit, but ...
>
> You know the side panel that lists all the files in a project? Is there a
> way to alphabetize it, the way the "Currently open documents" panel is?
>
> Thanks.
>
> David Weinberger
> da...@weinberger.org
> Holger Bartel : May 02 03:22PM +0200
>
> Hi David,
>
> In Settings, under “BBEdit Sidebar Settings” you can find an option for
> alphabetical ordering.
>
> Hope this helps,
> Holger
>
>
> Back to top <#m_4229365903456454372_digest_top>
> You received this digest because you're subscribed to updates for this
> group. You can change your settings on the group membership page
> <https://groups.google.com/forum/?utm_source=digest_medium=email#!forum/bbedit/join>
> .
> To unsubscribe from this group and stop receiving emails from it send an
> email to bbedit+unsubscr...@googlegroups.com.
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/CALLXKrTGumaDwXXsHP9sPUy%2BWOz5x1PK1isev2tTRs%2Bphia3rg%40mail.gmail.com.


Alphabetizing project listing

2023-05-02 Thread David Weinberger
I am sure I'll be D'oh slapping my forehead about this, especially since I
did look in the manual, and this is such a nit, but ...

You know the side panel that lists all the files in a project? Is there a
way to alphabetize it, the way the "Currently open documents" panel is?

Thanks.

David Weinberger
da...@weinberger.org

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/CALLXKrQZpEPb2d9tpAKd3QEBix-nV-TgV_%3D9BtSXQa8t__bXZA%40mail.gmail.com.


Re: Starting new chapters on a new page

2023-03-15 Thread David Donachie


> On 15 Mar 2023, at 21:05, Bruce Van Allen  wrote:
> 
> I haven’t used Quark for at least a decade, so I haven’t faced this question 
> in that context. But with css in general:
> 
> 1. Your css is using the deprecated page-break-inside property. It might 
> still work, so try 'page-break-before: initial;' in the first paragraph of a 
> chapter.
> 
> 2. Otherwise the newer property is simply break-before (along with 
> break-after, and break-inside);
> 
> break-before: page;
> break-before: initial;
> 
> See mdn: <https://developer.mozilla.org/en-US/docs/Web/CSS/break-before>


Although break-before is part of the current CSS spec, the EPUB 3.3 spec (which 
I think is the latest) refers to page-break-before only. I can’t see an 
indication in the W3C spec that break-before is supported: 
https://www.w3.org/TR/epub-33 <https://www.w3.org/TR/epub-33>

Having said that, the draft points at https://www.w3.org/TR/CSS 
<https://www.w3.org/TR/CSS> which does have break-before, so you could equally 
assume that 3.3 does support it.

Of course, some EPUB platforms only support EPUB 2, which wouldn’t definitely 
not use break-before.

I guess the right approach is to test your target platforms.

Yours
David Donachie


-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/01000186e7295ad4-ae256b87-3e31-412c-ae8c-9fccb4657674-00%40email.amazonses.com.


Adding code languages support (MJML)/Or an MJML interpretor?

2023-03-14 Thread David Viard
Hi Group,

I am working with the MJML email templating language/API. [https://mjml.io]
*It is a subset/variant of HTML & CSS, which aims to "guarantee" the code 
is valid for' all' email clients (with tweets of course).*

I have build a series of regex/AppleScript/Shell  with BBEDIT which 
interprets a "rough" output in MJML from a Design Sytem, as a POC.

I am trying to make BBEdit recognize MJML*.mjml* files as HTML (~ subset) 
and myCSS*.css.mjml* as CSS file (+additions). (Readability of code, 
indentation, coloring, etc…).

Can I do this in the Prefs > Languages > Pane?

   - Where can I add (or contribute) specific markup —*meaning different 
   than HTML/CSS which should be recognized or ignored (if error)—. *
   - Is there a file to edit?

If not, is there a way to add a module (like VSCode has, which also 
generates a Preview via their API)?
Using the mjml API?

Thanks a lot for your input





-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/64a72854-4a9f-433b-8523-104952ee3e8dn%40googlegroups.com.


Re: Simple question: Forgetting BBEdit savings for documents

2022-11-30 Thread David Barto
> On Nov 30, 2022, at 12:42 PM, David Stein  wrote:
> 
> Perfect. Thank you!
> 
> On Tuesday, November 29, 2022 at 8:58:29 PM UTC-5 sie...@barebones.com wrote:
> On 29 Nov 2022, at 17:04, David Stein wrote: 
> 
> > Simple question regarding tabs vs. spaces: 
> > [...] 
> 
> Documents remember their own settings if those changes were made individually 
> using the Text Options panel. 
> 
> You can restore them to the (current) global preferences by using "Normalize 
> Options", on the Edit menu. 
> 
> R. 

Is there anything on the UI of BBEdit that shows that the global options don’t 
match the options being applied to the file?

That would be a "nice to have".

David


/never top posting.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/BFAE651C-581D-441E-AF20-2EF07963FF15%40kdbarto.org.


Re: Simple question: Forgetting BBEdit savings for documents

2022-11-30 Thread David Stein
Perfect. Thank you!

On Tuesday, November 29, 2022 at 8:58:29 PM UTC-5 sie...@barebones.com 
wrote:

> On 29 Nov 2022, at 17:04, David Stein wrote:
>
> > Simple question regarding tabs vs. spaces:
> > [...]
>
> Documents remember their own settings if those changes were made 
> individually using the Text Options panel.
>
> You can restore them to the (current) global preferences by using 
> "Normalize Options", on the Edit menu.
>
> R.
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/cd0957ef-a391-4948-a757-287a7c032600n%40googlegroups.com.


Simple question: Forgetting BBEdit savings for documents

2022-11-29 Thread David Stein
Simple question regarding tabs vs. spaces:

I've been using BBEdit to write some Python scripts. To date, I've used 
spaces for indenting, and I've used the "Auto-Expand Tabs" option to insert 
spaces when I hit the Tab key.

Recently, I switched to using tabs. I turned off "Auto-Expand Tabs," and I 
find that on new files, BBEdit inserts tabs instead of spaces. Also, I've 
run "Change Spaces to Tabs" on my existing scripts. So far, so good.

The problem is that BBEdit continues to insert spaces instead of tabs when 
I hit the Tab key.

I cannot find any way to persuade BBEdit to forget its previous settings 
for documents. It's like BBEdit has cached the previous settings somewhere, 
and I can't dump the cache or force it to refresh with the current BBEdit 
settings.

Any suggestions? Thanks in advance.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/f3069db6-aa0b-4edf-ae88-499e1361c6e1n%40googlegroups.com.


Replacing tag in one file with data from another

2022-10-11 Thread David Viard
Hi guys,

I need to build a Script which would list href tags (filled with a  comment) in a mjml/html file and replace the comment with the 
contents of another file where are listed the final URLs.
The list of Urls being ordered according to their expected order in the 
html/mjml file (top to Bottom.

Is this even possible?
I was wondering if it was possible to loop through both lists and use grep 
replace from one to the other.

Any insights?

Thanks

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/494e97bf-0b0b-4d97-ab13-a1d5b836c106n%40googlegroups.com.


Re: Any Regex Gurus -

2022-07-11 Thread David G Wagner
good[^"]*"[^"]* Will give you:

good for me",yo"
On Jul 11, 2022, 10:13 -0700, Prashant Maheshwari , 
wrote:
> I can extract all text between good and quotes by search good.*"
>
>
> How to modify to extract between two quotes starting from good
> good for me",yo
>
>
>
>
>
> hello how are we doing my brother "good for me",yo","what you say?"
>
>
>
> --
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: 
> 
> ---
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/51853ddb-e1ad-4959-8b3a-0406dd7934cen%40googlegroups.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/5aa37792-41cf-413f-a35d-ba5cfc9d7981%40Spark.


Re: python language server

2022-07-11 Thread David Schueler
Thanks. That sounds plausible. If at some point you can help me change that 
path setting, that would be helpful.

Thanks,

DS

On Saturday, July 9, 2022 at 1:54:51 PM UTC-4 TJ Luoma wrote:

> Homebrew used to use /usr/local/ but on Apple Silicon uses /opt/homebrew/
>
> My guess is that BBEdit isn’t getting the $PATH set properly, although I’m 
> on my iPhone and not sure how to fix it at the moment. 
>
> I hope this might help. 
>
> Tj
>
>
>
> On Fri, Jul 8, 2022 at 6:24 PM David Schueler  wrote:
>
>> Hi all,
>>
>> I just got a new Mac with an M1 Ultra chip. I'm trying to set up BBEdit 
>> with the jedi-language-server, as per these instructions 
>> <https://www.barebones.com/support/bbedit/lsp-notes.html>. It worked 
>> fine on my old intel Macbook Pro, but with the new machine, I get the 
>> message "server command not found". I linked the Python section to the 
>> python in my current venv, which seemed to work before.
>>
>> Thanks,
>>
>> David
>>
>> -- 
>> This is the BBEdit Talk public discussion group. If you have a feature 
>> request or need technical support, please email "sup...@barebones.com" 
>> rather than posting here. Follow @bbedit on Twitter: <
>> https://twitter.com/bbedit>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "BBEdit Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to bbedit+un...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/bbedit/c37d4422-0511-4189-bf78-34030f5d2b05n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/bbedit/c37d4422-0511-4189-bf78-34030f5d2b05n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/43c3843c-488a-4570-a580-f75c3f5408d1n%40googlegroups.com.


python language server

2022-07-08 Thread David Schueler
Hi all,

I just got a new Mac with an M1 Ultra chip. I'm trying to set up BBEdit 
with the jedi-language-server, as per these instructions 
<https://www.barebones.com/support/bbedit/lsp-notes.html>. It worked fine 
on my old intel Macbook Pro, but with the new machine, I get the message 
"server command not found". I linked the Python section to the python in my 
current venv, which seemed to work before.

Thanks,

David

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/c37d4422-0511-4189-bf78-34030f5d2b05n%40googlegroups.com.


Re: Help with a GREP task

2022-07-03 Thread David Brostoff
On Jul 3, 2022, at 3:17 PM, Rod Buchanan  wrote:
> 
> Don't enter the '$'.  I was showing the shell prompt (in my case, the bash 
> shell).  I probably should've left that out.

No problem of course -- now it works great. (In case it matters, I am using 
Monterey, so the default is zsh.)

Thank you very much -- again I have learned a lot.

David

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/218A2DD7-34F8-44BC-9B1F-7CE205A77748%40earthlink.net.


Re: Help with a GREP task

2022-07-03 Thread David Brostoff
On Jul 3, 2022, at 1:26 PM, David Kelly  wrote:
> 
> As I originally stated, you now invoke the script file with 
> "awk -f script.awk " with a trailing space then drag your input file to the 
> command line to finish.
> 
> -f tells awk to get its commands from the specified file rather than the 
> command line.

Thanks for the detailed explanation and your patience --  this worked great and 
I really learned a lot.

This is the most helpful email list I have ever been on.

David

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/5B43F7C5-076B-4060-A50C-1E36286A07CC%40earthlink.net.


Re: Help with a GREP task

2022-07-03 Thread David Brostoff
On Jul 3, 2022, at 12:54 PM, Christopher Waterman  wrote:
> 
> It seems like you are missing some fundamentals when dealing with the command 
> line and paths and such.

Yes, missing almost all the fundamentals (except for knowing how to create a 
POSIX style path), so thank you for the very clear explanation, which worked 
great.

By the way, these days I don't have use for this kind of thing very often -- or 
else I would take the time to learn it from scratch instead of filling in 
someone else's generously provided template -- but it's extremely interesting 
to see its potential.

David


-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/9DE67646-8A7B-4686-B8B7-E68C6D58DA35%40earthlink.net.


Re: Help with a GREP task

2022-07-03 Thread David Kelly



On Jul 3, 2022, at 1:43 PM, David Brostoff  wrote:

> On Jul 3, 2022, at 7:26 AM, David Kelly  wrote:
>> 
>> Create an awk script file. Lets call it "script.awk" that looks like this:
>> 
>>  {
>>  print $1 >> "col-1.txt"
>>  print $2 >> "col-2.txt"
>>  }
> 
> Is creating an awk script file different from entering the above script in 
> Terminal?
> 
> If not, do I add "awk" before the leading curly bracket?

No, create a file exactly as shown above. 4 lines. Use a tab or a space or many 
spaces, it doesn't matter.

The difference is by putting the script (awk commands) in a file we don't have 
to figure out how to escape the newline between the two actions. That kind of 
thing varies depending on what shell you are using in Terminal.

Also putting the script in a file lets you create very complex scripts.

macOS Monterey seems to come with every popular Unix shell: sh, csh, tcsh, zsh, 
and bash. zsh seems to be the default now.

As I originally stated, you now invoke the script file with 
"awk -f script.awk " with a trailing space then drag your input file to the 
command line to finish.

-f tells awk to get its commands from the specified file rather than the 
command line.


--
David Kelly N4HHE, dke...@hiwaay.net

Whom computers would destroy, they must first drive mad.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/4396EBB4-B040-4842-8D98-C87E502DB10E%40hiwaay.net.


Re: Help with a GREP task

2022-07-03 Thread David Brostoff
On Jul 3, 2022, at 10:07 AM, Rod Buchanan  wrote:
> 
> Another command-line option would be to use cut.  Assuming the fields are 
> separated by a space:
> 
>   $ cut -d ' ' -f1 source_file.txt > output_file_1.txt
>   $ cut -d ' ' -f2 source_file.txt > output_file_1.txt
> 
> Where:
> 
>   -d ‘ ‘  Tells cut the fields are separated by a space
>   -f 1Specifieds the field, in this case 
> field 1
>   source_file.txt the name of the file containing the data
>   output_file_1.txt   the name of the file you want the output placed 
> in

Thank you for this interesting tip.

I now know how to specify the output path by dragging the output file to the 
command line when the item it is replacing is the last one in the command, but 
how do I do it for an item in the middle of the command?

Also, when I entered the above text in Terminal to try it out, I got the error 
message "zsh: command not found: $". 

David

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/C5AD7034-128B-4D1E-BF65-971A06CE6861%40earthlink.net.


Re: Help with a GREP task

2022-07-03 Thread David Brostoff
On Jul 3, 2022, at 7:26 AM, David Kelly  wrote:
> 
> Create an awk script file. Lets call it "script.awk" that looks like this:
> 
>   {
>   print $1 >> "col-1.txt"
>   print $2 >> "col-2.txt"
>   }

Is creating an awk script file different from entering the above script in 
Terminal?

If not, do I add "awk" before the leading curly bracket?

Thank you,

David

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/20B61565-C771-4A19-8CE7-834946CDC792%40earthlink.net.


Re: Help with a GREP task

2022-07-03 Thread David Brostoff
On Jul 3, 2022, at 12:07 AM, Chris  wrote:
> 
> 
>> On Jul 2, 2022, at 10:55 PM, David Brostoff  wrote:
>> 
>> }’ input.txt/Users/davidbrostoff/Desktop/Sample2010-2011.txt
> 
> You need to replace ‘input.txt’ with the file you are dragging in 
> ‘/Users/davidbrostoff/Desktop/Sample2010-2011.txt’, as ‘input.txt‘was just a 
> stand in for the file you’re working with. 

I had tried that but it still didn't work -- thanks anyway.

David

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/EB419B57-5802-455D-AB96-9EAFE353CA46%40earthlink.net.


Re: Help with a GREP task

2022-07-03 Thread David Kelly



On Jul 3, 2022, at 12:52 AM, David Brostoff  wrote:

> On Jul 2, 2022, at 9:29 PM, David Kelly  wrote:
>> 
>> Type the command line and rather than type the input file name just drag the 
>> file to the command line. Finder/Terminal will write the file's full path on 
>> the command line.
> 
> Thanks for the tip, but I must be doing something wrong. 
> 
> First I copy and paste this command:
> 
> awk ‘{ print $1 >> “col-1.txt”
> print $2 >> “col-2.txt” }’ input.txt
> 
> Then I drag the source file to the command line and press Enter, which 
> produces this error message:
> 
> awk: syntax error at source line 1   
> context is
>>>> ? <<< 
>   missing }
> awk: bailing out at source line 1
> 
> Two text files are produced, but the one named "col-1.txt" is blank and the 
> "col-2.txt" has this line, repeated three times: 
> 
> }’ input.txt/Users/davidbrostoff/Desktop/Sample2010-2011.txt

Sorry about previously not testing it myself and trying to lead you down a 
problematic path of bundling the awk script on a split command line. Some 
things work in bash that don't work in csh or zsh. 

This works no matter what shell:

Create an awk script file. Lets call it "script.awk" that looks like this:

{
print $1 >> "col-1.txt"
print $2 >> "col-2.txt"
}

If memory serves the leading tabs may not be necessary, but the above is 
tested. The tab before first { is where one puts the line-match grep pattern 
but in awk a blank matches all lines. For instance you could make the script 
only split lines that contain numeric digits.

Then type "awk -f script.awk " with a trailing space then drag your file to the 
command line.

Might want to delete or rename previous col-[12].txt because each invocation 
will add new contents to existing files. If you run the script twice you will 
get the 2nd run appended to the first.

--
David Kelly N4HHE, dke...@hiwaay.net

Whom computers would destroy, they must first drive mad.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/C5D6842A-7126-4858-B336-B3BD65DF255A%40hiwaay.net.


Re: Help with a GREP task

2022-07-02 Thread David Brostoff
On Jul 2, 2022, at 9:29 PM, David Kelly  wrote:
> 
> Type the command line and rather than type the input file name just drag the 
> file to the command line. Finder/Terminal will write the file's full path on 
> the command line.

P.S. When I said the following line is repeated three times, I now realize 
that's only because I made three attempts:

}’ input.txt/Users/davidbrostoff/Desktop/Sample2010-2011.txt

David 


-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/C395D667-239C-4696-B06A-E537E630F384%40EARTHLINK.NET.


Re: Help with a GREP task

2022-07-02 Thread David Brostoff
On Jul 2, 2022, at 9:29 PM, David Kelly  wrote:
> 
> Type the command line and rather than type the input file name just drag the 
> file to the command line. Finder/Terminal will write the file's full path on 
> the command line.

Thanks for the tip, but I must be doing something wrong. 

First I copy and paste this command:

awk ‘{ print $1 >> “col-1.txt”
print $2 >> “col-2.txt” }’ input.txt

Then I drag the source file to the command line and press Enter, which produces 
this error message:

awk: syntax error at source line 1   
 context is
 >>> ? <<< 
missing }
awk: bailing out at source line 1

Two text files are produced, but the one named "col-1.txt" is blank and the 
"col-2.txt" has this line, repeated three times: 

}’ input.txt/Users/davidbrostoff/Desktop/Sample2010-2011.txt

David 


-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/B7BB1454-4A0D-451D-AADB-B95104629ECB%40earthlink.net.


Re: Help with a GREP task

2022-07-02 Thread David Kelly



On Jul 2, 2022, at 9:26 PM, David Brostoff  wrote:

> On Jun 29, 2022, at 8:49 PM, Christopher Waterman  
> wrote:
>> 
>> It breaks down like this:
>> 
>> awk = The command; it takes two parameters. Param 1: The script. Param 2: A 
>> Path to the source file.
> 
> Again sorry for the beginner question, but what format should I use for the 
> path if, for example, the file is on my Desktop?

Type the command line and rather than type the input file name just drag the 
file to the command line. Finder/Terminal will write the file's full path on 
the command line.

By default Terminal's current directory is your home directory, abbreviated ~ 
so that is where awk will write the output.

--
David Kelly N4HHE, dke...@hiwaay.net

Whom computers would destroy, they must first drive mad.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/F04FF855-B3BE-4AC2-9B54-47038EF9D095%40hiwaay.net.


Re: Help with a GREP task

2022-07-02 Thread David Brostoff
On Jun 29, 2022, at 8:49 PM, Christopher Waterman  wrote:
> 
> It breaks down like this:
> 
> awk = The command; it takes two parameters. Param 1: The script. Param 2: A 
> Path to the source file.

Again sorry for the beginner question, but what format should I use for the 
path if, for example, the file is on my Desktop?

David

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/697FFF7B-3C9C-4220-AFB2-E53D0DB9FEE7%40earthlink.net.


Re: React.js - Clippings and syntax highlighting?

2022-06-30 Thread David Daniel Wouters
any updated on this?

Op dinsdag 20 augustus 2019 om 22:09:15 UTC+2 schreef ryen...@gmail.com:

> I have not seen one out in the wild. The one you linked to could be ported 
> over.
>
> I"m curious about JSX syntax highlighting as well. I haven't tried bbedit 
> with angular or vue yet to see how those syntaxes are handled.
>
> – Rick Yentzer
>
> On Tuesday, April 2, 2019 at 9:53:27 AM UTC-4, Charlie Garrison wrote:
>>
>> Good morning,
>>
>> Does anyone have a Clipping set for React/Router/Redux? Or does anyone 
>> know a script for converting VisualStudio(??) snippets to BBE Clippings:
>>
>>- https://github.com/walteribeiro/full-react-snippets 
>>
>> Or the even bigger question, has anyone got a language module for JSX 
>> (HTML inside JavaScript)?
>>
>> BareBones, is support for JSX syntax highlighting on the roadmap?
>>
>> -cng
>>
>> -- 
>>
>> Charlie Garrison   
>> Garrison Computer Services  
>> PO Box 380
>> Tumbarumba NSW 2653  Australia
>>
>>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/bd7d3473-9fae-4ff4-aa78-acea3a1b67e0n%40googlegroups.com.


Re: Help with a GREP task

2022-06-30 Thread David Brostoff
On Jun 30, 2022, at 5:47 AM, John E. Connerat  wrote:
> 
> Although this has been solved in numerous ways, there is one more solution 
> that might work if all the data are formatted with exactly three digits 
> followed by a space and two digits. It's something I use all the time with 
> fixed-width column data, and it's particularly quick, especially if you are 
> dealing with a column in the middle of many columns.

Thanks for the tip -- I have done this occasionally in the past and had briefly 
thought about it for this but somehow didn't even try it. 

David

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/DC544743-DBA4-4EAD-A023-9770E6CD821F%40earthlink.net.


Re: Help with a GREP task

2022-06-30 Thread David Brostoff
On Jun 30, 2022, at 2:05 AM, Kaveh  wrote:
> 
> David, Extract is a great feature. Simple but clever. I use it all the time 
> for quickly analysing text I have scraped for example...

Yes -- for the past couple of years I have only been using BBEdit in a very 
limited way and this was the first time I used Extract, but I can see its 
potential.

David

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/CF0B0EDE-8530-4541-B2A7-ECAB871A07AA%40earthlink.net.


Re: Help with a GREP task

2022-06-29 Thread David Brostoff
On Jun 29, 2022, at 8:52 PM, Christopher Waterman  wrote:
> 
> Well… No, no more steps.

Mystery solved:

I somehow had the Regex command highlighted in the Find box. As soon as I 
clicked elsewhere to dismiss the highlighting, the extracted text appeared in 
the new document.

Thanks again -- I really appreciate your help.

David

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/6B2A593B-C6C4-4EAE-A75F-5B93CAF26B17%40earthlink.net.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/A3E920D6-108D-4EBB-988E-023C8C948DAD%40EARTHLINK.NET.


Re: Help with a GREP task

2022-06-29 Thread David Brostoff
On Jun 29, 2022, at 8:52 PM, Christopher Waterman  wrote:
> 
> Well… No, no more steps.

Is it because I am using BBEdit in free mode?

David

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/6B2A593B-C6C4-4EAE-A75F-5B93CAF26B17%40earthlink.net.


Re: Help with a GREP task

2022-06-29 Thread David Brostoff
On Jun 29, 2022, at 8:49 PM, Christopher Waterman  wrote:
> 
> Does that help?

Yes, now I get it -- thank you.

David

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/C9C43415-D059-4644-849B-810D062F8D8E%40earthlink.net.


Re: Help with a GREP task

2022-06-29 Thread David Brostoff
On Jun 29, 2022, at 7:43 PM, David Kelly  wrote:
> 
> In terminal.app it would be something like this:
> 
> awk ‘{ print $1 >> “col-1.txt”
>  print $2 >> “col-2.txt” }’ input.txt

As I mentioned, I am completely ignorant of awk, so sorry for the basic 
question, but how do I get Terminal to point to the source document?

David

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/F3146D85-3A4B-4D8A-9F49-B12324BA3951%40earthlink.net.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/A58A9E81-D6F0-4751-AC2D-03D95C4E15F6%40earthlink.net.


Re: Help with a GREP task

2022-06-29 Thread David Brostoff
On Jun 29, 2022, at 7:58 PM, Christopher Waterman  wrote:
> 
> It is pretty easy to do this with two finds with extract.
> Extract opens the matches in a new document.
> 
> Find: ^\d{3}
> Then hit extract
> 
> Find: \b\d{2}\b
> Then hit extract again

Thank you for the easy-to-follow instructions.

When I click extract, it highlights the matches and opens a new document but 
it's blank?

Is there another step?

David


-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/555CFE8B-8E9A-48D4-B2C9-444F86E3FABB%40earthlink.net.


Re: Help with a GREP task

2022-06-29 Thread David Brostoff
On Jun 29, 2022, at 7:43 PM, David Kelly  wrote:
> 
> In terminal.app it would be something like this:
> 
> awk ‘{ print $1 >> “col-1.txt”
>   print $2 >> “col-2.txt” }’ input.txt

Thank you -- I haven't used awk before though so I will have to get up to 
speed. (I asked about GREP only because I have used it a little in the past.)

David

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/F3146D85-3A4B-4D8A-9F49-B12324BA3951%40earthlink.net.


Re: Help with a GREP task

2022-06-29 Thread David Kelly


On Jun 29, 2022, at 8:59 PM, David Brostoff  wrote:

> I have a list of numbers in this format:
> 
> 123 56
> 789 01
> 
> How can I create two separate documents with 123 and 789 in one and 56 and 01 
> in the other?

I don’t think that is a good grep task. It cries for awk.

In terminal.app it would be something like this:

awk ‘{ print $1 >> “col-1.txt”
   print $2 >> “col-2.txt” }’ input.txt

Anyway, that is the idea. My awk is rusty.

--
David Kelly N4HHE, dke...@hiwaay.net

Whom computers would destroy, they must first drive mad.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/7450BB2E-FBB8-4A30-B60B-6CCC6508CD68%40hiwaay.net.


Help with a GREP task

2022-06-29 Thread David Brostoff
I have a list of numbers in this format:

123 56
789 01

How can I create two separate documents with 123 and 789 in one and 56 and 01 
in the other?

David

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/D7CFE4CC-DB27-42F8-9A89-6877D6521CAB%40earthlink.net.


Re: I'm trying to script the Save Document command

2022-05-09 Thread David Barto


Jean, your script works when run as an osascript, however I'm trying to run 
the script as a BBEdit OnDocumentSave

In that case I've fixed the syntax errors (as best I can, probably 
incorrectly) and it only runs to the first 'do shell script', nothing after 
that executes.

$HOME/asecho is just "echo $* >> $HOME/Desktop/trace" for logging purposes.

 David


-- text document doc

*on* documentDidSave(vDocument)

   *do shell script* "$HOME/asecho run"

   *if* vDocument *is* FTP *then*

   *do shell script* "$HOME/asecho is FTP file"

   *set* vFTPInfo *to* FTPInfo *of* vDocument

   *set* vFile *to* vFTPInfo's *file*

   *set* vHost *to* vFTPInfo's host

   -- set vURL to vFTPInfo's URL -- WARNING: triggers an error even 
though the property exists and is visible in the results pane.

   *set* vURL *to* vDocument's *URL*

   *log* {vHost, vURL}

   *do shell script* "$HOME/asecho is FTP file" & vHost & " " & vURL

   *else*

   *do shell script* "echo is NOT FTP file"

   *if* vDocument's modified *then*

   *save* vDocument

   *end* *if*

   *set* vFile *to* vDocument's *file*

   *set* vPosixPath *to* POSIX path *of* (vFile *as* *string*)

   *do shell script* "$HOME/asecho is NOT FTP file" & *the* quoted form 
*of* vPosixPath

   *end* *if*

   *log* vFile

   *set* vPosixPath *to* POSIX path *of* (vFile *as* *string*)

   *log* vPosixPath

   *do shell script* "$HOME/asecho run ls on " & *the* quoted form *of* 
vPosixPath

   *do shell script* "ls -al" & space & *the* quoted form *of* vPosixPath

*end* documentDidSave

On Sunday, May 8, 2022 at 2:12:53 AM UTC-7 jj wrote:

> Hi David,
>
> `try ... on error`  blocks  are very useful for debugging scripts.
>
> Before porting it to a Document Script, test your logic in the Script 
> Editor where you can use the `log` and `display alert/dialog` commands to 
> debug.
>
> Use `the quoted form of`  for paths included  in your `do shell script` 
> commands, otherwise any space in the path will break your command.
>
>
>>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/17072a9a-c9e8-404f-8fe1-e0ec7b322b30n%40googlegroups.com.


I'm trying to script the Save Document command

2022-05-07 Thread David Barto


What I've got will run to the first 'asecho ' command and not reach the 
second.

What I'd like to do is create a backup of any file being edited on my local 
host even if it is a remote document. I'm quite sure that the fault is in 
my script and not in BBEdit. I searched the archives here and found nothing 
related to this problem.

Anyone smarter about AppleScript (and almost everyone here would fit that 
statement) care to point out the error of my ways?

Thanks

   David

-- text document doc

*on* documentDidSave(doc)

   -- do shell script "~/asecho 1 running"

   *set* fromFTP *to* doc *is* FTP

   -- do shell script "~/asecho 2 post fromFTP"

   *if* fromFTP *then*

   -- set path to URL of doc

   *set* _ftpinfo *to* FTPInfo *of* doc

   *set* _path *to* path *of* _ftpinfo

   *set* _host *to* host *of* _ftpinfo

   *do shell script* "~/asecho 3 " & quoted form *of* _host

   *set* u *to* *URL* *of* doc

   *do shell script* "~/asecho 4 " & u

   *set* p *to* POSIX path *of* _path

   *do shell script* "~/UnixEnvironment/src/script/backuptext " & p

   *else*

   *set* f *to* *file* *of* doc

   *set* p *to* POSIX path *of* f

   *do shell script* "~/UnixEnvironment/src/script/backuptext " & p

   *end* *if*

*end* documentDidSave

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/0b46247e-73d9-4101-9ad7-b916b4f1fe49n%40googlegroups.com.


Re: Supress warning for documents open on multiple machines

2022-03-19 Thread David Donachie
> 
> Here is the relevant notation from the 14.1 change notes (where this was 
> introduced):
> 
> ```
> * Projects and notebooks now include a mechanism to guard against 
> unintentional simultaneous use from multiple computers.
> ```
> 
> Specifically, having the same BBEdit project document (or notebook) open 
> simultaneously on multiple Macs (via Dropbox, iCloud Drive, or other) is a 
> recipe for disaster.
> 
> The individual files can certainly be accessed (with the usual caveats), but 
> the project itself is now guarded to prevent this, as noted.

Thanks for pointing that out. Do you know what the possible “disaster” is? In 
all the time of using projects via Dropbpx I’ve never had the slightest issue.

David

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/0100017fa3986954-8195fb43-b095-4e35-9837-7f29d3dc7c2c-00%40email.amazonses.com.


Re: Supress warning for documents open on multiple machines

2022-03-19 Thread David Donachie
I have to paraphrase, since I'm not in a place to see it right now, but it's 
along the lines of "File X is open in another copy of BBEdit, perhaps through 
Dropbox, and must only be open in one at a time."

David

> On 19 Mar 2022, at 16:07, Rich Siegel  wrote:
> 
> On 19 Mar 2022, at 12:06, David Donachie wrote:
> 
>> I keep many text files on Dropbpx, and generally have some of them open in
>> BBEdit on multiple machines at once. I've been doing this for many years,
>> and it's never been an issue, but since I upgraded to 14.1.1 I get a
>> warning about these files every time I open BBEdit.
> 
> What's the warning?
> 
> R.
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: 
> <https://twitter.com/bbedit>
> --- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "BBEdit Talk" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/bbedit/87TF9nnGP2c/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/BC3F17F0-4839-4BA1-A929-5CB066A0B5D7%40barebones.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/0100017fa2f15bd0-ad0c074b-6022-46dc-ba25-60ff070a84dc-00%40email.amazonses.com.


Supress warning for documents open on multiple machines

2022-03-19 Thread David Donachie
Hi all

I keep many text files on Dropbpx, and generally have some of them open in 
BBEdit on multiple machines at once. I've been doing this for many years, 
and it's never been an issue, but since I upgraded to 14.1.1 I get a 
warning about these files every time I open BBEdit.

I can keep the documents open, and it works fine, so I'm wondering if 
there's a way I can just turn this warning off? I couldn't see anything in 
Expert Settings, but I'm hoping I just missed something.

Yours
David

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/629c5856-a075-4c24-89d7-78d684ff218en%40googlegroups.com.


Re: Tag conversion to a new format

2022-02-23 Thread David G Wagner
When you state header, this implies that there is more data than what you 
present. Could you provide a small selection of what the data file actually 
looks like? ;)

Wags ;)
WagsWorld
Hebrews 4:15
Ph(primary) : 408-914-1341
Ph(secondary): 408-761-7391
On Feb 22, 2022, 17:04 -0800, lux , wrote:
> Hello everyone,
>
> I got a huge number of posts from an old static blog. Inside the header 
> there's a "tags" line, made this way:
>
> tags: Steve Jobs, Steve Throughton-Smith, T'Bone, Better to Be a Pirate Than 
> Join the Navy, Ben & Jerry, NBA75
>
> The actual number of tags in the line can be any. Comma act as a delimiter 
> and, after that, any character can be used inside a tag, spaces included.
>
> I can choose between two possible destination new formats. The first and 
> preferred one is:
>
> tags:
> - Steve Jobs
> - Steve Throughton-Smith
> - T'Bone
> - (et cetera)
>
> The second format is:
>
> tags: ["Steve Jobs", "Steve Throughton-Smith", "T'Bone", "and so on"]
>
> Can anyone help me getting at least one of the two conversions right?
>
> Many thanks in advance.
>
> lux
> --
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: 
> 
> ---
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/82bdf83e-e068-4d56-a7db-5fc6819c9c9fn%40googlegroups.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/e5133710-60c3-4e96-a7ca-6197915bc9f7%40Spark.


Re: Using GREP, need help to extract names and numbers from column

2022-02-10 Thread David G Wagner
I took the data and tried this:

([a-z]\.)([a-z]+)\s+\(([^\)]+)\)(\s*(and){0,1}\s*)

Replace as

\1\2\t\3\n

You stated an extra column needed, so used \t (tab inserted). This did your 
test data in one pass.

Wags ;)
WagsWorld
Hebrews 4:15
Ph(primary) : 408-914-1341
Ph(secondary): 408-761-7391
On Feb 9, 2022, 13:42 -0800, Howard , wrote:
> I have a column with data like this, where each name contains just the first 
> initial, a period, and the last name:
>
> D.Green (59-72) and B.Valentine (12-19)
> D.Green (69-75)
> D.Green (55-58)
> J.Torborg (13-25) and D.Green (46-78)
> J.Torborg (72-90)
> B.Harrelson (74-80) and M.Cubbage (3-4)
> D.Johnson (20-22) and B.Harrelson (71-49)
> D.Johnson (87-75)
>
> Some rows have one name and a pair of numbers in parentheses separated by a 
> dash, and some rows have two names, each followed by a pair of numbers in 
> parentheses separated by a dash.
>
> In each row, I can extract the first name (both the initial and the last 
> name) and put a space between them using `^([A-Z]\.)([A-z,a-z]+)` and `\1 \2`
> with all results appearing in their own column.
>
> What I need help to do is this:
> 1. Using GREP, I need to extract the numbers in parentheses after the first 
> names and put them in their own column without parentheses.
> 59-72
> 69-75
> 55-58 etc.
>
> 2. In those rows with a second name, using GREP I need to extract the second 
> names and put them in their own column, so they look like this:
> B. Valentine
> D. Green
> M. Cubbage
> B. Harrelson
>
> I also need to extract the numbers in parentheses after the second names, but 
> believe that I can figure out how to do that from the answer to #1 above.
>
> Thanks,
> Howard
> --
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: 
> 
> ---
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/e3034738-5b73-4c3b-a016-7a88615d5f54n%40googlegroups.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/a5742e3c-daa6-431e-a56f-52f7188b38c2%40Spark.


Re: [ OFFLIST ] Need to increment a counter for chapter count

2022-01-07 Thread David G Wagner
Correct. That does work. But what if it could be either start or Start. In what 
you have, what would you have to change for either of those cases?

Wags ;)
WagsWorld
Hebrews 4:15
Ph(primary) : 408-914-1341
Ph(secondary): 408-761-7391
On Jan 7, 2022, 15:39 -0800, bbedit@googlegroups.com, wrote:
>
> #!/usr/bin/env perl
>
> my $incr = 1;
> local $/ = "#Start#\n";
>
> while (<>) {
> s/^1/$incr++/es;
> print;
> }

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/c6413eac-2d31-4c13-88a5-bc500fdc80a1%40Spark.


Re: [ OFFLIST ] Need to increment a counter for chapter count

2022-01-07 Thread David G Wagner
 And to Adam he said,
 Because you have listened to the voice of your wife
and have eaten of the tree
of which I commanded you,
 You shall not eat of it,
cursed is the ground because of you;
in pain you shall eat of it all the days of your life;
18 thorns and thistles it shall bring forth for you;
and you shall eat the plants of the field.
19 By the sweat of your face
you shall eat bread,
till you return to the ground,
for out of it you were taken;
for you are dust,
and to dust you shall return.
20 The man called his wife's name Eve, because she was the mother of all 
living. 21 And the LORD God made for Adam and for his wife garments of skins 
and clothed them.
22 Then the LORD God said, Behold, the man has become like one of us in knowing 
good and evil. Now, lest he reach out his hand and take also of the tree of 
life and eat, and live forever 23 therefore the LORD God sent him out from the 
garden of Eden to work the ground from which he was taken. 24 He drove out the 
man, and at the east of the garden of Eden he placed the cherubim and a flaming 
sword that turned every way to guard the way to the tree of life.
#EndOfGen#
All data above this line

Wags ;)
WagsWorld
Hebrews 4:15
Ph(primary) : 408-914-1341
Ph(secondary): 408-761-7391
On Jan 7, 2022, 04:27 -0800, Media Mouth , wrote:
> Hi JJ,
>
> Great to see someone using JXA
> I've been using AppleScript forever and have never found a reliable, 
> authoritative reference for how to write for the JavaScript version other 
> than just googling around for examples.
> Frankly even finding good resources for regular AppleScript has been a 
> challenge. I've never been able to make much use of the Dictionaries.
>
> Any ideas how to learn more about both?
>
> > On Jan 7, 2022, at 2:13 AM, jj  wrote:
> >
> > Hi David,
> >
> > Here is another option with Javascript for automation this time.
> >
>
> --
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: 
> <https://twitter.com/bbedit>
> ---
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/3F6E16F4-0A2F-4A54-AEB6-33EFEDE0CC72%40gmail.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/2c7f53ea-cef3-452c-acc0-fd77118e84a1%40Spark.


Re: [ OFFLIST ] Re: Need to increment a counter for chapter count

2022-01-06 Thread David G Wagner
Chris S, I tried your script, but nothing appears to happen. No changes.

I made mods to your code. I was not as clear as I should have been on 
explanation desired results.

What I am working on is 50 chapters which are of the format:
#start#
1 xx
2 xxx
….
n xxx
#endofGen#
What I am trying to do is after I find a start, then the next line should be a 
1 and text. I want to change that 1 to whatever the current chapter number it 
should be. All the chapters ar in order. Example for 20 chapter, the output 
would look like:

#start#
20 xx
2 xxx
….
n xxx
#endofGen#

That line starting with a 1 and following a start is the only change desired.

I am on MacOS 10.15.7 and the very latest BBEdit 14.0.5. The Perl I  am 
executing is 5.28.2.

I get no errors when I run the the filter.

Here is what I have as a script after my minor changes:

my $cntr = 0;
my $ChgSw = 0;
while (<>) {
    if ( /^#Start#/i ) {
        $cntr++;
        $ChgSw = 1;
     }
    if ( $ChgSw ) {
        if ( /^1\h/ ) {
            s!^1!$cntr!;
         }
        $ChgSw = 0;
     }
    print;
}

Sorry for delay in getting back to you. I truly appreciate the insight from 
what I see in the scripts and the way they work with BBEdit.

Wags ;)
WagsWorld
Hebrews 4:15
Ph(primary) : 408-914-1341
Ph(secondary): 408-761-7391
On Jan 6, 2022, 04:56 -0800, Christopher Stone , 
wrote:
> Hey Chris,
>
> This fails on my Mojave system with the stock `awk`.
>
>
> #Start#Start#Start#
> 2 In the beginning, God created the heavens and
> Xxccx
> #Start#EndOfGen#Start#
> #Start#Start#Start#
> 6 Thus the heavens and the earth were finished,
> Xxxx
> #Start#EndOfGen#Start#
> #Start#Start#Start#
> 10 Now the serpent was more crafty than any other beast of the field that the 
> LORD God had made.
> Xxx
> #Start#EndOfGen#Start#
>
>
> It works if I use the current version of `gawk`.
>
> It looks like David has an older version of macOS as well.
>
> --
> Take Care,
> Chris
>
>
> > On Jan 05, 2022, at 21:52, Christopher Waterman  
> > wrote:
> >
> > Sorry David,
> >
> > I did make a mistake but the output you're getting still confuses me.
> > All my chapter numbers were off by one, but that was it.
> >
> > Anyway here is the fixed script. ( I think 爛)
> >
> > I provided an example of my input and output, also a screenshot.
> > Be sure to copy the script exactly.
> >
> > #!/usr/bin/env awk -f
> >
> > BEGIN {
> > RS = "#Start#"
> > ORS = ""
> > FS = "\n"
> > OFS = "\n"
> > }
> >
> > {
> > sub( /[0-9]+/, NR-1 , $2 )
> > }
> >
> > NR != 1 {
> > print "#Start#" $0
> > }
> >
> > Input:
> > #Start#
> > 1 In the beginning, God created the heavens and
> > Xxccx
> > #EndOfGen#
> > #Start#
> > 1 Thus the heavens and the earth were finished,
> > Xxxx
> > #EndOfGen#
> > #Start#
> > 1 Now the serpent was more crafty than any other beast of the field that 
> > the LORD God had made.
> > Xxx
> > #EndOfGen#
>
> --
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: 
> <https://twitter.com/bbedit>
> ---
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/18DA528B-9E6C-4B84-BAD4-1462489AB0ED%40gmail.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/f7c8ebd0-5f52-490b-95df-7500b9b6f958%40Spark.


Re: Need to increment a counter for chapter count

2022-01-06 Thread David G Wagner
Well, not sure what is going on. Here is the three chapters of data after I run 
the corrected Text Filter. Before I executed your script, I executed Mormdliz 
line endings to just make sure though I am only working on an Mac or related 
Apple items.

I was going to send you the actual three chapters, but it will go to the whole 
group which I think is too much data.

If you want to send email to wagsworl...@yahoo.com and I will send you two txt 
files with input and the output I get from executing the script.  If not, that 
is done and will it work it out differently.

Again thanks for your time and effort to help. It is much appreciated...

Wags ;)
WagsWorld
Hebrews 4:15
Ph(primary) : 408-914-1341
Ph(secondary): 408-761-7391
On Jan 5, 2022, 19:52 -0800, Christopher Waterman , 
wrote:
> Sorry David,
>
> I did make a mistake but the output you're getting still confuses me.
> All my chapter numbers were off by one, but that was it.
>
> Anyway here is the fixed script. ( I think 爛)
>
> I provided an example of my input and output, also a screenshot.
> Be sure to copy the script exactly.
>
> #!/usr/bin/env awk -f
>
> BEGIN {
>   RS = "#Start#"
>   ORS = ""
>   FS = "\n"
>   OFS = "\n"
> }
>
> {
>   sub( /[0-9]+/, NR-1 , $2 )
> }
>
> NR != 1 {
>   print "#Start#" $0
> }
>
> Input:
> #Start#
> 1 In the beginning, God created the heavens and
> Xxccx
> #EndOfGen#
> #Start#
> 1 Thus the heavens and the earth were finished,
> Xxxx
> #EndOfGen#
> #Start#
> 1 Now the serpent was more crafty than any other beast of the field that the 
> LORD God had made.
> Xxx
> #EndOfGen#
>
> Output:
> #Start#
> 1 In the beginning, God created the heavens and
> Xxccx
> #EndOfGen#
> #Start#
> 2 Thus the heavens and the earth were finished,
> Xxxx
> #EndOfGen#
> #Start#
> 3 Now the serpent was more crafty than any other beast of the field that the 
> LORD God had made.
> Xxx
> #EndOfGen#
>
> Here is a screenshot of the results.
> 
>
>
> — Chris(topher)?
>
>
>
> > On Jan 5, 2022, at 6:34 PM, David G Wagner  wrote:
> >
> > Thank, Chris but did not do as desired.
> >
> > Here is the output received(cutdown from my extended data test):
> >
> > #Start##Start#start#Start#
> > 3 In the beginning, God created the heavens and the
> > #Start#EndOfGen#Start#
> > #Start#Start#Start#
> > 7 Thus the heavens and the earth were finished, and #Start#EndOfGen#Start#
> > #Start#Start#Start#
> > 11 Now the serpent was more crafty than any other #Start#EndOfGen#Start#
> >
> > Desired out:
> >
> > #Start#
> > 1 In the beginning, God created the heavens and the
> > #EndOfGen#
> > #Start#
> > 2 Thus the heavens and the earth were finished, and #EndOfGen#
> > #Start#
> > 3 Now the serpent was more crafty than any other
> > #EndOfGen#
> >
> > What each start and end is a chapter. In the data. You Have the start and 
> > then 1. What I want to do is replace the 1 with the current chapter number. 
> > First hit is Chapter 1. The fifth would be Chapter 5, etc.
> >
> > Thoughts???
> >
> > Wags ;)
> > WagsWorld
> > Hebrews 4:15
> > Ph(primary) : 408-914-1341
> > Ph(secondary): 408-761-7391
> > On Jan 5, 2022, 18:01 -0800, bbedit@googlegroups.com, wrote:
> > >
> > > #!/usr/bin/env awk -f
> > >
> > > BEGIN {
> > > RS = "#Start#"
> > > ORS = ""
> > > FS = "\n"
> > > OFS = "\n"
> > > }
> > >
> > > {
> > > sub( /[0-9]+/, NR , $2 )
> > > print "#Start#" $0
> > > }
> >
> > --
> > This is the BBEdit Talk public discussion group. If you have a feature 
> > request or need technical support, please email "supp...@barebones.com" 
> > rather than posting here. Follow @bbedit on Twitter: 
> > <https://twitter.com/bbedit>
> > ---
> > You received this message because you are subscribed to the Google Groups 
> > "BBEdit Talk" group.
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email to bbedit+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit 
> > https://groups.google.com/d/msgid/bbedit/9934c9ba-53d0-4701-8e4f-c29fb2d94941%40Spark.
>
> --
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than postin

Re: Need to increment a counter for chapter count

2022-01-05 Thread David G Wagner
Thank, Chris but did not do as desired.

Here is the output received(cutdown from my extended data test):

#Start##Start#start#Start#
3 In the beginning, God created the heavens and the
#Start#EndOfGen#Start#
#Start#Start#Start#
7 Thus the heavens and the earth were finished, and #Start#EndOfGen#Start#
#Start#Start#Start#
11 Now the serpent was more crafty than any other #Start#EndOfGen#Start#

Desired out:

#Start#
1 In the beginning, God created the heavens and the
#EndOfGen#
#Start#
2 Thus the heavens and the earth were finished, and #EndOfGen#
#Start#
3 Now the serpent was more crafty than any other
#EndOfGen#

What each start and end is a chapter. In the data. You Have the start and then 
1. What I want to do is replace the 1 with the current chapter number. First 
hit is Chapter 1. The fifth would be Chapter 5, etc.

Thoughts???

Wags ;)
WagsWorld
Hebrews 4:15
Ph(primary) : 408-914-1341
Ph(secondary): 408-761-7391
On Jan 5, 2022, 18:01 -0800, bbedit@googlegroups.com, wrote:
>
> #!/usr/bin/env awk -f
>
> BEGIN {
> RS = "#Start#"
> ORS = ""
> FS = "\n"
> OFS = "\n"
> }
>
> {
> sub( /[0-9]+/, NR , $2 )
> print "#Start#" $0
> }

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/9934c9ba-53d0-4701-8e4f-c29fb2d94941%40Spark.


Need to increment a counter for chapter count

2022-01-05 Thread David G Wagner
I have the following data:

#Start#
1 In the beginning, God created the heavens and
Xxccx
#EndOfGen#
#Start#
1 Thus the heavens and the earth were finished,
Xxxx
#EndOfGen#
#Start#
1 Now the serpent was more crafty than any other beast of the field that the 
LORD God had made.
Xxx
#EndOfGen#
….

In this case, I have 50 sets of start and end groups. The output I want is:

#Start#
1 In the beginning, God created the heavens and
Xxccx
#EndOfGen#
#Start#
2 Thus the heavens and the earth were finished,
Xxxx
#EndOfGen#
#Start#
3 Now the serpent was more crafty than any other beast of the field that the 
LORD God had made.
Xxx
#EndOfGen#
…

What I am doing is placing the chapter count as the first number after the 
start.

I have data in one file and in one window. I could write a Perl script, but was 
wanting to handle within BBEdit via filter or ?

I see only one variable, that being the chapter count.

Thoughts would be appreciated.

Thanks…

Wags ;)
WagsWorld
Hebrews 4:15
Ph(primary) : 408-914-1341
Ph(secondary): 408-761-7391

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/5ab44bf1-95cd-4ca8-aa4c-d798f9d12deb%40Spark.


Re: BBEdit and Reminders app

2021-12-07 Thread David Kelly
On Dec 7, 2021, at 4:28 PM, Nestor Aguilera  wrote:

> For many years I have been using BBEdit for making lists of todos and 
> reminders in Mac. Now that I have an iPad, I wish I could have those notes 
> synched with it. Of course, Apple's Reminder.app could be used for that 
> purpose (via iCloud), but I wonder if there is another way of doing this, 
> perhaps with BBEdit on Mac and some other text editor on iPad.

Notes.app isn’t a great editor but it magically syncs between all your iCloud 
machines.

You could save the BBEdit file to iCloud/Documents then use the File app on 
iPad to read/edit (guessing it will use Pages.app) on the iPad but that’s a bit 
clumsy.

--
David Kelly N4HHE, dke...@hiwaay.net

Whom computers would destroy, they must first drive mad.


-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/C71644B4-F444-454E-8C56-23C68B731C62%40hiwaay.net.


Re: Need easy way to make first letter of each line upper case

2021-10-29 Thread David G Wagner
You replace the ^ + with ^\s+ which would handle both spaces and tabs if there… 
;)

Wags ;)
WagsWorld
Hebrews 4:15
Ph(primary) : 408-914-1341
Ph(secondary): 408-761-7391
On Oct 29, 2021, 04:03 -0700, Satomi Yoneki , wrote:
>
> > I meant the number of the line, as in the numbers in the left hand column.
> Those numbers are Line Numbers.
> > The lines typically look like this: "so, it was" Or, " so, it
> > was"  Which is something else I'd like to have a Grep for:
> > removing spaces at the beginning of all lines.
> Please try this.
> Find: "^ +", which will search for one or more space characters at the
> beginning of each line.
> Replace: "" (empty)
>
> If this does not delete spaces, maybe the text contains other invisible
> characters.
> You can select them and see what they are with Window > Palettes >
> Character Inspecter.
>
>
> --
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: 
> 
> ---
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/95570f34-7dbe-f346-2bdf-86ed65dec6b8%40gmail.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/bcc1c2a0-c660-4954-8047-0896d43f5a4c%40Spark.


Re: Cleaning up soft returns in database field content

2021-09-24 Thread David Kelly


On Sep 24, 2021, at 2:33 PM, Chris  wrote:

> Have you tried the command Text: Zap Gremlins ?

But would one really wish to destroy soft returns in a data field? Presumably 
somebody put them there for a reason? And the question arises because the 
intake database isn’t recognizing them as soft returns?

When transposing data from one database to another using text as an 
intermediary I don’t know enough about his process to know whether the hard 
returns (which he likes) are record separators or field separators. The soft 
returns would seem to be inside fields. So I’d say global search/replace with 
whatever the intake database recognizes as a soft return. Might not accept soft 
returns inside a field.

--
David Kelly N4HHE, dke...@hiwaay.net

Whom computers would destroy, they must first drive mad.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/255B9EB4-CC1A-4C3D-8AFA-D16478AB2491%40hiwaay.net.


Re: Code Modules — A BBEdit-based Approach to Advanced Includes for Websites

2021-09-15 Thread David Donachie


> On 15 Sep 2021, at 06:29, Jan Erik Moström  wrote:
> 
> On 7 Sep 2021, at 23:56, Christopher Werby wrote:
> 
>> Announcing the release of Code Modules
> 
> I'm quite impressed with what you have done here. Just to make sure I've 
> understood things correctly: this is a tool for creating web sites but not 
> for web sites with a blog?
> 
> = jem

That probably depends how committed you are to a static/DB-less site. Long ago, 
before DBs were available, I had a blog that stored entries as text files, but 
I wouldn’t advise it now, the security risks are scary! :)

David

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/0100017be864a408-918c9e01-3dde-467a-af1c-948080899def-00%40email.amazonses.com.


Re: Is this the best workflow to merge?

2021-08-25 Thread David G Wagner
Oh, there is, but we would need someone with Applescript knowledge which could 
take a folder of files, have a new folder made to hold all the concatenated 
files until you are sure they are correct. They should be able to find all 
files of similar naming convention, concat the files, provide a simple report 
of the new files, write them to the new folder(could write to fame folder, but 
to me, would be easier review.

So, yes, it can be done with a script...

Wags ;)
WagsWorld
Hebrews 4:15
Ph(primary) : 408-914-1341
Ph(secondary): 408-761-7391
On Aug 25, 2021, 15:15 -0700, David J , wrote:
> Hi Harvey and Jean,
>
> Jean, I tried your method and it's really great that I can insert files like 
> that. I had no idea. What (it seems) I then have to do is go back to Finder 
> and get the file name so I can save the merged files with the file name as 
> the title. Where it starts to literally hurt is I have to do this thousands 
> of times because the one folder has thousands of files that need to be 
> merged, all with slightly different file names like:
>
> Highlights for Zen and the Art of Motorcycle Maintenance by Robert M. Pirsig 
> 3.md
> Highlights for Zen and the Art of Motorcycle Maintenance by Robert M. Pirsig 
> 4.md
> Highlights for Zen and the Art of Motorcycle Maintenance by Robert M. Pirsig 
> 5.md
> Highlights for Zen and the Art of Motorcycle Maintenance by Robert M. Pirsig 
> 6.md
> Highlights for Zen and the Art of Motorcycle Maintenance by Robert M. 
> Pirsig.md  <- hoping for end result of 3-6 merged like so into one 
> file with that title. Same for all files in the same directory with similar 
> names like below:
>
> Highlights for Zero History by William Gibson(1).md
> Highlights for Zero History by William Gibson(2).md
> Highlights for Zero History by William Gibson.md
>
> Highlights for The Hitchhiker's Guide to the Galaxy by Douglas Adams(1).md
> Highlights for The Hitchhiker's Guide to the Galaxy by Douglas Adams(2).md
> Highlights for The Hitchhiker's Guide to the Galaxy by Douglas Adams.md
>
> Journal John's bday (1)
> Journal John's bday
>
> Random thought jan 7 (1)
> Random thought jan 7 (2)
> Random thought jan 7 (3)
> Random thought jan 7
>
> The shell script is a little out of my knowledge, I'll do a little more 
> reading. Was advised to also try:
>
> "You can do this by putting the files in a folder and using cat *.md 
> >>../somefilename.md should concatenate them to a new file one level up."
>
> But seeing how the files are varied and slightly different like the above 
> directory example. Using  *.md >>../somefilename.md   would merge 
> everything into one file name? Was hoping there's some way to merge 
> everything in the folder with similar files names into there similar file 
> names.
>
> I'm trying to get my elderly father much of my thoughts, highlights, journals 
> while he's still around so I do appreciate the help 
>
> > On Wednesday, August 25, 2021 at 1:21:16 PM UTC-7 jj wrote:
> > > Hi David,
> > >
> > > 1. Create a new empty document.
> > > 2. Then choose Menu Edit > Insert > File Contents ...
> > > 3. In the presented dialog click the bottom right "Options" button and 
> > > check which options you want.
> > >     [ ] Include separators
> > >     [√] Ensure line break after each inserted file  (Highly recommended)
> > > 4. Select the files you want to insert.
> > > 5. Click insert and you are done.
> > > You can repeat the operation if needed.
> > > HTH
> > >
> > > Jean Jourdain
> > > > On Wednesday, August 25, 2021 at 9:40:06 PM UTC+2 Harvey Pikelberger 
> > > > wrote:
> > > > > What about a simple shell script?
> > > > >
> > > > > cat file1 file2 file3 > newfile
> > > > >
> > > > > > On Aug 25, 2021, at 12:17, David J  wrote:
> > > > > >
> > > > > > Hello,
> > > > > >
> > > > > >
> > > > > > I have thousands of Markdown files in the same folder  I'm trying 
> > > > > > to merge so my elderly father can read them. File names are like 
> > > > > > samefilename (1), samefilename (2), samefilename (3).
> > > > > > I"ve been dragging and dropping all the samefilename.md (1, 2, 3, 
> > > > > > etc) into one bbedit tab. Then typing in samefilename.txt and 
> > > > > > saving it as one text. It's still quite time-consuming with 
> > > > > > thousands of files that are split up into threes, fours, etc in one 
> &g

Re: Is this the best workflow to merge?

2021-08-25 Thread David J
Hi Harvey and Jean, 

Jean, I tried your method and it's really great that I can insert files 
like that. I had no idea. What (it seems) I then have to do is go back to 
Finder and get the file name so I can save the merged files with the file 
name as the title. Where it starts to literally hurt is I have to do this 
thousands of times because* the one folder has thousands of files that need 
to be merged, all with slightly different file names like:*

Highlights for Zen and the Art of Motorcycle Maintenance by Robert M. 
Pirsig 3.md
Highlights for Zen and the Art of Motorcycle Maintenance by Robert M. 
Pirsig 4.md
Highlights for Zen and the Art of Motorcycle Maintenance by Robert M. 
Pirsig 5.md
Highlights for Zen and the Art of Motorcycle Maintenance by Robert M. 
Pirsig 6.md
Highlights for Zen and the Art of Motorcycle Maintenance by Robert M. 
Pirsig.md * <- hoping for end result of 3-6 merged like so into one 
file with that title. Same for all files in the same directory with similar 
names like below:*

Highlights for Zero History by William Gibson(1).md
Highlights for Zero History by William Gibson(2).md
Highlights for Zero History by William Gibson.md

Highlights for The Hitchhiker's Guide to the Galaxy by Douglas Adams(1).md
Highlights for The Hitchhiker's Guide to the Galaxy by Douglas Adams(2).md
Highlights for The Hitchhiker's Guide to the Galaxy by Douglas Adams.md

Journal John's bday (1)
Journal John's bday

Random thought jan 7 (1)
Random thought jan 7 (2)
Random thought jan 7 (3) 
Random thought jan 7

The shell script is a little out of my knowledge, I'll do a little more 
reading. Was advised to also try:

"You can do this by putting the files in a folder and using cat *.md 
>>../somefilename.md should concatenate them to a new file one level up."

But seeing how the files are varied and slightly different like the above 
directory example. Using  *.md >>../somefilename.md   would merge 
everything into one file name? 
*Was hoping there's some way to merge everything in the folder with similar 
files names into there similar file names. *

I'm trying to get my elderly father much of my thoughts, highlights, 
journals while he's still around so I do appreciate the help 

On Wednesday, August 25, 2021 at 1:21:16 PM UTC-7 jj wrote:

> Hi David,
>
> 1. Create a new empty document.
>
> 2. Then choose Menu Edit > Insert > File Contents ...
>
> 3. In the presented dialog click the bottom right "Options" button and 
> check which options you want.
>
> [ ] Include separators
>
> [√] Ensure line break after each inserted file  (Highly recommended)
>
> 4. Select the files you want to insert.
>
> 5. Click insert and you are done.
>
> You can repeat the operation if needed.
> HTH
>
> Jean Jourdain
> On Wednesday, August 25, 2021 at 9:40:06 PM UTC+2 Harvey Pikelberger wrote:
>
>> What about a simple shell script?
>>
>> cat file1 file2 file3 > newfile
>>
>>
>> On Aug 25, 2021, at 12:17, David J  wrote:
>>
>> Hello,
>>
>>
>>
>> I have thousands of Markdown files in the same folder  I'm trying to 
>> merge so my elderly father can read them. File names are like samefilename 
>> (1), samefilename (2), samefilename (3).
>> I"ve been dragging and dropping all the samefilename.md (1, 2, 3, etc) 
>> into one bbedit tab. Then typing in samefilename.txt and saving it as one 
>> text. It's still quite time-consuming with thousands of files that are 
>> split up into threes, fours, etc in one folder.
>> Is there a better way of doing this? Possible to select: samefilename 
>> (1), samefilename (2), samefilename (3)  in Finder, merge and save as 
>> Samefilename.txt back to Finder? Seems like something terminal/bbedit could 
>> do? 
>>
>> With respect, David
>>
>>
>> -- 
>> This is the BBEdit Talk public discussion group. If you have a feature 
>> request or need technical support, please email "sup...@barebones.com" 
>> rather than posting here. Follow @bbedit on Twitter: <
>> https://twitter.com/bbedit>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "BBEdit Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to bbedit+un...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/bbedit/4e725ba2-bbc5-408f-8342-1c356fec843cn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/bbedit/4e725ba2-bbc5-408f-8342-1c356fec843cn%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>>

-- 
This is the BBEdit Talk public discussion group.

Is this the best workflow to merge?

2021-08-25 Thread David J
Hello,

I have thousands of Markdown files in the same folder  I'm trying to merge 
so my elderly father can read them. File names are like samefilename (1), 
samefilename (2), samefilename (3).
I"ve been dragging and dropping all the samefilename.md (1, 2, 3, etc) into 
one bbedit tab. Then typing in samefilename.txt and saving it as one text. 
It's still quite time-consuming with thousands of files that are split up 
into threes, fours, etc in one folder.
Is there a better way of doing this? Possible to select: samefilename (1), 
samefilename (2), samefilename (3)  in Finder, merge and save as 
Samefilename.txt back to Finder? Seems like something terminal/bbedit could 
do? 

With respect, David


-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/4e725ba2-bbc5-408f-8342-1c356fec843cn%40googlegroups.com.


Re: How to format this text so it expands and fits page width?

2021-08-25 Thread David J
Thanks, I've been trying to clean up text for my elderly father to read,  
old journal entries, highlights and whatnot. This is really helpful.

I have one more question I'll ask in another thread and then try to figure 
out more on my own for a while.

On Tuesday, August 24, 2021 at 6:32:23 PM UTC-7 listmei...@gmail.com wrote:

> On Aug 24, 2021, at 10:39, David J  wrote:
>
>
> Oh, one last thing. Is there a save all command available after doing this?
>
> --
>
> Hey David,
>
> AppleScript can do many things...
>
> 
> # Auth: Christopher Stone
> # dCre: 2021/08/22 16:43
> # dMod: 2021/08/24 20:30
> # Appl: BBEdit
> # Task: Remove Line Breaks from Text Documents of Project Window 1.
> # : Then Hard Wrap to the Given Length.
> # : Then save each document.
> # Libs: None
> # Osax: None
> # Tags: @Applescript, @Script, @BBEdit, @Remove, @Line, @Breaks, @Project, 
> @Window
> 
> *property* hardWrapWidth : 70
> 
>
> *tell* *application* "BBEdit"
>
> 
> *set* docList *to* *text documents* *of* *project window* 1
>
> 
> *repeat* *with* theDoc *in* docList
> *tell* theDoc
> *tell* *its* *text*
> *remove line breaks*
> *hard wrap* width hardWrapWidth
> *end* *tell*
> *save*
> *end* *tell*
> *end* *repeat*
>
> 
> *end* *tell*
>
> 
>
>
> --
> Best Regards,
> Chris
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/ba64af8a-4ea3-4eed-9790-6c59c8ae70f0n%40googlegroups.com.


Re: How to format this text so it expands and fits page width?

2021-08-24 Thread David J
I figured it out. Selected all that are open and was able to save them. 
Thanks again!

On Tuesday, August 24, 2021 at 8:39:55 AM UTC-7 David J wrote:

> Oh, one last thing. Is there a save all command available after doing 
> this? I read the manual and saw:
>
>  "Here's a new (dynamic) command on the File menu: "Save All in Window". 
> The factory default keyboard equivalent is Command-Option-Shift-S. This is 
> enabled if any (or the only) document in the front window has unsaved 
> changes; choosing it will save all documents in the front window." 
>
> That dynamic command doesn't show up after I run the script. The keyboard 
> shortcut doesn't seem to be saving all open files either. Hmmm. Thanks for 
> any pointers.
>
> On Tuesday, August 24, 2021 at 8:25:13 AM UTC-7 David J wrote:
>
>> This worked well to clean it up. Now I can read these at a proper width. 
>> Thank you!
>>
>> On Monday, August 23, 2021 at 10:28:34 AM UTC-7 listmei...@gmail.com 
>> wrote:
>>
>>> On Aug 22, 2021, at 22:58, David J  wrote:
>>>
>>> Since the end goal was to get the text so I could hard wrap it by 
>>> removing all line breaks first. Is there any easy way to add an additional 
>>> hard wrap on all open documents to the above script?
>>>
>>> --
>>>
>>> Hey David,
>>>
>>> Sure.
>>>
>>> 
>>> # Auth: Christopher Stone
>>> # dCre: 2021/08/22 16:43
>>> # dMod: 2021/08/23 12:27
>>> # Appl: BBEdit
>>> # Task: Remove Line Breaks from Text Documents of Project Window 1.
>>> # : Then Hard Wrap to the Given Length.
>>> # Libs: None
>>> # Osax: None
>>> # Tags: @Applescript, @Script, @BBEdit, @Remove, @Line, @Breaks, 
>>> @Project, @Window
>>> 
>>> *property* hardWrapWidth : 70
>>> 
>>>
>>> *tell* *application* "BBEdit"
>>>
>>> 
>>> *set* docList *to* *text documents* *of* *project window* 1
>>>
>>> 
>>> *repeat* *with* theDoc *in* docList
>>> *tell* theDoc's *text*
>>> *remove line breaks*
>>> *hard wrap* width hardWrapWidth
>>> *end* *tell*
>>> *end* *repeat*
>>>
>>> 
>>> *end* *tell*
>>>
>>> 
>>>
>>>
>>> --
>>> Best Regards,
>>> Chris
>>>
>>>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/bd308796-5548-4d71-ac21-c47d130e701fn%40googlegroups.com.


Re: How to format this text so it expands and fits page width?

2021-08-24 Thread David J
Oh, one last thing. Is there a save all command available after doing this? 
I read the manual and saw:

 "Here's a new (dynamic) command on the File menu: "Save All in Window". 
The factory default keyboard equivalent is Command-Option-Shift-S. This is 
enabled if any (or the only) document in the front window has unsaved 
changes; choosing it will save all documents in the front window." 

That dynamic command doesn't show up after I run the script. The keyboard 
shortcut doesn't seem to be saving all open files either. Hmmm. Thanks for 
any pointers.

On Tuesday, August 24, 2021 at 8:25:13 AM UTC-7 David J wrote:

> This worked well to clean it up. Now I can read these at a proper width. 
> Thank you!
>
> On Monday, August 23, 2021 at 10:28:34 AM UTC-7 listmei...@gmail.com 
> wrote:
>
>> On Aug 22, 2021, at 22:58, David J  wrote:
>>
>> Since the end goal was to get the text so I could hard wrap it by 
>> removing all line breaks first. Is there any easy way to add an additional 
>> hard wrap on all open documents to the above script?
>>
>> --
>>
>> Hey David,
>>
>> Sure.
>>
>> 
>> # Auth: Christopher Stone
>> # dCre: 2021/08/22 16:43
>> # dMod: 2021/08/23 12:27
>> # Appl: BBEdit
>> # Task: Remove Line Breaks from Text Documents of Project Window 1.
>> # : Then Hard Wrap to the Given Length.
>> # Libs: None
>> # Osax: None
>> # Tags: @Applescript, @Script, @BBEdit, @Remove, @Line, @Breaks, 
>> @Project, @Window
>> 
>> *property* hardWrapWidth : 70
>> 
>>
>> *tell* *application* "BBEdit"
>>
>> 
>> *set* docList *to* *text documents* *of* *project window* 1
>>
>> 
>> *repeat* *with* theDoc *in* docList
>> *tell* theDoc's *text*
>> *remove line breaks*
>> *hard wrap* width hardWrapWidth
>> *end* *tell*
>> *end* *repeat*
>>
>> 
>> *end* *tell*
>>
>> 
>>
>>
>> --
>> Best Regards,
>> Chris
>>
>>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/9dcfdb5a-7917-45c0-9044-4436d57c7711n%40googlegroups.com.


Re: How to format this text so it expands and fits page width?

2021-08-24 Thread David J
This worked well to clean it up. Now I can read these at a proper width. 
Thank you!

On Monday, August 23, 2021 at 10:28:34 AM UTC-7 listmei...@gmail.com wrote:

> On Aug 22, 2021, at 22:58, David J  wrote:
>
> Since the end goal was to get the text so I could hard wrap it by removing 
> all line breaks first. Is there any easy way to add an additional hard wrap 
> on all open documents to the above script?
>
> ------
>
> Hey David,
>
> Sure.
>
> 
> # Auth: Christopher Stone
> # dCre: 2021/08/22 16:43
> # dMod: 2021/08/23 12:27
> # Appl: BBEdit
> # Task: Remove Line Breaks from Text Documents of Project Window 1.
> # : Then Hard Wrap to the Given Length.
> # Libs: None
> # Osax: None
> # Tags: @Applescript, @Script, @BBEdit, @Remove, @Line, @Breaks, @Project, 
> @Window
> 
> *property* hardWrapWidth : 70
> 
>
> *tell* *application* "BBEdit"
>
> 
> *set* docList *to* *text documents* *of* *project window* 1
>
> 
> *repeat* *with* theDoc *in* docList
> *tell* theDoc's *text*
> *remove line breaks*
> *hard wrap* width hardWrapWidth
> *end* *tell*
> *end* *repeat*
>
> 
> *end* *tell*
>
> 
>
>
> --
> Best Regards,
> Chris
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/2bad363e-e467-436b-805e-c043398edf3bn%40googlegroups.com.


Re: How to format this text so it expands and fits page width?

2021-08-22 Thread David J
Hi Chris, 

 Since the end goal was to get the text so I could hard wrap it by removing 
all line breaks first. Is there any easy way to add an additional hard wrap 
on all open documents to the above script? Or is it possible to alter it so 
I could run hard wrap on all open documents as a second operation? Well 
beyond my understanding so really appreciate what you whipped up there.

With respect, David
On Sunday, August 22, 2021 at 3:04:45 PM UTC-7 listmei...@gmail.com wrote:

> On Aug 21, 2021, at 20:07, David J  wrote:
>
>
> If I have multiple files open, can I remove line breaks from them all at 
> once? I've selected all open documents that are in the side tabs, but the 
> remove line breaks option is greyed out. 
>
> ------
>
> Hey David,
>
> You can do something like this:
>
> 
> # Auth: Christopher Stone
> # dCre: 2021/08/22 16:43
> # dMod: 2021/08/22 16:43 
> # Appl: BBEdit
> # Task: Remove Line Breaks from Text Documents of Project Window 1.
> # Libs: None
> # Osax: None
> # Tags: @Applescript, @Script, @BBEdit, @Remove, @Line, @Breaks, @Project, 
> @Window
> 
>
> *tell* *application* "BBEdit"
>
> 
> *set* docList *to* *text documents* *of* *project window* 1
>
> 
> *repeat* *with* theDoc *in* docList
> *tell* theDoc's *text* *to* *remove line breaks*
> *end* *repeat*
>
> 
> *end* *tell*
>
> 
>
> Note that this works only on documents open in the front project window.
>
> The script can be altered to operate on any open document.
>
> --
> Best Regards,
> Chris
>
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/fb00ffbc-7e6d-4f64-a893-5f4640937e67n%40googlegroups.com.


Re: How to format this text so it expands and fits page width?

2021-08-21 Thread David J
Quick additional questions:

If I have multiple files open, can I remove line breaks from them all at 
once? I've selected all open documents that are in the side tabs, but the 
remove line breaks option is greyed out. 

Is this something that I need to do some kind folder search/multi-file 
search and grep? They are all in the same folder.  I'm assuming the bulk 
edit operation to hard wrap text is similar to doing remove line breaks in 
bulk?

I've searched in the manual for bulk edit operation and the faq and I 
clearly must not know the correct wording for this. Thank you for any 
pointers

On Thursday, August 19, 2021 at 11:01:34 AM UTC-7 David J wrote:

> Oops, apparently learning Google groups too and sent a response to Rich 
> private. 
>
> "Better to keep this on the group. :-)
> Once it's unwrapped you can turn on Soft Wrap, or use Hard Wrap to reflow 
> it to a specific width."
>
> This worked, thanks!
>  
>
> On Thursday, August 19, 2021 at 10:18:00 AM UTC-7 sie...@barebones.com 
> wrote:
>
>> On 19 Aug 2021, at 13:16, David J wrote: 
>>
>> > Hello, 
>> > 
>> > I've got a bunch of files that were cleaned up so they are just text. 
>> The 
>> > text looks fine, except I can't for the life of me figure out how to 
>> get it 
>> > to fill up horizontal space so I can read them like a pdf/document. 
>> I've 
>> > played around with hard/soft wrap options for hours and the text still 
>> > stays in a skinny horizontal format. Can someone give me a pointer how 
>> to 
>> > reformat the text (in bulk) so it fits the page width? 
>>
>> "Remove Line Breaks" on the Text menu ought to do the job. 
>>
>> R. 
>>
>>
>> -- 
>> Rich Siegel Bare Bones Software, Inc. 
>>  <https://www.barebones.com/> 
>>
>> Someday I'll look back on all this and laugh... until they sedate me. 
>>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/49ab4cbf-a642-47e6-a0a9-3b7beead0a0bn%40googlegroups.com.


Re: How to move #tags up to line above and sort doc by tags?

2021-08-19 Thread David J
Hi Fletcher and Chris.

I tried both your methods and they both worked for placing the tags. Then I 
used the pattern to sort lines and that worked as well. That is just wild 
and awesome! 
I'd have sat here a year sorting that out myself. Thank you both.

On Thursday, August 19, 2021 at 2:31:01 PM UTC-7 listmei...@gmail.com wrote:

> On Aug 19, 2021, at 12:20, David J  wrote:
>
> I have a long text that I tagged, I'd like to move those tags up to the 
> end of the last line they are under:
>
> --
>
> Hey David,
>
> I'm thinking something like this:
>
> Find:
>
> \s+((?:#\w+\h*)+)
>
> Replace:
>
> “ \1”
>
> ** Without the quotes.
>
>
> --
> Best Regards,
> Chris
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/7257f047-2f8c-4263-941a-82068f1a0f19n%40googlegroups.com.


Re: How to format this text so it expands and fits page width?

2021-08-19 Thread David J
Oops, apparently learning Google groups too and sent a response to Rich 
private. 

"Better to keep this on the group. :-)
Once it's unwrapped you can turn on Soft Wrap, or use Hard Wrap to reflow 
it to a specific width."

This worked, thanks!
 

On Thursday, August 19, 2021 at 10:18:00 AM UTC-7 sie...@barebones.com 
wrote:

> On 19 Aug 2021, at 13:16, David J wrote:
>
> > Hello,
> >
> > I've got a bunch of files that were cleaned up so they are just text. The
> > text looks fine, except I can't for the life of me figure out how to get 
> it
> > to fill up horizontal space so I can read them like a pdf/document. I've
> > played around with hard/soft wrap options for hours and the text still
> > stays in a skinny horizontal format. Can someone give me a pointer how to
> > reformat the text (in bulk) so it fits the page width?
>
> "Remove Line Breaks" on the Text menu ought to do the job.
>
> R.
>
>
> -- 
> Rich Siegel Bare Bones Software, Inc.
>  <https://www.barebones.com/>
>
> Someday I'll look back on all this and laugh... until they sedate me.
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/51e288bd-6e08-48c3-9120-5a0f80f7378bn%40googlegroups.com.


How to move #tags up to line above and sort doc by tags?

2021-08-19 Thread David J
I have a long text that I tagged, I'd like to move those tags up to the end 
of the last line they are under:
*Original:*
"What another would have done as well as you, do not do it. What another 
would have said as well as you, do not say it; what another would have 
written as well, do not write it. Be faithful to that which exists nowhere 
but in yourself — and thus make yourself indispensable." - André Gide
#Curiosity


"It always makes me proud to love the world somehow- hate’s so easy 
compared." - Jack Kerouac

#Love 

"Your mind will answer most questions if you learn to relax and wait for 
the answer." - William S. Burroughs

#Questioning #Questions

*How I'm trying to get it:*

"What another would have done as well as you, do not do it. What another 
would have said as well as you, do not say it; what another would have 
written as well, do not write it. Be faithful to that which exists nowhere 
but in yourself — and thus make yourself indispensable." - André Gide 
#Curiosity


"It always makes me proud to love the world somehow- hate’s so easy 
compared." - Jack Kerouac #Love 

"Your mind will answer most questions if you learn to relax and wait for 
the answer." - William S. Burroughs  #Questioning #Questions

*Then is it possible to sort the doc by specific #tag names? *I've read 
through the manual, but this is way out of my area. Thanks






-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/e155477c-b867-4fd9-bf53-e119d33c5b1an%40googlegroups.com.


How to format this text so it expands and fits page width?

2021-08-19 Thread David J
Hello, 

I've got a bunch of files that were cleaned up so they are just text. The 
text looks fine, except I can't for the life of me figure out how to get it 
to fill up horizontal space so I can read them like a pdf/document. I've 
played around with hard/soft wrap options for hours and the text still 
stays in a skinny horizontal format. Can someone give me a pointer how to 
reformat the text (in bulk) so it fits the page width? 

looks like:  
you do it's a trap if you do go down the
path that's already laid for you it's
going to take you to all the
destinations that are already known it's
going to take you to all of the places
that instinct drove the people before
you but if you want to go somewhere
unique if you want to go somewhere that
only you would go if you want to create
something new and really live a life
that was meant for you because it's
literally crafted by you you have to
take the first steps on faith and as
Rumi said as you start to walk out on
the way the way appears so as you're
 

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/ce7bdacc-ef76-4a94-8d0f-b861ebebfcf6n%40googlegroups.com.


Re: Trying to remove all empty lines with this grep isn't working

2021-04-27 Thread David J
Hey all,  It turns out that all I had to do was capitalize the R at the end 
as mentioned above. I had the recipe in notes from years ago and was just 
following what I wrote down then. My regex and bbedit understanding is very 
rusty so appreciate everyone chiming in. David
On Tuesday, April 27, 2021 at 8:28:35 AM UTC-7 Patrick Woolsey wrote:

> On 4/26/21 at 7:37 PM, future...@gmail.com (David J) wrote:
>
> >I'm trying to take out any empty lines from a document and 
> >can't figure out why it's not working. I'm adding the text, 
> >then selecting all then adding grep
> >
> >^\s*?\r
> >then replace all with nothing. I'm getting "not found" on any document.
>
>
> Since your above pattern should suffice to remove all blank 
> lines (lines which are empty or contain only whitespace), please 
> turn on the "Show matches" search option as well as View -> Text 
> Display -> Show Invisibles in hopes these may shed some light on 
> the matter.
>
> If it doesn't, then a Zipped sample file is probably in order.
>
> [PS: You need not select anything before performing the Replace 
> All _unless_ you need to limit the scope of this command to a 
> specific part of the document via the "Search in: Selected text 
> only" option.]
>
>
> Regards
>
> Patrick Woolsey
> ==
> Bare Bones Software, Inc. <https://www.barebones.com/>
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/3db81b32-962a-4835-a809-6ab48f80fc38n%40googlegroups.com.


Trying to remove all empty lines with this grep isn't working

2021-04-26 Thread David J

 I'm trying to take out any empty lines from a document and can't figure 
out why it's not working. 
I'm adding the text, then selecting all then adding grep
^\s*?\r  
then replace all with nothing. I'm getting "not found" on any document. 
Weirdly, I swear this was working before. Can anyone give some insight 
here? 
  

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/9ed775bb-05e8-4341-98e0-d37271ed0c4an%40googlegroups.com.


Re: How to grep a list of hyperlink to capitalise the words

2021-04-18 Thread David G Wagner
Not pretty, but if the input you are looking at is consistent then I got this 
to work. Unsure on the 21 thru 29 if that was the format you wanted, since you 
did not show that portion... ;)

Find:
 
^(\d{1,2}\.\s{1,})TEXT\s{1,}([a-zA-Z])([a-zA-Z-]+)(\s{0,})(\<\/a\>)

Replace:
\1Text \u\2\L\3\E\4\5

Input:
1. TEXT ONE
2. TEXT TWO
3. TEXT THREE
4. TEXT FOUR
5. TEXT FIVE
6. TEXT SIX
7. TEXT SEVEN
8. TEXT EIGHT
9. TEXT NINE
10. TEXT TEN
11. TEXT ELEVEN
12. TEXT TWELVE
13. TEXT THIRTEEN
14. TEXT FOURTEEN
15. TEXT FIFTEEN
16. TEXT SIXTEEN
17. TEXT SEVENTEEN
18. TEXT EIGHTTEEN
19. TEXT NINETEEN
20. TEXT TWENTY
21. TEXT TWENTY-ONE
22. TEXT TWENTY-TWO
23. TEXT TWENTY-THREE
24. TEXT TWENTY-FOUR
25. TEXT TWENTY-FIVE
26. TEXT TWENTY-SIX
27. TEXT TWENTY-SEVEN
28. TEXT TWENTY-EIGHT
29. TEXT TWENTY-NINE
30. TEXT THIRTY

Output:
1. Text One
2. Text Two
3. Text Three
4. Text Four
5. Text Five
6. Text Six
7. Text Seven
8. Text Eight
9. Text Nine
10. Text Ten
11. Text Eleven
12. Text Twelve
13. Text Thirteen
14. Text Fourteen
15. Text Fifteen
16. Text Sixteen
17. Text Seventeen
18. Text Eightteen
19. Text Nineteen
20. Text Twenty
21. Text Twenty-one
22. Text Twenty-two
23. Text Twenty-three
24. Text Twenty-four
25. Text Twenty-five
26. Text Twenty-six
27. Text Twenty-seven
28. Text Twenty-eight
29. Text Twenty-nine
30. Text Thirty

Wags ;)
WagsWorld
Hebrews 4:15
Ph(primary) : 408-914-1341
Ph(secondary): 408-761-7391
On Apr 18, 2021, 09:44 -0700, Francisco Hirsch , wrote:
> I have a text like this”
> > quote_type
> > 1. TEXT ONE
> > 2. TEXT TWO
> > ….
> > 30. TEXT THIRTY
>
> And I want to to convert it to:
> > quote_type
> > 1. Text One
> > 2. Text Two
> > ….
> > 30. Text Thirty
> >
> Is it possible to do a grep magic or Text Factory?
> Saludos,
> Francisco
> --
> Lic. Francisco A. Hirsch
> https://www.fiscaldemesa.com.ar
> Twitter: https://twitter.com/fiscaldemesa
>
>
>
>
>
>
>
> --
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: 
> 
> ---
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/2926515F-7DF5-4DB1-A013-FD842FE3454A%40gmail.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/92d02f5c-b8c4-45bc-9a6c-33b93b848143%40Spark.


Re: Stop adding ^M characters

2021-04-04 Thread David Kelly

On Apr 4, 2021, at 6:07 PM, Arthur Goldberg  wrote:

> According to `git diff`,  control-M characters appeared at the ends of all 
> lines I inserted in a file I'm editing with BBEdit. See screenshot.
> 
> How do I stop doing this?

Original Apple/Mac convention was  (Control-M) line endings. 
Unix used  (Control-J) line endings. 
CP/M and Windows used   line endings.


BBEdit is pretty smart about continuing to use whatever it finds. Has a default 
for new files. 

--
David Kelly N4HHE, dke...@hiwaay.net

Whom computers would destroy, they must first drive mad.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/98ED2474-F312-4C98-9760-B50496EE02C2%40hiwaay.net.


Re: Global Preference for window width?

2021-01-10 Thread David Nugent
On 11 January 2021 at 12:54:29, Bruce Van Allen (b...@cruzio.com) wrote:

On 10 Jan 2021, at 16:46, Robert W. Franson wrote:

Yet there is somewhere a setting for that,

Under the Window menu, see “Save Default X”, where X varies with the type
of window open in front.


Thanks Bruce. Many years I have used BBEdit and I never knew this existed.


This setting seems to sometimes get confused or forgetful, especially after
a disturbance in the force, like a system crash.

But mostly does what you’re asking for.


Works for me.

Cheers,

/d

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/CAPvfA9D72vCR6sfQ8g-hUtg8TRjLPBosc%3DcMtN0Lv%3DqqZ%2BS0sg%40mail.gmail.com.


Re: Global Preference for window width?

2021-01-10 Thread David Nugent
Robert, now that you raise this, I'd also opt for a similar option for
height as well.

BBEdit always opens a default window the entire screen height (sans system
menu) which, on very high resolution monitors is just a huge overkill and
invariably leads to me resizing it manually. Every time.

It should be possible to change this such that it is a little less "hard
coded" and create a new window with either a custom size and position or
something derived from a previously used window size on that display.

Regards,
/d

On 11 January 2021 at 12:22:26, Robert W. Franson (dod...@roviking.com)
wrote:

This is so simple I'm embarrassed to ask it.
~
Ideally I'd like a Global Preference to set or re-set window width to say
10 inches whenever a window is saved, unless I adjust the width to a lesser
or greater measurement. Same for height, of course.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/CAPvfA9BdXv4S5PJ7uPv4stara8aKaxgLgqGWy%3DVDSGZtvLZvLQ%40mail.gmail.com.


Re: Bringing the "Unix Script Output" log to the front automatically.

2020-11-17 Thread David Wagner
Noticed the same thing. Run a script and the log would come up. Now have to 
find to bring to the front...

Wags ;)
WagsWorld
World of Perl
Hebrews 4:15
Ph D:(408)914-1341
Ph M:(408)761-7391
On Nov 17, 2020, 11:22 -0800, Philip Sharman , wrote:
> Is there a way to bring the "Unix Script Output" log window to the front 
> automatically when I ran a script?
>
> (I thought BBEdit did so, but now I find that it does not.  I'm not sure if 
> something changed or I'm misremembering.)
>
> Thanks.
>
>
> --
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: 
> 
> ---
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/8f2d3076-23d8-41e9-a99a-d3f9c4e0e380n%40googlegroups.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/500ca184-c3ef-452c-bbf0-25270a9b8fb8%40Spark.


Re: grep pattern to find special combinations of fields in a large csv file

2020-07-29 Thread David G Wagner
You will have in history and you can use the script editor to record your 
actions, save that output and execute. Personally a Perl individual, but you 
should be able to follow the shooting... A thought...

Wags ;)
WagsWorld
Hebrews 4:15
Ph(primary) : 408-914-1341
Ph(secondary): 408-761-7391
On Jul 29, 2020, 10:41 -0700, Lewis Downey , wrote:
> Neil, face,
>
> No doubt you are right. By now i should be perfectly comfortable building and 
> querying MySQL tables. However so far I have punted on learning SQL. Same for 
> Perl. It could still happen, maybe...
>
> Thanks for the replies.
>
> (still curious if grep could find the correct results.)
>
> --
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: 
> 
> ---
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/1c35204d-6125-4e53-bd0e-c6dfcf5e0d75o%40googlegroups.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/43b52afa-e664-4bb8-a69a-93673a88d796%40Spark.


Re: Retrieving information from TextWrangler

2020-07-06 Thread David Kelly


On Jul 6, 2020, at 3:07 PM, Rich Siegel  wrote:

> On 7/6/20 at 3:50 PM, mpaller...@gmail.com (mpallerino) wrote:
> 
>> I upgraded to Catalina and my TextWrangler went to BBEdit. I do/can I 
>> retrieve the information I had stored in TextWrangler
> 
> When you start BBEdit for the first time, it will import your existing 
> TextWrangler settings and history, assuming certain conditions are satisfied 
> (the most important of which is that you have never used BBEdit on that 
> computer before, ever).

Let me guess there might be one other thing: default app for Finder?

If Finder does not open BBEdit on double-click of a TextWrangler document then 
on that document use Get Info (command-I) in Finder to set the default app, and 
click the “Change All..." button to fix all the other TextWrangler documents.

--
David Kelly N4HHE, dke...@hiwaay.net

Whom computers would destroy, they must first drive mad.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/742C9CBC-08B9-4752-B0B3-75AAE1C65C30%40hiwaay.net.


How to actually set an expert preference?

2020-06-15 Thread David G Wagner
I looked at the doc and did some searches on the net and either I used the 
wrong wording or did not view the right outputs, but I never did see how one is 
to set a particular expert preference or see what expert preferences are set.

I tried a shell worksheet and executed ’env’ and got the output back. But never 
understood how to set a preference or see what others are set.

Any examples or if in doc, point me to it...

Thanks... ;)

Wags ;)
WagsWorld
Hebrews 4:15
Ph(primary) : 408-914-1341
Ph(secondary): 408-761-7391

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/278792e9-9922-4b15-ac3f-ac6b0ee949a1%40Spark.


Re: How do I search SFTP?

2020-05-21 Thread David Rostenne
Thank you Patrick!

As soon as you suggested this I laughed as I am sure i’ve asked you before and 
got the same answer. Which I promptly forgot.

Much appreciated!

Cheers,

Dave


> On 21-May-2020, at 11:18 AM, Patrick Woolsey  wrote:
> 
> On 5/21/20 at 10:51 AM, droste...@gmail.com (David Rostenne) wrote:
> 
>> How do I search an SFTP folder full of files from within BBEdit?
>> 
> 
> The best (and shortest :-) answer is to mount the remote server via an 
> utility such as ExpanDrive:
> 
>  <http://www.expandrive.com/>
> 
> or Mountain Duck (from the makers of the CyberDuck file transfer app):
> 
>  <https://mountainduck.io/>
> 
> so that all the files you wish to search are available via the filesystem.
> 
> 
> Regards
> 
> Patrick Woolsey
> ==
> Bare Bones Software, Inc. <https://www.barebones.com/>
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: 
> <https://twitter.com/bbedit>
> --- You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/r480Ps-10146i-405F18E1041648FAAF669147A96DBAED%40Cylinder.local.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/01484A95-12DC-478E-944F-C1EC493B481C%40gmail.com.


How do I search SFTP?

2020-05-21 Thread David Rostenne
Hey folks,

How do I search an SFTP folder full of files from within BBEdit?

I did RTFM and Google and have not found the solution. Hoping you guys can help!

Cheers,

Dave

--
David Rostenne
Computer Consulting
Cell: 613-262-4705

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/0C10597A-B2DA-4474-B98B-092B12172733%40gmail.com.


Grep to reformat screenplay dialogue into novel form?

2020-05-10 Thread david nerlich


Hi,


I’m trying to reformat screenplay dialogue into literary dialogue via grep. 
Example:


*BILL*


*I like pizza.*


into 


*“I like pizza” said Bill.*


An alternate source to edit would be to use all the hidden characters from 
Final Draft, eg:


 BILL





  I like pizza.



Thanks a bunch if anyone can advise how to do this. I’m a noob but I guess 
I need a wildcard like .* but with a function that includes it in the 
replace but preserving the unique name and dialogue in each instance. Hope 
that makes sense. 


Dave

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/910a3a89-87c5-4af5-b42a-e391d321bfb0%40googlegroups.com.


Re: Including "Sr." or "Jr." in name where applicable

2020-02-29 Thread David G Wagner
It works but is not quite right. That period there should really be expanded to:
\.{0,1}

So it should read now as:
> > ^([a-z,A-Z,\.]+) ([a-z,A-Z]+(\s(jr|sr)\.{0,1}){0,1})
> >
> > Where my new part says:
> >
> > A space followed by either Jr or Sr and there will be a period and not.
> >
> > The {} has a low and high:
> >
> > {1,2} what preceded the { can occur either one or two times
> >
> > {1,} says what preceded the { can occur 1 or more times
> >
> > Probably a number of other ways, but this should now work with jr or st 
> > with it without a period following...
> >
> > Sorry about the incorrect first pass... ;)

Wags ;)
WagsWorld
Hebrews 4:15
Ph(primary) : 408-914-1341
Ph(secondary): 408-761-7391
On Feb 29, 2020, 12:33 -0800, 'anotherhoward' via BBEdit Talk 
, wrote:
> Thanks. How does this part of the expression work?—  (\s(jr|sr).){0,1})
>
>
> On Saturday, February 29, 2020 at 2:42:43 PM UTC-5, David G Wagner wrote:
> > You could add:
> > (\s(jr|sr).){0,1} within the last set of parens so would look like:
> >
> > ^([a-z,A-Z,\.]+) ([a-z,A-Z]+(\s(jr|sr).){0,1})
> >
> > This would handle those who do not put a period after the Jr or Sr also.
> >
> >
> > Wags ;)
> > WagsWorld
> > Hebrews 4:15
> > Ph(primary) : 408-914-1341
> > Ph(secondary): 408-761-7391
> > On Feb 29, 2020, 05:40 -0800, 'anotherhoward' via BBEdit Talk , wrote:
> > > In a previous post, "Extracting parts of names from full names," I asked 
> > > about how to extract the first and last names from a string.
> > >
> > > Here is an input sample:
> > >
> > > Felix Jose\josefe01
> > > Tony Clark\clarkto02
> > > Matt Williams\willima04
> > > John McDonald\mcdonjo03
> > > Mark Grace\gracema01
> > > Steve Finley\finlest01
> > > B.J. Surhoff\surhob.01
> > > J.T. Snow\snowj.01
> > >
> > > When I re-examined the full dataset, I noticed two cases not included 
> > > previously.
> > > Eric Young Sr.\younger0
> > > Ken Griffey Jr.\griffke02
> > >
> > > Based on the helpful feedback I got in my previous post, now what I need 
> > > is a pattern that would handle not only all the original input items plus 
> > > the two new cases. Further, what I would like extracted is everything up 
> > > to but not including the backslash.
> > >
> > > This attempt (of mine) finds everything in the original dataset, but I 
> > > was unable to expand it to include either the "Sr." or "Jr.":
> > > ^([a-z,A-Z,\.]+) ([a-z,A-Z]+)
> > >
> > > 1. Is there a way my attempt can be expanded so it includes "Sr." or 
> > > "Jr." when a name has either of them?
> > > 2. What pattern would you write to accomplish the task?
> > > --
> > > This is the BBEdit Talk public discussion group. If you have a feature 
> > > request or need technical support, please email "sup...@barebones.com" 
> > > rather than posting here. Follow @bbedit on Twitter: 
> > > <https://twitter.com/bbedit>
> > > ---
> > > You received this message because you are subscribed to the Google Groups 
> > > "BBEdit Talk" group.
> > > To unsubscribe from this group and stop receiving emails from it, send an 
> > > email to bbe...@googlegroups.com.
> > > To view this discussion on the web visit 
> > > https://groups.google.com/d/msgid/bbedit/8a68d4b5-6d57-4c4c-8cd0-1ed5c30f85d5%40googlegroups.com.
> --
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: 
> <https://twitter.com/bbedit>
> ---
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/a8720563-fcc5-4e04-a7d8-f1f2111bde4f%40googlegroups.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/6915075b-a2f8-4367-8ff8-f027d7758fee%40Spark.


Re: Including "Sr." or "Jr." in name where applicable

2020-02-29 Thread David G Wagner
You could add:
(\s(jr|sr).){0,1} within the last set of parens so would look like:

^([a-z,A-Z,\.]+) ([a-z,A-Z]+(\s(jr|sr).){0,1})

This would handle those who do not put a period after the Jr or Sr also.


Wags ;)
WagsWorld
Hebrews 4:15
Ph(primary) : 408-914-1341
Ph(secondary): 408-761-7391
On Feb 29, 2020, 05:40 -0800, 'anotherhoward' via BBEdit Talk , wrote:
> In a previous post, "Extracting parts of names from full names," I asked 
> about how to extract the first and last names from a string.
>
> Here is an input sample:
>
> Felix Jose\josefe01
> Tony Clark\clarkto02
> Matt Williams\willima04
> John McDonald\mcdonjo03
> Mark Grace\gracema01
> Steve Finley\finlest01
> B.J. Surhoff\surhob.01
> J.T. Snow\snowj.01
>
> When I re-examined the full dataset, I noticed two cases not included 
> previously.
> Eric Young Sr.\younger0
> Ken Griffey Jr.\griffke02
>
> Based on the helpful feedback I got in my previous post, now what I need is a 
> pattern that would handle not only all the original input items plus the two 
> new cases. Further, what I would like extracted is everything up to but not 
> including the backslash.
>
> This attempt (of mine) finds everything in the original dataset, but I was 
> unable to expand it to include either the "Sr." or "Jr.":
> ^([a-z,A-Z,\.]+) ([a-z,A-Z]+)
>
> 1. Is there a way my attempt can be expanded so it includes "Sr." or "Jr." 
> when a name has either of them?
> 2. What pattern would you write to accomplish the task?
> --
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: 
> 
> ---
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/8a68d4b5-6d57-4c4c-8cd0-1ed5c30f85d5%40googlegroups.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/0cd00ad5-b756-464e-8403-e526d64d9d93%40Spark.


Re: Newbie Seeking Advice

2020-02-29 Thread David G Wagner
What do the currency numbers look like? I mean is there a dollar sign? Is the 
minus sign at front or back?

What you want to do is simple, but not familiar SGML.

So if you can dummy some trans, would make it clearer to me...

Wags ;)
WagsWorld
Hebrews 4:15
Ph(primary) : 408-914-1341
Ph(secondary): 408-761-7391
On Feb 29, 2020, 09:58 -0800, Mark Love , wrote:
> I don't own BBEdit (yet) but think it could solve a problem I have.
>
> PROBLEM:
>
> My credit card company has recently switched the semantics of the QFX file it 
> produces to describe transactions. (For those not familiar with QFX, it's 
> SGML based descriptions of financial activity).  Anyway, when it worked 
> properly charges to the card were described thusly:
>
> TRNTYPE=DEBIT
> TRNAMT=
>
> and payments to the credit card company and merchant refunds were coded as:
>
> TRNTYPE=CREDIT
> TRNAMT=
>
> A recent change to the generated GFX file semantics prevents me from 
> importing it into my personal finance software:  all charges come through as 
> payments and all payments come through as charges.  The root cause is this 
> new encoding in the QFX for charges:
>
> TRNTYPE=CREDIT
> TRNAMT=
>
> and for payments:
>
> TRNTYPE=DEBIT
> TRNAMT=
>
> As you can see, it's just the opposite from what it used to be!!!
>
> The credit card company insists this is correct (confirming that both Quicken 
> and MS Money say they're OK with the change).  But it broke Banktivity, and 
> from spending over 6 hours on the phone with both companies, I expect my only 
> chance to solve this problem is with text manipulation.  Thus my interest in 
> BBEdit.
>
> There seems to be some sort of automation capability in BBEdit where I could 
> run a series of transforms on the QFX file as delivered by the credit card 
> company before importing into Banktivity.  Is this true, and can someone 
> describe the BBEdit commands to transform the QFX file properly?  Here's my 
> take on the automation flow:
>
>
> • open a specified file
> • change all occurrences of CREDIT to XXX
> • Change all occurrences of DEBIT to CREDIT
> • Change all occurrences of XXX to DEBIT
> •  multiplying by -1)>
> • Close transformed file
>
> Any help provided would be greatly appreciated.  BBEdit is clearly overkill 
> for my problem, but for 50-odd bucks it seems worthwhile to me to kill this 
> aggravation.
>
> My environment:  MacOS High Sierra (10.13.6) running on a MacBook Pro early 
> 2011 (to be upgraded this summer to Catalina on a MacBook Pro 16").
>
> Thanks again.
>
> Mark
>
> --
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: 
> 
> ---
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/bc0dc03d-3b93-4bb4-bf9f-da0a5f436237%40googlegroups.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/a4e274b0-acd6-4b42-a421-3c415e9899b9%40Spark.


Re: BBEdit to web

2019-11-29 Thread David Donachie



> On 27 Nov 2019, at 14:46, Harvey Pikelberger  wrote:
> 
> 
> Definitely the PHP process can be made to work, and if you’re familiar with 
> JS, Node is maybe a little cleaner and more fluent an environment for what 
> you want to achieve.  ”string”.replace(), for instance, uses native regexp, 
> which is clearer and more powerful than str_replace.  Either way though — 
> Both PHP and JS offer the option to run command line and grep out data and 
> also do the cleaning/prepping and pushing to FMP or SQL in ways that leave 
> the originals untouched.
> 
> BBEdit, is a truly excellent text editor, but for what you’re doing it’s 
> probably better for writing up the automation than doing the automation.

On the PHP side, if you stick with that (as it is designed originally as a text 
processor, it is a perfectly good choice as well) you will probably want to use 
preg_replace instead of the less powerful str_replace, to get the full PCRE 
implementation.

David

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/0100016eb7b9531a-1fc1a2ca-b2d7-40e4-9868-ed12311c2fab-00%40email.amazonses.com.


Re: Navigation in a Preview Window

2019-11-07 Thread David C
Thank you, Patrick.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/555731d3-8241-4ba4-a156-95bcdac6d97d%40googlegroups.com.


Navigation in a Preview Window

2019-11-07 Thread David C
Is it the expected behavior to click on a  that POSTs to the same 
page, and have the page immediately open in the default browser?  None of 
the page's links will stay in the Preview window.  This prevents a cookie 
from being set that allows other pages to be viewed in their respective 
Preview window.

I can't find this anywhere in the documentation.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/15f2b40f-9619-4b62-b153-a3bcab6fbc8f%40googlegroups.com.


Re: document structure for single-page site development

2019-10-25 Thread David Donachie
If you are using (say) a .vue file, then I don't think there is a specific 
highlighting mode in BBEdit in the same way that there is in (for example) 
Visual Studio Code.

Is that the sort of code-help you are looking for?

David

> On 25 Oct 2019, at 06:15, Gauvins  wrote:
> 
> I'll be working for a few-to-many weeks on a single-page site and was 
> wondering how experienced developers structure such a project. 
> 
> The site involves very little html (50 lines), a fair amount of styling (200+ 
> lines), javaScript (1000+ lines), and AJAX procedures handled by php scripts. 
> 
> Once in production, the code will be minified and stored in 3 distinct files 
> + helpers (.html, .css, .js, .php). But during development I prefer to not 
> bother with linked files. I find it more convenient to navigate inside a 
> single file where code resides between  and  
> tags. Now, BBEdit's project feature might be a better alternative (i.e. split 
> in logical modules and navigate across documents, not inside a large 
> integrated one).
> 
> Any piece of advice?
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <https://twitter.com/bbedit 
> <https://twitter.com/bbedit>>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com 
> <mailto:bbedit+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/79e2d329-0947-4b7a-9a72-84e5d96958ab%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/bbedit/79e2d329-0947-4b7a-9a72-84e5d96958ab%40googlegroups.com?utm_medium=email_source=footer>.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/0100016e02ff2bad-55ec1d44-9a0c-4255-8369-d735a079211c-00%40email.amazonses.com.


Re: Regex replacement item for entire line?

2019-10-08 Thread David Rostenne
Hi Roland,

The solutions proposed all work.. but they require that the regex pattern 
matches the entire line first. i was being lazy and hoping for a way to grab 
the entire line without matching it first.

Cheers,

Dave

> On 7-October-2019, at 3:49 AM, Roland Küffner  wrote:
> 
> Hi,
> Bruce Van Allen has alredady provided a solution - so, just out of curiosity: 
> I was wondering why you were searching for a replacement for the "&" in the 
> replacement string? It does exactly what you want and it is a single 
> character. It's hard to get that simpler or more elegant. But maybe I'm 
> missing a thought.
> 
> Roland
> 
> On Wed, Oct 2, 2019 at 2:01 PM David Rostenne  wrote:
> I was hoping for an alternative to the & in the replacement strung that means 
> ‘entire source line’ but this works perfectly.
> 
> Thanks!
> 
> Cheers,
> 
> Dave
> 
> > On 2-October-2019, at 7:45 AM, ThePorgie  wrote:
> > 
> > Would something like this be what you're looking for?
> > 
> > .+?/2019/[019]+/([0-9]+)[_.]([0-9]+)-([a-zA-Z]+).* 
> > 
> > This will give you the same result with your replacement string.
> > 
> > \3 \1, NEN PDF, \1/\2/01, & 
> > 
> > The ".+?" tells the expression to find everything till the rest of the 
> > expression that remains matches. If anything is off in the rest of the 
> > expression it won't find a result in the string being searched.
> > 
> > Is that what you're looking for?
> > 
> > 
> > On Tuesday, October 1, 2019 at 2:05:05 PM UTC-4, Dave R wrote:
> > Hi folks, 
> > 
> > I have a regex that takes a url apart and makes me a csv of the components: 
> > 
> > Regex: 
> > http://ftp\.newedinburgh\.ca/wp-content/uploads/2019/[019]+/([0-9]+)[_.]([0-9]+)-([a-zA-Z]+).*
> >  
> > 
> > and the replacement: 
> > \3 \1, NEN PDF, \1/\2/01, & 
> > 
> > which gives, for example: 
> > April 1976, NEN PDF, 1976/04/01, 
> > http://ftp.newedinburgh.ca/wp-content/uploads/2019/09/1976_04-April-New-Edinburgh-News_web.pdf
> >  
> > 
> > I am wondering if there is a way to leave the http…2019 out of the regex 
> > and, instead of the & (which matches entire regex selection) in the 
> > replacement, use something else to represent the entire source line. 
> > 
> > As you can see i’ve found a solution.. but I am always curious to see if 
> > there is a simpler way. 
> > 
> > Cheers, 
> > 
> > Dave
> > 
> > -- 
> > This is the BBEdit Talk public discussion group. If you have a 
> > feature request or need technical support, please email
> > "supp...@barebones.com" rather than posting to the group.
> > Follow @bbedit on Twitter: <https://twitter.com/bbedit>
> > --- 
> > You received this message because you are subscribed to the Google Groups 
> > "BBEdit Talk" group.
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email to bbedit+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit 
> > https://groups.google.com/d/msgid/bbedit/3aea19a9-d72e-4afb-ad16-8cf4e336e9b7%40googlegroups.com.
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <https://twitter.com/bbedit>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/BCC7A1C0-1C48-49F6-8714-FAF93FD8D26F%40gmail.com.
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <https://twitter.com/bbedit>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/CABybPXaGnh82gD6w%3DiwmEYGOht-ydewr3QzhqkHU-nX56%2Ba1FA%40mail.gmail.com.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/2438F0CE-63B1-4B88-86DB-F7A1C248C0B5%40gmail.com.


Re: Regex replacement item for entire line?

2019-10-02 Thread David Rostenne
I was hoping for an alternative to the & in the replacement strung that means 
‘entire source line’ but this works perfectly.

Thanks!

Cheers,

Dave

> On 2-October-2019, at 7:45 AM, ThePorgie  wrote:
> 
> Would something like this be what you're looking for?
> 
> .+?/2019/[019]+/([0-9]+)[_.]([0-9]+)-([a-zA-Z]+).* 
> 
> This will give you the same result with your replacement string.
> 
> \3 \1, NEN PDF, \1/\2/01, & 
> 
> The ".+?" tells the expression to find everything till the rest of the 
> expression that remains matches. If anything is off in the rest of the 
> expression it won't find a result in the string being searched.
> 
> Is that what you're looking for?
> 
> 
> On Tuesday, October 1, 2019 at 2:05:05 PM UTC-4, Dave R wrote:
> Hi folks, 
> 
> I have a regex that takes a url apart and makes me a csv of the components: 
> 
> Regex: 
> http://ftp\.newedinburgh\.ca/wp-content/uploads/2019/[019]+/([0-9]+)[_.]([0-9]+)-([a-zA-Z]+).*
>  
> 
> and the replacement: 
> \3 \1, NEN PDF, \1/\2/01, & 
> 
> which gives, for example: 
> April 1976, NEN PDF, 1976/04/01, 
> http://ftp.newedinburgh.ca/wp-content/uploads/2019/09/1976_04-April-New-Edinburgh-News_web.pdf
>  
> 
> I am wondering if there is a way to leave the http…2019 out of the regex and, 
> instead of the & (which matches entire regex selection) in the replacement, 
> use something else to represent the entire source line. 
> 
> As you can see i’ve found a solution.. but I am always curious to see if 
> there is a simpler way. 
> 
> Cheers, 
> 
> Dave
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/3aea19a9-d72e-4afb-ad16-8cf4e336e9b7%40googlegroups.com.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/BCC7A1C0-1C48-49F6-8714-FAF93FD8D26F%40gmail.com.


Re: Regex replacement item for entire line?

2019-10-01 Thread David Rostenne
Good idea.. I will try that!

Cheers,

Dave

> On 1-October-2019, at 4:51 PM, Kerri Hicks  wrote:
> 
> If the URL is always exactly the same up to the point of the date that you're 
> capturing now (as it appears it must be for the expression to match), you 
> could create a capture group of the first 51 characters (assuming I counted 
> them right), and then use a backreference to that. I'm not sure that would be 
> better in any way, but it would be a shorter regex.
> 
> --Kerri
> 
> On Tue, Oct 1, 2019 at 2:05 PM David Rostenne  wrote:
> Hi folks,
> 
> I have a regex that takes a url apart and makes me a csv of the components:
> 
> Regex:
> http://ftp\.newedinburgh\.ca/wp-content/uploads/2019/[019]+/([0-9]+)[_.]([0-9]+)-([a-zA-Z]+).*
> 
> and the replacement:
> \3 \1, NEN PDF, \1/\2/01, &
> 
> which gives, for example:
> April 1976, NEN PDF, 1976/04/01, 
> http://ftp.newedinburgh.ca/wp-content/uploads/2019/09/1976_04-April-New-Edinburgh-News_web.pdf
> 
> I am wondering if there is a way to leave the http…2019 out of the regex and, 
> instead of the & (which matches entire regex selection) in the replacement, 
> use something else to represent the entire source line.
> 
> As you can see i’ve found a solution.. but I am always curious to see if 
> there is a simpler way.
> 
> Cheers,
> 
> Dave
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <https://twitter.com/bbedit>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/545B40B3-48A6-47FA-9161-ACE45EA55B3C%40gmail.com.
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <https://twitter.com/bbedit>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/CAEmA4uZ-j0aRxfKXDmmwK0q0Va0E%2BLJ-wn2b0dswW_iyn-9s7A%40mail.gmail.com.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/E3DD5F54-55E1-4227-AE04-2681B8934CA4%40gmail.com.


Regex replacement item for entire line?

2019-10-01 Thread David Rostenne
Hi folks,

I have a regex that takes a url apart and makes me a csv of the components:

Regex:
http://ftp\.newedinburgh\.ca/wp-content/uploads/2019/[019]+/([0-9]+)[_.]([0-9]+)-([a-zA-Z]+).*

and the replacement:
\3 \1, NEN PDF, \1/\2/01, &

which gives, for example:
April 1976, NEN PDF, 1976/04/01, 
http://ftp.newedinburgh.ca/wp-content/uploads/2019/09/1976_04-April-New-Edinburgh-News_web.pdf

I am wondering if there is a way to leave the http…2019 out of the regex and, 
instead of the & (which matches entire regex selection) in the replacement, use 
something else to represent the entire source line.

As you can see i’ve found a solution.. but I am always curious to see if there 
is a simpler way.

Cheers,

Dave

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/545B40B3-48A6-47FA-9161-ACE45EA55B3C%40gmail.com.


Re: make bbedit respect shebang line

2019-06-26 Thread David Rostenne
.. and there’s a change in the latest release! See 
https://www.barebones.com/support/bbedit/notes-12.6.5.html for the full release 
notes!

> • When using a "Run" command for a file with a #! line, BBEdit will no longer 
> attempt to run the file using the appropriate interpreter for the language 
> (e.g. Python), and will instead ask the shell to run it directly. Thus, 
> running a file like this:
> 
> #!/usr/bin/env python
> 
> import sys
> 
> print(sys.version)
> 
> will behave identically to using "Run In Terminal," and thus will always run 
> the script using whatever python the system would have used on the command 
> line.
> 
> On the other hand, if you omit the #! line:
> 
> import sys
> 
> print(sys.version)
> 
> Then BBEdit will make its best guess as to which python to use, based on the 
> previously documented rules.
> 
> Note: BBEdit will only run the file directly using the shell when using the 
> "Run" (or "Run with Options") or "Run in Terminal" commands. When using 
> "Check Syntax" or "Run in Debugger", BBEdit will continue to use its best 
> guess for the language interpreter.
> 
> This behavior is controlled by an expert preference. To force BBEdit to 
> ignore the #! line:
> 
> defaults write com.barebones.bbedit AlwaysUseShebangLineForWindowRun -bool NO

:-)

Thanks everyone at BareBones..

> On 9-June-2019, at 12:26 PM, Christopher Stone  
> wrote:
> 
> On 06/07/2019, at 18:31, Jon Crump  wrote:
>> Fortunately, BBEdit doesn't have to read my mind. It only has to read my 
>> script. My intentions are explicit right there at the top of each one.
> 
> Hey Folks,
> 
> Jeepers; somehow I missed this in release notes gone by...
> 
> A programming editor that refuses to run the code it's given to run is highly 
> problematic.
> 
> While I'm completely sympathetic to the technical challenges the developers 
> have to endure, it seems to me this is one place where there should be a 
> compromise...
> 
> --
> Best Regards,
> Chris
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To post to this group, send email to bbedit@googlegroups.com.
> Visit this group at https://groups.google.com/group/bbedit.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/ECD1C2A8-81E4-41DD-B930-BD0DF38CC1E9%40suddenlink.net.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/06AA6801-4451-4F6A-A9BF-0BE8D72023CB%40gmail.com.


Re: make bbedit respect shebang line

2019-06-05 Thread David Rostenne
Hmm.

If I create a test.py file, with the only contents being help(), I get Welcome 
to Python 3.7's help utility!

If I choose the scripts menu item and run the Hello World.py, with the addition 
of help() I get 2.7. But I notice that this file has:
#!/usr/local/bin/python

I tried editing it to be #!/usr/local/bin/python3 and that gives me 3.7

So it seems the shebang is respected if you put the path to a binary in it.

Oh, no.. if I do the same with the test.py script it is always 3.7 no matter 
what I put in the shebang line.

Back to you!

Cheers,

Dave

> On 5-June-2019, at 3:57 PM, jjon  wrote:
> 
> I'm missing something obvious: Running python scripts from within BBedit 
> 12.6.4 doesn't seem to respect anything I put in the shebang line. BBedit 
> runs python3.7 no matter what. The entire contents of p3test.py is
> help()
> 
> if I run it with command R the log file I get reads:
> Welcome to Python 3.7's help utility!
> ... etc.
> 
> if I add shebang:
> #!/usr/bin/env python2.7
> help()
> 
> I get the same thing. No matter what I put in the shebang line, BBedit runs 
> python 3.7
> 
> What am I missing?
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To post to this group, send email to bbedit@googlegroups.com.
> Visit this group at https://groups.google.com/group/bbedit.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/0cbc0c1c-efdb-4e39-a23f-c35eb8d1635f%40googlegroups.com.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/D2AF32D8-014F-4606-87CC-B8953F849D16%40gmail.com.


BBEdit Talk archives in downloadable format?

2019-05-25 Thread David Rostenne
Hi folks,

I find the Google Groups web interface a non-friendly way to do searches … does 
anyone have, or know of, an archived version of this list I can import into 
Apple Mail?

This will be for *my* personal use only and will not be shared in any way.

Feel free to contact me off list!

Cheers,

Dave

--
David Rostenne
Computer Consulting
Cell: 613-262-4705

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/F9F50E48-A4B3-4DB8-B615-8EEEBBEBD6A2%40gmail.com.


  1   2   3   4   >