Help with Applescript to create Bookmark

Hi there,

I am trying to create a quick action to create a hook:// URL for the file and pass it on to the next part of the workflow.

(The use case is to take .srt files, make hookmark links with the timestamps to the videos, import them into Obsidian. This should give me fully searchable transcripts of my instructionals. When I click on the text, the video will open and play at the time of the text in the transcript).

Unfortunately my Applescript skills are pretty much nil…

Any help would be appreciated!

Thx!