Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to FileMaker Pro Advanced Calculated Applescript ?

Featured Replies

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

Did this work in an older version of FileMaker. If so, you may need change these setting.

 

 

Accounts and Privilages.png

  • Author

Sorry but this does not work!

2 hours ago, Lee Smith said:

Did this work in an older version of FileMaker.

Too bad that didn't work. I'm not knowledgeable in AS, so someone else will need to jump in.

Lee

What do you mean get it "into an AppleScript"? Does the script get invoked outside of FileMaker (which is what Lee's suggestion is for)? Or does it start from a FileMaker script?

7 hours ago, LarsM said:

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

You need to select the Calculated AppleScript option and construct a calculation formula that returns the desired script as text, with the variable's value inserted into it - for example: 

"set content to " & Quote ( $$NAME )

Alternatively, place the value in a field and have your (native) AppleScript read it from there.

Edited by comment

  • Author

Fitch! It  start from a FileMaker script?

  • Author

Help can anybody help a novice to tell how I should write an FileMaker Pro Advanced Calculated Applescript if I have an Applescript that looks like this....

 

tell application "Leitz Icon Software"

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

open label pathToScriptFolder & "BlankLabel.LeitzLbl"

delete label objects

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

tell first address object

set content to "Alex Smith

Smith inc.

NY 12345-4568"

set horizontal alignment to Center

set vertical alignment to Bottom

set scaling mode to AutoFit

end tell

save label in pathToScriptFolder & "LabelWithAddress.LeitzLbl"

end tell

15 hours ago, LarsM said:

Fitch! It  start from a FileMaker script?

That's what I'm asking. Does it?

This seems to be a continuation of your earlier thread, and should have been posted as a follow-up there.

Anyway, here's a nifty way to turn a native AppleScript into a calculated one: paste it into a Filemaker text field, then copy the result of the following calculation:

Quote ( YourTextField )

and paste it into the Calculated AppleScript's Specify Calculation window.

Edited by comment

I merged the two topics.

  • Author

Ok thank you!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.