Automator or AppleScript to revise Text document

Joined
Sep 11, 2021
Messages
1
Reaction score
0
Hello, and I'm sorry if this is just plain dumb for most of you. I'm using software that kicks out a text document, but I need to reformat it every time to actually use it in the next piece of software.

Is there a way to Automator script the following?

For example:

Here's how it comes out:

_____________________

@ This file written with the Avid Caption plugin, version 1

<begin >
02:37:33:06 02:37:36:18
NAME_ID_01

02:37:36:18 02:37:38:20
NAME_ID_02

<end >

_____________________

What it should look like:

02:37:33:06 02:37:36:18 NAME_ID_01

02:37:36:18 02:37:38:20 NAME_ID_02

So just those 2 lines. I remove the text top and bottom, and remove the carriage return between timecode and "NAME_ID_01" but make sure there's a space between that and the timecode.

Thank you so much for taking the time to read this!
 

Cory Cooper

Moderator
Joined
May 19, 2004
Messages
11,102
Reaction score
492
Hello and welcome.

I am not very experienced with AppleScript/Automator. Maybe another member that has more experience will chime in.

You could also try the folks over at MacScripter, as they may be able to help.

C
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top