External tool open file in TextEdit (MacOS)

已回答

 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.

0

Please attach a screenshot with the external tool configuration.

0

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

请先登录再写评论。