SHARE
TWEET

ScreenGrab.app

applehelpwriter Mar 14th, 2013 215 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (*
  2.  
  3. ScreenGrab.app  
  4. Improved version of the code on
  5. http://applehelpwriter.com/2013/03/12/getting-to-grips-with-applescript/
  6. that replaces the / with . in the screenshot name
  7.  
  8. *)
  9.  
  10. set myList to every character of time string of (current date)
  11. set this_item to "."
  12. repeat with i in myList
  13.         if the contents of i is equal to ":" then
  14.                 set the contents of i to this_item
  15.         end if
  16. end repeat
  17. do shell script "screencapture -x ~/Desktop/@" & myList & ".png"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top