Change Mac Wallpaper When It’s Raining

How to make your Mac’s wallpaper change once the Weather is raining? By using a little tweak from Hazel, Dropbox and IFTTT, this cool idea can be done.

Requirements

  1. Dropbox installed in Mac
  2. Hazel installed
  3. Rainy wallpaper

Steps

Change Mac Wallpaper When It's Raining using automation tools IFTTT, Hazel and Dropbox

Change Mac Wallpaper When It’s Raining using automation tools IFTTT, Hazel and Dropbox

  1. Put the wallpaper into (Dropbox/IFTTT/Weather) folder.
  2. Create RULES in Hazel: –
    • If NAME Contains Rain
    • EXTENSION Is txt
  3. Create ACTION in Hazel:
    • Run AppleScript – embedded script:
      Hazel AppleScript for Change Mac Wallpaper when it's raining using Dropbox, IFTTT and Hazel

      Hazel AppleScript for Change Mac Wallpaper when it’s raining using Dropbox, IFTTT and Hazel

      tell application "Finder" 
        set desktop picture to POSIX file "/Users/YourName/Dropbox/IFTTT/Weather/your-wallpaper.jpg"
      end tell
    • Move to folder – Trash
  4. Install Amir’s IFTTT script here:

How It Works?

Once the Weather change to Rain, IFTTT will upload new text file into “Dropbox/IFTTT/Weather/Rain_Date.txt” format.
Hazel detect a new file name contains “Rain” then run the AppleScript to change your stated wallpaper.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.