#!/usr/bin/env bash
{ set +x; } 2>/dev/null

usage() {
    echo "usage: $(basename $0)"
    [ "$1" = "-h" ] || [ "$1" = "--help" ]; exit
}

[ "$1" = "-h" ] || [ "$1" = "--help" ] && usage "$@"

# /Applications/iTunes.app/Contents/MacOS/iTunesHelper.app/Contents/MacOS/iTunesHelper
# /Applications/iTunes.app/Contents/MacOS/iTunes
# /Applications/iTunes.app/Contents/XPCServices/VisualizerService.xpc/Contents/MacOS/VisualizerService

ps -ax | grep -v "iTunesHelper" | grep -v grep | grep "MacOS/iTunes" | awk '{print $1}'
