title: Communication between applescript and FileMaker
body: <p>I'm currently writing an applescript to be run within FileMaker. I need to tell filemaker what the name of its application is (FileMaker Pro or FileMaker Pro Advanced or whatever) so that I can within ANOTHER applescript within filemaker I can say "tell application filemaker"</p>
  
  <p>I currently have a script that figures out the name of the app file, however, the problem is getting it back into filemaker. The name I want to send back is in the applescript variable "FMName" I can think of 2 options</p>
  
  <p>1)</p>
  
  <pre><code>tell application FMName
     set cell "gFMName" of current record to FMName
  end tell
  </code></pre>
  
  <p>The problem with this is that even though I know that application FMName will have a set cell command, applescript doesn't and so complains.</p>
  
  <p>2) have the applescript either return a value or an error message and somehow get FileMaker to accept this and do something useful with it.</p>
  
  <p>The problem with this is that 1)it appears that Applescripts can only return numbers (is this true?) 2) I don't want an error dialog or anything, and 3) I have not figured out how to get filemaker to accept this return value in the first place...</p>
  
  <p>Anyone have any better ideas on how to do this?</p>
  
  <p>Thanks! </p>