Hi Lorenz,
Execute this snippet of AppleScript with Script Editor:
tell application "BBEdit"
set vContents to ""
repeat with i from 1 to 15
set vNumber to i as string
if i < 10 then
set vNumber to "0" & vNumber
end if
set vContents to vContents & "word" & vNumber & linefeed
end repeat
make new document with properties {contents:vContents}
end tell
HTH
Jean Jourdain
On Thursday, December 30, 2021 at 9:20:45 PM UTC+1 T Burger wrote:
> Not what you asked for,but I would use a spreadsheet for that.
>
> Put your words in the first column.
> In the second column have it fill down with a series of numbers.
> Now select both columns and copy.
> Paste in BBEdit and delete the tab characters.
>
> Ted
>
> Sent from the Burger's iPad
>
> On Dec 30, 2021, at 2:53 PM, Lorenz Groth <[email protected]> wrote:
>
> Hello!
>
> I used to use programs like maple (math software) and latex for text
> editing. But I am new at programming other stuff.
> What I want to learn is how to produce a simple list of numbered word such
> as
> word01
> word02
> word03
> word04
> ....
> automatically to not have to do this by typing.
> Can anyone tell me how to do that with BBEdit? I guess there will be some
> loop stuff, for, while, if, do and something like this. But I have NO
> experiences with that in BBEdit. All I got is this
> [image: BBEditWorksheet.png] and
> [image: BBEditVersuchCompiler.png]
> I hope my problem is understandable. I write in German English...
>
> --
> This is the BBEdit Talk public discussion group. If you have a feature
> request or need technical support, please email "[email protected]"
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bbedit/727fc16f-a0a2-4c0c-813f-3ff40381968fn%40googlegroups.com
>
> <https://groups.google.com/d/msgid/bbedit/727fc16f-a0a2-4c0c-813f-3ff40381968fn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
--
This is the BBEdit Talk public discussion group. If you have a feature request
or need technical support, please email "[email protected]" 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/2b1397b3-3e95-43a4-96d5-7c7fcad9178cn%40googlegroups.com.