I have a pretty basic understanding of NSTask in Swift and can run a few commands in my program, but when I run open it says the file does not exist. I added the exact arguments that I use in the terminal, and I don't know what I'm missing. This is the code:
task.launchPath = "/usr/bin/open"
task.arguments = ["/Volumes/STS*/here.docx"]
task.launch()
task.waitUntilExit()
Thanks in advance. This is my first question, so have mercy if it's stupid.