Okay, I'm finally being dragged kicking and screaming into the 21st Century, and I'm preparing to update my daily Mac to OSX Catalina. This means saying goodbye to 32-bit apps, including the old version (9) of Final Draft I've kept around for opening old screenplays. I've been writing screenplays for many years, so I have 300+ .fdr files which can only be read by FD9.
Fortunately, FD9 has a built-in feature that will resave the FDR file as FDX (the format of current Final Draft 12). All you have to do is open the file, close it and save it.
Since I have so many files to convert, I wanted to use KM to batch convert them from a Finder selection. Each file needs to go through these steps:
Open the selected FDR file in Final Draft 9
Click OK in the alert that explains how to save as FDX
Close the FDR document
When the Save Button comes up, click it
When the second Save button comes up, click it
Set the tag of the FDR file to Green. to show me that it's been converted
If tried this a few times, and can't get it to behave. Any help appreciated. Here's my macro WIP:
What fails? I glanced over it, and didn't spot any obvious errors. You didn't say what the error was.
In any case, I would open the Debugger window and ensure "Pause New Macros" is checked, and step through the macro one line at a time to see when it misbehaves. Have you tried that?
I've been using a macro that does essentially this but for Excel files for a while now. It's very similar to what you've got here, but the big difference seems to be that I use the Split Path action to grab the current file's name and ensure it's frontmost before saving and closing it; maybe doing something similar would help you? Here's my macro for reference:
Yes.
I'm a producer as well as a writer, but not famous. There are only a handful of people famous for being a producer -- like Jerry Bruckheimer, Scott Rudin and Jason Blum.
I've been working from home since March 2020, which sometimes feels like jail.
Okay, I've found one problem with my original approach: I opened the Finder Selection in FD9, rather than each one by name in turn. That's why it was opening all the files without clicking on the buttons.
Thanks to all, I finally got it to work. The debugger was a big help, as was the Split Path.
Ultimately, Final Draft 9 was doing some weird things that KM couldn't understand, so I changed the commands from a close-and-save to a save-and-close. Now it works like a charm.
Here's the final working macro:
[EDITED] I added a go to path right before the save so that the new file is saved to the same folder as the old one.