r/macprogramming • u/reddioment • Sep 25 '16
Programatically take screenshot of mac desktop? | Swift 3
Is it possible to take a screenshot programatically using Swift 3 on macOS? I Was thinking of a command line tool but anything is fine.
1
Upvotes
View all comments
Show parent comment
1
u/[deleted] Dec 10 '16
You can execute this through NSTask if I'm not mistaken.