Advertisement
applehelpwriter

ScreenGrab.app

Mar 14th, 2013
746
0
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"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement