My Applescript looks like this and works well:
tell application "Keyboard Maestro Engine" set Chesspgn to getvariable "Chess Pgn" set pgnfilename to getvariable "pgnfilename" end tell tell application "Keyboard Maestro Engine" say Chesspgn using "Kate" saving to (((path to desktop) as string) & pgnfilename) --speaking rate 140 end tell
But for the life of me I can’t make it write to
Any tips would be appreciated. I have read numerous webpages on the topic but still can’t do it! I’m fairly sure I need to set the path using POSIX and an alias. I’ve tried many many variations but all result in error messages:
Keyboard Maestro Engine got an error: Can’t make “/Users/username/Dropbox/ChessPGNs” into type constant.
(Full disclosure, I’ve written this request on the KM forum as well, wherever I get the first answer, I’ll update the other one. If that’s bad of me, feel free to delete, or let me know and I will).