Ich versuche, ein Script zu schreiben, das alle ToDos schließt. Dafür möchte ich die Kombination von Command + Option + Shift + Pfeil nach links verwenden. Leider finde ich nirgends, wie ich diese Tastenkombination formuliere. Könnten Sie mir bitte helfen? Danke.

Hier ist, was ich bisher gefunden habe, aber es funktioniert nicht:

 

tell application "tomedo"

activate

tell application "System Events"

keystroke (key code 123 using {command down, option down, shift down})

end tell
Gefragt in Frage von (850 Punkte)
0 Punkte

1 Antwort

Beste Antwort

Moin,

das geht so (open location... und CMD-K stellen sicher, dass der Fokus für die Tastatureingabe in der Kartei liegt, sonst klappt es je nach Auslösesituation der AK nicht richtig): 

open location "tomedo://patient#$[pid]$"

-- CMD + K
tell application "System Events"
	keystroke "k" using command down
end tell

tell application "System Events"
	key down command
	key down option
	key down shift
	key code 123 -- Pfeil nach links
	key up command
	key up option
	key up shift
	key up 123
end tell

 

Beantwortet von (10.6k Punkte)
ausgewählt von
+1 Punkt
Vielen Dank.
19,624 Beiträge
28,063 Antworten
50,662 Kommentare
33,148 Nutzer