Mystified. How can an AppleScript that works perfectly from Script Editor be broken when called by Keyboard Maestro? Putting off hunting for an actual answer to next week.
Mystified. How can an AppleScript that works perfectly from Script Editor be broken when called by Keyboard Maestro? Putting off hunting for an actual answer to next week.
@jeremycherfas I would suspect a different environment when running it. When you invoke these from a shell it sometimes can behave differently than when invoking directly.
@V_ Is Keyboard Maestro considered a shell? I thought it only ran the commands given, inserting specific variables as required. The AppleScript does contain a shell command. Maybe that’s it.
@jeremycherfas I think it is, I’ve never used it myself, but in the cases where I used automation tools or run command line stuff from my own code, it usually involves creating a shell inside your code in which the script runs, and you need to do special things for it to look the same as when running something via double click. And in most cases it is simpler to change your script.