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.

FM Script glitch when run from Applescript

Featured Replies

I have an Applescript that creates a new record in a db, and invokes an FM script ("Edits") to do certain edits on the new record.

It has worked fine for months. Today I created a new sub-script, ProperCaps:

>> If (Exact(Status(CurrentFieldContents), Upper(Status(CurrentFieldContents))) or Exact(Status(CurrentFieldContents), Lower(Status(CurrentFieldContents))) )

>>>> Proper(Status(CurrentFieldContents))

>> End If

(which simply applies the proper name capitalization function if the text is either all upper or all lower case)

At the end of Edits, I added a series of steps like this:

>> Go to Field["firstname"]

>> Perform Script[subscripts, "ProperCaps"]

This latest series of edits has absolutely no effect when Edits is invoked by the Applescript, yet it works right when I run Edits manually from the scripts menu! Everything else in the Edits script continues to work fine.

I'm mystified. Am i misusing "current field" somehow?

This IF is missing a result. It should (probably) be

If (

Exact(Status(CurrentFieldContents), Upper(Status(CurrentFieldContents))) or Exact(Status(CurrentFieldContents), Lower(Status(CurrentFieldContents))),

Proper(Status(CurrentFieldContents)),

Status(CurrentFieldContents)

)

  • Author

My apologies - what I should have posted originally is:

If ["Exact(Status(CurrentFieldContents), Upper(Status(CurrentFieldContents))) or Exact(Status(CurrentFieldContents), Lower(Status(CurrentFieldContents)))"]

[color:"red"]Set Field ["Proper(Status(CurrentFieldContents))"]

End if

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.