Open File Using FilePath

I wrote a simple KM script to copy the highlighted file path text and then do an Open %SystemClipboard% using default application.

This works fine when I test it in KM, but I get a file chooser window from the Finder when I run it outside of KM.

Any idea how to avoid that?

Hey Russell,

Next time please post an actual working macro, so people can test your work without having to take the time to recreate it.

This system works fine for me using Keyboard Maestro 10.2 and macOS 10.14.6 Mojave.

No Chooser Dialog.

Where are you copying from? What app(s)?
What kind of paths? Full paths? Or $HOME-paths?
What kind of trigger are you using?

Take Care,

(Keyboard Maestro Moderator)

Hey Chris,

Sorry about that; I'll upload the macro itself next time!

After lots of testing, this turned out to be specific to the Notion web app itself so not an issue with KM, but thanks!

(I've got some additional problems there because Notion applies automatic Markdown formatting and I'll have to write something with regex to prevent triggering auto formatting but that's a different issue entirely.)

1 Like

If you don't mind the formatting in Notion but that's what is messing up your path in the "Open" step, do the "Copy" then regex the System Clipboard to get the cleaned-up version for your "Open" action.