SHARE
TWEET

change multiple desktop backgrounds

applehelpwriter Jun 8th, 2013 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
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