Hallo Herr Müller,
verstehe ich richtig, dass ihr Script (und somit der flic.io Button) aktuell nur funktioniert, wenn tomedo im Vordergrund ist?
Um das Problem zu umgehen, können Sie tomedo per Script in den Vordergrund holen und im Anschluss die Tastenkombination ausführen:
tell application "tomedo"
activate
end tell
So würde das Script dann aussehen:
tell application "tomedo"
activate
end tell
tell application "System Events"
to keystroke "n" using command down
end tell