re: Screen Capture
re: Screen Capture
- Subject: re: Screen Capture
- From: Emmanuel <email@hidden>
- Date: Tue, 9 Dec 2003 22:42:31 +0100
At 12:15 PM -0800 09/12/03, j.e.b. wrote:
>
>> do shell script "screencapture -S /tmp/screengrab.pdf ; sips -s format
>
>> jpeg /tmp/screengrab.pdf --out /tmp/screengrab.jpg"
>
>
How would I save this PNG to the Desktop rather than the /tmp/ directory?
Get the POSIX path to the desktop with:
------------------
set x to (path to desktop)'s POSIX path
------------------
Escape it for the shell's convenience:
------------------
set x to quoted form of x
------------------
Then build up your shell script with the concatenation operator "&":
------------------
set fred to "screencapture -S " & x & " [etc
------------------
Finally run it:
------------------
do shell script fred
------------------
Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.