Jump 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.

Featured Replies

I wish all functions could take computed text arguments like GetField does.

Is there anyway to be able to *compute* or *lookup* the name of a layout to go to?

Is there anyway to be able to *compute* or *lookup* the name of a script to perform?

Is there anyway to be able to *compute* or *lookup* the name of an external file in which to perform a script?

For example, for each file I add to my system, I must add a new Preview layout to my floating Preview panel file and 8 new scripts. The layouts are identical except they call the corresponding scripts. The scripts are identical, except they reference the corresponding layout and the corresponding external file. And this duplication and renaming is all the more annoying due to the lack of cut n paste. But that'll be nothing compared to the hell when I find a bug in the Preview scripts and have to change it in 20 identical spots.

I'm pretty sure the answer is "no, you have to do it the hard way", but thought I'd check.

There's definitely some things about FMP that are NOT good!

1) You can go to a layout by number or you can create a looping script that goes to the next layout and tests Status(CurrentLayoutName) against a global field setting then exits.

2) No. With just FM, you must do a series of tests:

If(Condition1)

Perform Script(Script1)

End If

If (Condition2)

Perform Script(Script2)

End If

...

3) Same as 2).

-bd

Here is a formula which will 'compute' layout number from layout name:

PatternCount(Middle(LayoutNames(Status(CurrentFileName)), 1, Position(LayoutNames(Status(CurrentFileName)), gLayoutName, 1, 1)), "

  • Author

Hmmm... ugly as that is, #2 is actually far better than the layout and script duplication I had embarked upon.

Thanks!

Create an account or sign in to comment

Important Information

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

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.