External tool open file in TextEdit (MacOS)

Answered

 If I type "open $fileName$" in a shell, the Mac will open the file in TextEdit, but if I create an external tool Open = "/usr/bin/open $fileName$" I get an error "No such file or directory" which doesn't make any sense as the paths are all fully specified.

2 comments
Comment actions Permalink

Please attach a screenshot with the external tool configuration.

0
Comment actions Permalink

Never mind - I'm an idiot.

Instead of putting the file path macro in the parameters box, I put it in the program name box. Once I moved it to the correct place, it worked great.

0

Please sign in to leave a comment.