Miraz
Miraz

I’ve used BBEdit for years now. It’s fabulous for working with and processing text. Today I whisked up an Applescript that numbers selected lines so as to create a Markdown numbered list. The built-in line numbering function doesn’t seem to allow me to add the dot I want.

Screenshot of the script. Selected text. Selected text after numbering.

|
Embed
Progress spinner
In reply to
crossingthethreshold
crossingthethreshold

@Miraz Can you point me in a helpful direction to learn Applescript? I feel that if I knew what I could do with AS, I would be more keen on learning and using it.

|
Embed
Progress spinner
Miraz
Miraz

@crossingthethreshold Sure. I’ll take a look in the morning. Pretty sure I once wrote some small tutorials. It’s very powerful though also a bit quirky. I’m no expert.

|
Embed
Progress spinner
sod
sod

@crossingthethreshold @Miraz Speaking of automation on Apple's platforms: it might be worth checking out the Shortcuts app as well. It's been available on iOS and iPadOS for a while and enables automating things via drag and drop. It's coming to macOS Monterey this fall.

|
Embed
Progress spinner
Miraz
Miraz

@crossingthethreshold This free book from 2003 would be a place to start: Applescript for Absolute Starters : Bert Altenburg : Free Download, Borrow, and Streaming : Internet Archive. Given its age, some things might not work any more but it must have been useful to me since it's the first thing I found in a search of my hard drive. 😀

|
Embed
Progress spinner
Miraz
Miraz

@sod @crossingthethreshold Good thought thanks. There's also Automator already on the Mac. My favourite automation app is Keyboard Maestro — so powerful.

|
Embed
Progress spinner
crossingthethreshold
crossingthethreshold

@Miraz @sod A belated thank you for your Applescript, Shortcuts, etc suggestions. Sorry for the delay in replying. I have been distracted the last few days.

|
Embed
Progress spinner
Miraz
Miraz

@crossingthethreshold You’re welcome. Quite understandable you’ve been preoccupied.

|
Embed
Progress spinner