#!/bin/sh -e

osascript 2>/dev/null <<EOF
  activate application "Finder"
  tell application "System Events"
    set visible of processes where name is not "Finder" to true
  end tell
  tell application "Finder" to set collapsed of windows to false
EOF
