Unexpected Shortcut Behavior

Heya devs 👋

I am hoping that you might help me with an issue I am having with a Shortcut I have created that's behaving unexpectedly.

If you'd like, you can download the Copy Obsidian Link Shortcut to test yourself. Here's a screenshot of the Shortcut:

The Shortcut should create an Obsidian Markdown external link when used as a Quick Action from the Finder, e.g., right-clicking on the file Caption - Creative.png in the subfolder PNGs/ and selecting Quick Actions → Create Obsidian Link should send [Caption - Creative.png](file:///Users/user/Documents/Writing-Workspace/PNGs/Caption%20-%20Creative.png) to the paste buffer

Instead, [Caption - Creative](file:///Users/user/Library/Group%20Containers/group.com.apple.shortcuts/Temporary/com.apple.WorkflowKit.BackgroundShortcutRunner/Caption%20-%20Creative.txt) is copied.

Please help me debug this issue! If you can think of a better place for me to ask this question, I'd be grateful for that even. I've asked on the Obsidian forum and Discord channel already, but haven't got any response.

Unexpected Shortcut Behavior
 
 
Q