title: messages - AppleScript send image on macOS 12
body: <p>So I have this AppleScript</p>
  <pre><code>set filePath to (path to desktop as text) &amp; &quot;photo.png&quot;
  
  tell application &quot;Messages&quot;
      set targetService to 1st account whose service type = iMessage
      set targetBuddy to participant &quot;+18005555555&quot; of targetService
      send file filePath to targetBuddy
  end tell
  </code></pre>
  <p>worked before but in macOS 12 it looks like it's working (see the progress bar) but eventually timesout and states it can't be sent.</p>
  <p>Is there an update to sending this?</p>