title: How to simply run an applescript task from mac excel 2016
body: <p>I am currently in the process of writing a VBA macro at work however I have run into a problem which I am hoping you can help me with.</p>
  
  <p>All I am trying to do is simply run an applescript app from excel, this was very easy to do in the 2011 version but has seemingly gotten a lot more complicated in the 2016 edition.</p>
  
  <p>I have researched various places online but with no luck, the only articles and guides I have come across point towards parameters and checking files but unfortunately I have no idea what any of those are. All I would like to do is to provide the filepath of the applescript  so that excel can run it, is these even possible anymore?</p>
  
  <p>I have attached the relevant applescript file, please don't judge me too hard for how bad it is, I only started learning last week.</p>
  
  <p>The code that worked in Excel 2011 was as follows:</p>
  
  <pre><code>OSA = "/usr/bin/osascript"
  SCRIPT = "/users/savePDF.scpt"
  
  
  
  
  MacScript ("do shell script " &amp; Chr(34) &amp; OSA &amp; " " &amp; SCRIPT &amp; Chr(34))
  </code></pre>
  
  <p>However in excel 2016 I am trying to use the AppleScript task command but get a compile error that the argument is not optional. Although I am not sure what argument they are talking about</p>
  
  <p>Many thanks for all your help.</p>