Thursday, July 14, 2016

Screen Snapshots programatic scrolling

http://stackoverflow.com/questions/4965730/how-do-i-scroll-to-the-top-of-a-window-using-applescript

http://apple.stackexchange.com/questions/113416/automate-taking-a-screenshot-of-specified-area

==================================================================

http://www.seirer.net/blog/2014/9/18/how-to-make-proper-os-x-yosemite-screenshots

My workflow for flawless screenshots

Here is my workflow that gives flawless screenshots - although its a bit of work:
1. open a clean white background (e.g. textedit)
2. get your app in front that you want to screenshot
3. SHIFT-COMMAND-4 and find out the X, Y coordinates as well as hight and width of the window you want to screenshot (they are depicted in your cursor) - remember them
4. open a terminal window and make a screenshot with the following command line:
screencapture -T 10 -P -R551,325,1095,647 screenshot.png

  • -T 10 means you have 10 seconds time to "prepare" your app (open a menu etc)
  • -R means the region that should be captured the coordinates <x,y,w,h> are the ones you found out before
  • -P means that it will open in preview so you can check the output
Save this one as PNG.

==========================================
http://stackoverflow.com/questions/35939381/programmatically-scroll-nsscrollview-to-right

============================================
grab screen window larger than the screen
http://hints.macworld.com/article.php?story=20060629235932385

============================================
How to open a PDF file    99PDF

http://stackoverflow.com/questions/6562235/how-to-open-pdf-raw

How to look at the real PDF source behind the 'raw' binary parts

Jay Birkenbilt's qpdf is a very useful commandline tool (available for Linux, Mac OSX and as source code, under the open source Artistic License), which can unpack most filtered content and re-organize the internal structure in a way that gives you much more insight into it (all objects are numerically ordered, etc.). The commandline to achieve this is:
 qpdf  --qdf  original.pdf  unpacked.pdf
Another useful and free tool (GPL licensed, but Linux-only AFAIK) to look into PDFs is of coursePDFEdit. This one even comes with a GUI (if you prefer that), while still allowing you access to the internal structure and "raw" PDF code.
shareimprove this answer
tags:   99screenshot

No comments: