Hello,
As TiddlyWiki lover and Mac user I recently discovered that it’s possible to activate Apple Shortcuts app from a tiddler, with <a href="shortcuts://run-shortcut?name=myShortcut/> instruction.
The example below is to open a file based on the information of its location on the Mac
\define OpenPreview(mypath)
<div style="font-size:0.8em;text-align:center;margin:0em auto;">
<a href="shortcuts://run-shortcut?name=OpenFile&input=text&text=$mypath$" class="tc-btn-big-green" style="border-radius:4px;background-color:#696969;" target="_blank" rel="noopener noreferrer"> ''Launch shortcuts `openFile`''</a>
</div>
\end
<$transclude $variable=OpenPreview mypath={{!!myfield}}/>
This requires to have created an openFile shortcut before.
You can refer to this video for the OpenFile content : https://www.youtube.com/watch?v=I8PAWVWm9h8&list=PL1bsBsPtN-9TD7u5lE_5KVn6KZ2T-D-7-
Of course there are some other, and easier, ways to open an external file from TW, but Shortcuts app allows to launch more complex shell scripts, javascript, or Apple scripts to generate actions.
I don’t have a clear idea on what I will do whit it yet, and my coding skills are limited, but I thought it could be interesting to share it with you all.