Write text to application

Hello,

I am trying to write an Applescript that would write a couple of lines of text in a transcription app called f4transkript. For context, this script would kick in at the end of an automation workflow (through Hazel) that scans my Downloads folder for specific movie files, copies, renames, sorts them in a subfolder and opens them in f4transkript.

The text to write is:

[format]Titre de la vidéo : 2021xxxx - NAME

Lien de la vidéo : [/format]

“xxxx - NAME” and what comes after the second line colon are variables that I would manually fill in/replace in each file.

Thanks for any help you guys could provide. I have virtually no scripting experience save for a few simple ones I have written from bits of information found online.

Please disregard. I figured it out.

Thx