Selective File Write

I'm having a bit of trouble editing selective text files. I want to pass through a large number of files in a directory, look at the editing and choose whether or not to write the proposed changes to the file.

I know the problem must be here, but I cannot figure out how to fix it:

Untitled

Here's the macro:

Replace Text in Selected Files.kmmacros (6.4 KB)

Your if condition won't work, I don't think. You want to check that the %PromptButton% text is either Yes or No:

Full details on the wiki page, in the Buttons section:

https://wiki.keyboardmaestro.com/action/Prompt_for_User_Input

-rob.

Thanx, Rob... That worked!

2 Likes