Skip to content

Commit

Permalink
fix(jpegmini): add support for macOS Monterey
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMason committed Nov 13, 2021
1 parent 6e4cd16 commit 7060d05
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion osascript/run-jpegmini.applescript
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ on runJPEGmini(jpegDirectory, jpegMiniAppName)
end if
end repeat
end if
(* >= HIGH SIERRA *)
(* HIGH SIERRA *)
if combo box 1 of sheet 1 of window 1 exists then
set value of combo box 1 of sheet 1 of window 1 to jpegDirectory
repeat
Expand All @@ -50,6 +50,17 @@ on runJPEGmini(jpegDirectory, jpegMiniAppName)
end if
end repeat
end if
(* >= MONTEREY *)
if text field 1 of sheet 1 of window 1 exists then
set value of text field 1 of sheet 1 of window 1 to jpegDirectory
repeat
if (value of text field 1 of sheet 1 of window 1) is not equal to jpegDirectory then
delay 1
else
exit repeat
end if
end repeat
end if
-- give Finder time to resolve the path
delay 2
keystroke return
Expand Down

0 comments on commit 7060d05

Please sign in to comment.