Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7769 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi, I need to rename external files (image files) based on the field value of FMP database.

Say I have a DB with following structure.

FilePath(Text) FileName(Text) NewFileName(Calculated=Style, Text), Style(Text)

-------------------------------------------------------------------------

C:samples a.jpg fancy_pants.jpg fancy_pants

I am guessing that I might have to use DDE command from script.

For Example, "rename a.jpg fancy_pants.jpg"

Has anyone done this or perhaps point to a right direction?

Thanks in advance!

Many Thanks

Posted

Since I work on a Mac, I'm a bit hazy here, but I think you can use the Send Message script step to execute the rename command. You can make a calculated field to hold the actual command text like this:

CommandText = "rename "& OldFilename & " " & NewFileName

where OldFileName and NewFileName are fields containing the names.

Then set up your Send message step to use the contents of field CommandText.

This topic is 7769 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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