Författare Ämne: Filemaker variable into Applescript  (läst 1192 gånger)

0 medlemmar och 1 gäst tittar på detta ämne.

Utloggad LarsM

  • Nykomling
  • Antal inlägg: 3
    • Visa profil
Filemaker variable into Applescript
« skrivet: 5 oktober, 2018, 19:28 »
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