AnsweredAssumed Answered

value from FileMaker Pro Advance 17 to an Applescript

Question asked by lm01@munters.nu on Oct 5, 2018
Latest reply on Oct 9, 2018 by lee

How do I get a value from FileMaker Pro Advance 17 variable as ($$NAME) into an Applescript that looks like;

 

tell application "Leitz Icon Software"

   -- Store path to this script folder.

 

   set pathToScriptFolder to POSIX path of ((path to me as rich text) & "::")

   -- Open blank label.

   open label pathToScriptFolder & "LabelWithAddress.LeitzLbl"

  

   -- Delete all objects to make sure the label is blank.

   delete label objects

  

   -- Create new address object.

   make new address object with properties {x position:0.3, y position:0.3, width:8.2, height:3}

  

   -- Change address object properties.

   tell first address object

      -- Setting content.

      set content to $$NAME

     

      -- Setting content alignment

      set horizontal alignment to Center

      set vertical alignment to Bottom

     

      -- Set the object scaling to auto fit.

      set scaling mode to AutoFit

   end tell

  

   save label in pathToScriptFolder & "LabelWithAddress.LeitzLbl"

end tell

Outcomes