Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKristof Kocsis
15,455 PointsProgramatically take a screenshot | Swift 3, macOS
Is it possible to take a screenshot in macOS Sierra using Swift 3? I don't mind if its in a playground, cocoa Application or Command Line Tool. Although I would prefer Command Line Tool and playground.
1 Answer
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 PointsHave you tried screencapture
:
It should be installed by default
Don't have Mac around for now. But it looks like it should work:
http://osxdaily.com/2011/08/11/take-screen-shots-terminal-mac-os-x/
http://dailymactips.com/take-screenshots-on-your-mac-using-the-terminal-application/