I set this up in Automator with a Quick Action
It opens easier from "Finder" not "Application"
Add an AppleScript dialogue box for this code (changing your path to match your file!):
on run {input, parameters}
tell application "Finder"
open file "Macintosh HD:Users:yourname:Documents:FolderName:fileName.ext"
end tell
end run
Then I assigned a keyboard shortcut in Settings (Keyboard > Keyboard Shortcuts... > Services > General)
Hope it works for you
Topic:
App & System Services
SubTopic:
Core OS
Tags: