How to Tell Where an AppleScript Error Was?

2023-10-20 16:08:16 Action 15052745 failed: Execute an AppleScript failed with script error: text-script:434:435: script error: Expected expression, “)”, etc. but found unknown token. (-2741)

Does anyone know how to decode the action number (15052745), and what the text-script numbers (434:435, which I'm assuming are line numbers) refer to? (I'm guessing there's no way to know what Macro is being referenced?) Thank you.

This will take you to the action:

tell application "Keyboard Maestro"
	selectAction 15052745
end tell

I believe the 434:435 numbers will direct you to the character range of the offending token, irrespective of how many lines are in your script.


You're brilliant - thank you!

1 Like