Select numbers in text

Hi,

I was wondering if somebody can help me out with Selecting and Copying only digits in file:

So I have a text file with one string:
"#164 NEW YEAR 7"

I need to automate copying digits that come after #,
so
in this example it is 164

Im doing it so I can automatically update track number in mp3 file.

Thank you!

How are you selecting the file?

Where do you want the output?

-Chris

1 Like

Hi Chris,

  1. How are you selecting the file?

I have a set of actions to open a text file in text edit, so from this point I need your help.

(not quite accurate but thats the idea)

  1. Where do you want the output?
    I would like output im Variable "track_number" or Current Clipboard

Thank you

Here's a better way to go about that.

-Chris


Generic-Test 01.kmmacros (2.2 KB)

2 Likes

Works like a charm.
Thank you!