Search code examples
applescriptfilemaker

Filemaker Pro 12 insert field Contents into applescript?


I have a record in filemaker pro 12 that contains some basic information about users computers on the local network. One of the fields, is a IP Address field. I would like to take the contents of this field and insert it into a short applescript that will run when a button is clicked on.

tell application "Screen Sharing"
    getURL "MacForm::IP Address"
end tell

MacForm is the name of my form and IP Address is the name of my field. how do I insert the contents of this field into the apple script?


Solution

  • Use calculated AppleScript =

    "tell application \"Screen Sharing\"¶    
    getURL " & Quote ( MacForm::IP Address ) & "¶
    end tell"
    

    enter image description here