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
  1. activate application "Calendar"
  2. tell application "System Events"
  3.   tell process "Calendar"
  4.     keystroke "p" using command down
  5.     repeat until exists window "Drucken"
  6.       delay 0.2
  7.     end repeat
  8.     tell window "Drucken"
  9.       tell pop up button 2
  10.         perform action "AXShowMenu"
  11.         repeat until exists menu 1
  12.           delay 0.2
  13.         end repeat
  14.         pick menu item "Tag" of menu 1
  15.       end tell
  16.      
  17.       if value of checkbox 1 is 1 then
  18.         perform action "AXPress" of checkbox 1
  19.       end if
  20.       if value of checkbox 2 is 1 then
  21.         perform action "AXPress" of checkbox 2
  22.       end if
  23.       -- click button "Fortfahren"
  24.     end tell
  25.   end tell
  26. end tell


Wenn man die beiden -- in der Zeile click button "Fortfahren" entfernt, springt das script weiter zum Printer Dialog
----------
Gruss

Stefan