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.

Is "Find & Replace" possible within the script possible?

Featured Replies

Hi all,

I'm about to start developing a project in FM8 that's very similar to a project I already developed in FM7. In my original project I relied heavily on global fields in a set of scripts for parsing EXIF metadata from JPEGs. I'd like to replace all of the many occurrences of those global fields with script variables. Is there any way to do a find & replace in a script?

Here's an example of what I'd like to do:

Script currently says- Set Field [shutterSpeed; Left (gMetaData; 11) & Middle (gMetaData; 14;20)]

I want script to say- Set Field [shutterSpeed; Left ($$MetaData; 11) & Middle ($MetaData; 14;20)]

The above a huge oversimplification of what I want to do, as there are about half a dozen global fields and probably around 100 occurrences of them in my script set.

One thing I thought of doing is to just rename my global fields using the variable syntax (i.e. with "$$"), which would essentially make them variables and then I could just eliminate the fields. Any thoughts on this?

I'd appreciate suggestions If anyone knows of a good way to accomplish what I want to do.

Thanks in advance!

Not yet. I have a tool that I use for myself that does that. But it's not ready for commercial release. Sometime early next year it will.

My tool uses both the objects that FM puts on the clipboard when you copy a script or a script step, or it just plains reads it from the script and manipulates the FM UI like I did with FMrobot.

In short: it's entirely doable...

  • Author

Thanks for the reply, Wim.

Okay, so now I know it's possible but I still haven't a clue as to how to approach solving this. The main problem (at least as I see it) is that I don't know how to work with the data on the clipboard when a script is copied. (my attempts of opening it up in a text editor have failed)

Does anyone know how to do this AND be willing to part with the information? :

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.