tell application "Preview" open dateiname tell application "System Events" to tell process "Preview" set frontmost to true keystroke "s" using {option down, command down, shift down} tell pop up button 1 of group 1 of sheet 1 of window 1 click click menu item "JPEG" of menu 1 end tell click button "Sichern" of sheet 1 of window 1 end tell return stoppen delay 1 close front document end tell