-
Probier mal dieses Script, es ist in Ventura erstellt worden und funktioniert nur auf Deutsch
Es setzt die folgenden Parameter:
- Ansicht: Tag
- Ganztägige Ereignisse aus
- Details aus
Show Plain Text- activate application "Calendar"
- tell application "System Events"
- tell process "Calendar"
- keystroke "p" using command down
- repeat until exists window "Drucken"
- delay 0.2
- end repeat
- tell window "Drucken"
- tell pop up button 2
- perform action "AXShowMenu"
- repeat until exists menu 1
- delay 0.2
- end repeat
- pick menu item "Tag" of menu 1
- end tell
- if value of checkbox 1 is 1 then
- perform action "AXPress" of checkbox 1
- end if
- if value of checkbox 2 is 1 then
- perform action "AXPress" of checkbox 2
- end if
- -- click button "Fortfahren"
- end tell
- end tell
- end tell
Wenn man die beiden -- in der Zeile click button "Fortfahren" entfernt, springt das script weiter zum Printer Dialog - Ansicht: Tag
-
"keystroke 'p' using command down" will das Script nicht ausführen …
error "„System Events“ hat einen Fehler erhalten: Skripteditor ist nicht berechtigt, Tastatureingaben zu senden." number 1002
Auch wenn das Script als App kompiliert wird, bleibt der "Fehler" bestehen.
-
-