I want to create a macro with a Prompt with list action that allows me to add a new record for a new client to a tab-delimited file Clients.txt, edit an existing record or simply retrieve a record via the system clipboard.
I'm having problems with getting the If-Then logic correct.
If I select -Add a new client in the Prompt with list, a Prompt for user input is displayed and the new client's data are written to the file Clients.txt. So far so good.
But now ...
How and where do I place the second condition, check for user input of -Edit an existing client?
How can I overwrite the record for an existing client in Clients.txt with the edited data?
Here is the enhanced version, allowing adding, editing and pasting a record. I'll use it for a client 'base', but I think that the techniques are so generic that other KM users can adapt it for their own purposes?