title: osascript changing wallpaper with variable containing the path fails
body: <p>I'm trying to run this script to change my wallpaper but I'm running into issues when the path for the file is in a variable</p>
  
  <pre><code>sh run.sh
  wallpaper_path="$(pwd)/assets/wallpaper.jpg"
  osascript -e 'tell application "Finder" to set desktop picture to POSIX file "$(wallpaper_path)"'
  
  33:48: execution error: Finder got an error: AppleEvent handler failed. (-10000)
  </code></pre>
  
  <p>On the other hand absolute paths work fine</p>
  
  <pre><code>osascript -e 'tell application "Finder" to set desktop picture to POSIX file "/Users/stupifatcat/workspace/project/assets/wallpaper.jpg"'
  </code></pre>
  
  <p>Does anyone have any idea what I'm doing wrong?</p>