In the following macro I'm simply trying to get the components of the path so that in a later stage I can rename using user input but keeping the file in the same folder. I'm attempting to display some of the components so that I'm confident I have the correct variables to use later. This macro consistently fails with one strange exception. If I make an edit, say add a space to the label in the display text window and use "Try" the macro runs. However, after that one run it fails every time whether I use "Try", "Run" or Status Menu.
I'd really appreciate any suggestions on what I'm doing incorrectly and how to get this working.
I copied your macro (see below) and it works consistently for me. The only changes that I made were to change the global variables to local variables, but that would not affect the results.
There is no notification of an error, I presume. Take a look at the log for KM’s engine just in case there is a clue there after you have triggered your macro.
I see a Display text action in your original version of the macro. If you enable it, does a notification appear? If so, your macro is triggering reliably, but does not consistently recognise files as still being selected in the Finder (for some reason!).
Is the enclosing macro group available to all applications? Or if not, are you consistently testing this macro with the same application in the foreground?
Thanks for your response. I appreciate you going through my work and for your tips.
With a restart this morning the macro is now working, in spite of countless failures last night.
Perhaps that is my lesson, sometimes its better to log out and then return at a later time .