That’s a simple solution I never thought of…I am starting to get more into applescript and shell scripts for KM though. Thanks for sharing this.
I used to have a need to open the current Preview pdf in a different app, e.g., PDF Expert.
I can see now that TJ’s script could easily be adapted to do that task, so I have adapted it with this little script:
try
tell document 1 of application "Preview"
set f to path
close
end tell
tell application "Pixelmator Pro" to open f
end try
Using an IF statement, my version now opens the current file in PDF Expert if it is a PDF, or attempts to open it in Pixelmator Pro if it’s not.