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.

Applescript to change filenames

Featured Replies

Computer:) Mac OS X (10.4.11)

Problem: I have a simple fp7 database (version 8 Advanced) that contains a list of the names of about 400 PDF files along with new names for those files. The DB record contains two fields—"OldFileName" and "NewFileName". All the PDF files are in a single folder. I need a way to automate the change of the old name of each file to the new name.

I imagine that someone else has already done this with AppleScript (which I am not that good at) and I am hoping that someone can steer me to a ready-made solution.

Thanks in advance

Jake

Here is an example file. It is basically renaming the file in the current FileMaker record. There is a routine to either choose a folder, or it will test whatever folder you have entered in the global field. To do all files, it is just a Loop.

There are slight differences however. The renaming AppleScript in the Loop will not test the file names or their existence, as it doesn't want to stop to show you errors. The script to rename a single file will test.

[P.S. The "file name" expects the extension, ".pdf" or whatever in the field. It is generic renaming.]

Rename_Old_to_New.zip

Edited by Guest

  • Author

Fenton,

That's brilliant. I just tried it out and it works great!

Thanks a million

Jake

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.