Hinweis für alle Nutzer:innen von iPhones und iPads: Zukünftige tomedo-Updates für iOS werden ausschließlich auf iPhone und iPads Geräten mit iOS 16 oder höher verfügbar sein.
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 (730 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.3k Punkte)
ausgewählt von
+1 Punkt
Vielen Dank.
19,535 Beiträge
27,947 Antworten
50,414 Kommentare
32,564 Nutzer