Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Automate the capture and printing of screenshots' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Automate the capture and printing of screenshots
Authored by: mark hunte on Mar 20, '07 05:20:55PM
Just to see if I could do what I think the the Windows app did.
(Screengrab and Auto print) sorry trees

First I reset the Path my screen grabs saved too.

To change the path use


defaults write com.apple.screencapture location /Full/PathToyour/GrabFolder/
(The folder you choose has to exist)

You then Have to logout and back in for it to take effect.
Note Also that although the .plist file may not exist before you do this.
It will be created.

In Automator Create a workflow.
From the 'Preview' Actions' use Print Images.
I set the Options I needed, Scale to fit, Auto rotate, Default Printer.
And saved it as an Automator app named 'Print_Screen'

Save and attach the following folder action to the folder GrabFolder.


on adding folder items to this_folder after receiving added_items
	tell application "Finder"
		repeat with i from 1 to number of items of added_items
			set input to item i of added_items as alias
			tell application "Print_Screen"
				set input to input as string
				open input
				delay 2
			end tell
		end repeat
	end tell
end adding folder items to
Now all I have to do is

Command + shift + 4, then hit the Space bar. I get the Window interaction Screengrab.
Choose my window. by selecting it.

The screen grab goes straight to the GrabFolder, and the folder action in effect send it straight to the printer.

---
mh

[ Reply to This | # ]