Re: Custom sequencing

2021-12-08 Thread Maciek Schejbal
Jean, 

Your script worked like a dream, many thanks!

And thank you all for participating.

Best,
Maciek 

On Wednesday, December 8, 2021 at 9:43:24 PM UTC-5 Christopher Waterman 
wrote:

> I've been trying to get better at awk recently and this seems like an awk 
> kind of problem. 
> Printing 3 digit numbers with leading zeros is definitely a problem printf 
> is just sitting there waiting for.
>
> *Go Text • Run Unix Command *and paste in paste in this command into the 
> dialog:
> seq 250 | awk '{printf "\n width=\"100%%\" />\n\n", $0}'
>
> On Monday, December 6, 2021 at 7:32:53 AM UTC-8 Maciek Schejbal wrote:
>
>> Hullo BBEdits!
>>
>> I have 250 images to be shown in the slide show. After I copy the paths, 
>> would anybody have a way to automate BBEdit to continue numbering the 
>> following sequence?
>>
>> Many thanks,
>> Maciek
>>
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> etc...
>>
>

-- 
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/8d18d295-6d6b-40d7-b9ef-2c6c4d876b1an%40googlegroups.com.


Re: Custom sequencing

2021-12-08 Thread Christopher Waterman
I've been trying to get better at awk recently and this seems like an awk 
kind of problem. 
Printing 3 digit numbers with leading zeros is definitely a problem printf 
is just sitting there waiting for.

*Go Text • Run Unix Command *and paste in paste in this command into the 
dialog:
seq 250 | awk '{printf "\n\n\n", $0}'

On Monday, December 6, 2021 at 7:32:53 AM UTC-8 Maciek Schejbal wrote:

> Hullo BBEdits!
>
> I have 250 images to be shown in the slide show. After I copy the paths, 
> would anybody have a way to automate BBEdit to continue numbering the 
> following sequence?
>
> Many thanks,
> Maciek
>
> 
> 
> 
> 
> 
> 
>
> etc...
>

-- 
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/155f1b70-ec8f-49d9-a9a2-afba65c8dc5bn%40googlegroups.com.


Re: Custom sequencing

2021-12-08 Thread jj
Execute this snippet of AppleScript with Script Editor:

tell application "BBEdit"
set vContents to ""
repeat with i from 1 to 250
set vNumber to i as string
if i < 10 then
set vNumber to "00" & vNumber
else if i < 100 then
set vNumber to "0" & vNumber
end if
set vContents to vContents & "\n\n\n"
end repeat
make new document with properties {contents:vContents}
end tell

HTH

Jean Jourdain
On Wednesday, December 8, 2021 at 4:24:18 AM UTC+1 Tom Robinson wrote:

> Right, that’s an issue.
>
> You could search for a single digit and replace with 00, then do 
> the same for double digits — or start at 1000 and remove the leading digit 
> — but easier to use a spreadsheet :]
>
>
> On 2021-12-08, at 15:18, Tim A  wrote:
>
> Still are faced with adding 0 or 00 to numbers less than 100 of the 
> generated line numbers, no? Or is there a buried preference for asserting 
> the number of leading zeros?
> Numbers.app allows this with the Cells/Data Format/Numeral System   Base 
> and Places 
>
>
> On Monday, December 6, 2021 at 5:11:48 PM UTC-8 Tom Robinson wrote:
>
>> No need for a spreadsheet, BBEdit has a line numbering command :]
>> 1. create document with 250 blank lines
>> 2. Text > Add/Remove Line Numbers.  Don’t add spaces or justify — we just 
>> want a plain number
>> 3. Do a Grep search for an entire line:
>> ^.*$
>>
>>
>

-- 
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/9ae01ca7-9ed4-48e2-9cda-152027d8f973n%40googlegroups.com.


Re: Custom sequencing

2021-12-07 Thread Tom Robinson
Right, that’s an issue.

You could search for a single digit and replace with 00, then do the 
same for double digits — or start at 1000 and remove the leading digit — but 
easier to use a spreadsheet :]


> On 2021-12-08, at 15:18, Tim A  wrote:
> 
> Still are faced with adding 0 or 00 to numbers less than 100 of the generated 
> line numbers, no? Or is there a buried preference for asserting the number of 
> leading zeros?
> Numbers.app allows this with the Cells/Data Format/Numeral System   Base and 
> Places 
> 
> 
> On Monday, December 6, 2021 at 5:11:48 PM UTC-8 Tom Robinson wrote:
> No need for a spreadsheet, BBEdit has a line numbering command :]
> 1. create document with 250 blank lines
> 2. Text > Add/Remove Line Numbers.  Don’t add spaces or justify — we just 
> want a plain number
> 3. Do a Grep search for an entire line:
> ^.*$
> 

-- 
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/76D7AE4F-5C20-44AD-B9FC-227EC4B6E814%40gmail.com.


Re: Custom sequencing

2021-12-07 Thread Tim A
Still are faced with adding 0 or 00 to numbers less than 100 of the 
generated line numbers, no? Or is there a buried preference for asserting 
the number of leading zeros?
Numbers.app allows this with the Cells/Data Format/Numeral System   Base 
and Places 


On Monday, December 6, 2021 at 5:11:48 PM UTC-8 Tom Robinson wrote:

> No need for a spreadsheet, BBEdit has a line numbering command :]
> 1. create document with 250 blank lines
> 2. Text > Add/Remove Line Numbers.  Don’t add spaces or justify — we just 
> want a plain number
> 3. Do a Grep search for an entire line:
> ^.*$
>
>

-- 
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/9ec19385-2c28-4706-94a7-f319e297c423n%40googlegroups.com.


Re: Custom sequencing

2021-12-07 Thread Arasmus
Nice! I'd ssearched the manual for "sequence" before posting but missed the 
line numbers command. Thanks. 

On Monday, December 6, 2021 at 5:11:48 PM UTC-8 Tom Robinson wrote:

> No need for a spreadsheet, BBEdit has a line numbering command :]
>
> 1. create document with 250 blank lines
> 2. Text > Add/Remove Line Numbers.  Don’t add spaces or justify — we just 
> want a plain number
> 3. Do a Grep search for an entire line:
> ^.*$
> Replace with the example HTML below verbatim, except substitute & for the 
> 3 digits:
> \n\n\n
> 4. profit
>
>
> On 2021-12-07, at 08:57, Arasmus  wrote:
>
> Perhaps the easiest way would be to use a spreadsheet to generate the 
> sequence of numbers from 1-250..paste the numbers into an empty text 
> file..search and replace each of the numbers with the figure code.
>
> On Monday, December 6, 2021 at 7:32:53 AM UTC-8 Maciek Schejbal wrote:
>
>> Hullo BBEdits!
>>
>> I have 250 images to be shown in the slide show. After I copy the paths, 
>> would anybody have a way to automate BBEdit to continue numbering the 
>> following sequence?
>>
>> Many thanks,
>> Maciek
>>
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> etc...
>>
>
>

-- 
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/3a6c3ca0-59a7-4981-84a9-029dc76f09c9n%40googlegroups.com.


Re: Custom sequencing

2021-12-06 Thread Christopher Stone
On Dec 06, 2021, at 09:31, Maciek Schejbal  wrote:
> I have 250 images to be shown in the slide show. After I copy the paths, 
> would anybody have a way to automate BBEdit to continue numbering the 
> following sequence?

Hey Maciek,

Please provide an accurate sample of the before state of your copied paths.

Once we see that your task should be pretty simple.


--
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: 
--- 
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/1BE12876-55CB-48B0-958E-E4FF72FAB5B7%40gmail.com.


Re: Custom sequencing

2021-12-06 Thread Tom Robinson
No need for a spreadsheet, BBEdit has a line numbering command :]

1. create document with 250 blank lines
2. Text > Add/Remove Line Numbers.  Don’t add spaces or justify — we just want 
a plain number
3. Do a Grep search for an entire line:
^.*$
Replace with the example HTML below verbatim, except substitute & for the 3 
digits:
\n\n\n
4. profit


> On 2021-12-07, at 08:57, Arasmus  wrote:
> 
> Perhaps the easiest way would be to use a spreadsheet to generate the 
> sequence of numbers from 1-250..paste the numbers into an empty text 
> file..search and replace each of the numbers with the figure code.
> 
> On Monday, December 6, 2021 at 7:32:53 AM UTC-8 Maciek Schejbal wrote:
> Hullo BBEdits!
> 
> I have 250 images to be shown in the slide show. After I copy the paths, 
> would anybody have a way to automate BBEdit to continue numbering the 
> following sequence?
> 
> Many thanks,
> Maciek
> 
> 
> 
> 
> 
> 
> 
> 
> etc...

-- 
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/70E39B25-6DDE-42E0-B88C-095A60A36C65%40gmail.com.


Re: Custom sequencing

2021-12-06 Thread Arasmus
Perhaps the easiest way would be to use a spreadsheet to generate the 
sequence of numbers from 1-250..paste the numbers into an empty text 
file..search and replace each of the numbers with the figure code.

On Monday, December 6, 2021 at 7:32:53 AM UTC-8 Maciek Schejbal wrote:

> Hullo BBEdits!
>
> I have 250 images to be shown in the slide show. After I copy the paths, 
> would anybody have a way to automate BBEdit to continue numbering the 
> following sequence?
>
> Many thanks,
> Maciek
>
> 
> 
> 
> 
> 
> 
>
> etc...
>

-- 
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/cc9b7a59-04c7-48ab-a49b-2fecb5e507b6n%40googlegroups.com.


Custom sequencing

2021-12-06 Thread Maciek Schejbal
Hullo BBEdits!

I have 250 images to be shown in the slide show. After I copy the paths, 
would anybody have a way to automate BBEdit to continue numbering the 
following sequence?

Many thanks,
Maciek








etc...

-- 
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/042434e5-5394-4315-8e95-c8418e12n%40googlegroups.com.