I have a question that is probably very easy for anyone Keyboard Maestro savvy which I'm definitely not.
I have created a macro to duplicate a file and increment its name (or append " 2" after the base name if it doesn't finish with a number itself). But I would like that new created file to be the selected one once the macro is finished, not the source one. How would I do that please?
tell application "Keyboard Maestro Engine"
set itemName to getvariable "newFileName"
end tell
tell application "Finder"
tell front window
select item itemName
end tell
end tell
Wow thanks a lot I really appreciate your help.
At first I thought the AppleScript didn't work but that was because I was testing with a file on my Desktop, so I suppose the "tell front window" was the issue. When trying in a floating window finder it works flawlessly.