Advertisement
applehelpwriter

change multiple desktop backgrounds

Jun 8th, 2013
598
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.43 KB | None | 0 0
  1. #! /bin/bash
  2. #script to change all desktop backgrounds
  3. # Applehelwriter.com 2013
  4. # don't forget to make the script executable with
  5. # sudo chmod a+x
  6.  
  7. echo -n “Drag and drop an image file here then press ‘return’ or
  8. press ‘control-c’ to cancel…”
  9. read -e WLPR;
  10.  
  11. function change_wallpaper
  12. {
  13. defaults write com.apple.desktop Background “{default = {ImageFilePath=’$WLPR’; };}”; killall Dock
  14. }
  15. change_wallpaper
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement