Closed seabornlee closed 2 years ago
Hey @seabornlee, yes! Try Task.run('/usr/bin/open', ['file-you-want-to-open.pdf']);
?
Thanks very much! It would be great if have this example in docs.
Good idea, I’ll add it! 👍
@kasper When path contains space, it won't open, what should I do?
@seabornlee Hey! The same as you would do in a terminal. Escape it or put the path in quotes. https://apple.stackexchange.com/questions/14683/how-to-cd-to-a-directory-with-a-name-containing-spaces-in-bash
Thanks!
I tried Task, or require child_process, neither can do it.