I have a macro that moves a copy of a selected file to a folder, is there a way I can bypass the KM dialog saying it can't do that because the file already exists in the folder? (I often make changes to an art file and update the linked image in my indesign document by replacing the older same-named version).
I've attached a screenshot of the current macro, and I've also included the actual macro.
Well, at least that makes it clear that the Trash File action is what's failing, but I'm still at a loss as to why that would fail while the Move File action works fine. At this point, the only thing I can think of is to try the Interactive Help option from the KM Editor's Help menu, select "Something expected is not happening," and see if that clears anything up.
Thanks for the input, I also have version 9.0.4... do you know how I'd be able to move a file into another folder instead of the trash and if the file is already there I wouldn't get the KM dialog saying it can't do that cause the file is already there?
Fortunately, I think I figured it out. For some reason, the version of the macro you were using had a variable containing the full file path (Local__FileToMove) where it should have used the one that only contained the file's name (Local__FileName). I got the same "file already exists" error when I tried it with the version you were using, but fixing the variables being used seems to have done the trick. Now that your Trash File action is working properly, this should work for you:
By the way, if the reason you had the first action option-click rather than normal click was to have the file be copied rather than moved, I'm afraid that wouldn't work, since KM isn't moving or copying the file by dragging it the way we would manually. You used the word "move" in your OP and this thread's title, so I assumed you wanted to move rather than copy, but if you do just want to copy, the answer isn't to change the mouse click action, but the file one at the bottom:
How might I modify the above macro for a different usage where I want to move (not copy this time) a file to a folder but if a file with the same name already exists there I want to keep them both (I don't care how the new or old file's name is appended to pull this off). Also, I might in the future want to move a third or fourth file with the same name into this folder.
(What I need this for: instead of always tossing everything into the trash, I have a folder named "x" where I instead move things, just in case I might need them in the future, and once a year or so I toss old files from this folder... but sometimes there's already a file in there with the same name so I'd like to keep both that and the new one I'm moving into the folder)