> On 5 Jan2022, at 5:14 AM, Christiaan Hofman <cmhof...@gmail.com> wrote: > > > >> On 5 Jan 2022, at 02:43, Murray Eisenberg <murrayeisenb...@gmail.com >> <mailto:murrayeisenb...@gmail.com>> wrote: >> >> I’m using Skim 1.5.7 under macOS Monterey 12.1. >> >> With the previous Skim version and/or macOS Big Sur, after I opened a >> document in a Skim window, the command >> >> osascript -e 'tell application "Skim" to set miniaturized of window 1 >> to true’ >> >> from the command line or from within a shell script called from the command >> line would minimize that window. >> >> Now, however, I get the error >> >> 5:23: syntax error: Internal table overflow. (-2707) >> >> and the window is not minimized. >> >> What osascript or other command will now accomplish the same thing? >> >> > > Monterey 12.1 has broken AppleScript for certain apps, such as Skim. You can > wait for the next release which should work around this bug, which should > come out soon (I wanted to do this last Monday, but Apple also messed up some > registration for me). You can also try using JavaScript instead: > > osascript -l JavaScript -e 'Application("Skim").windows[0].miniaturized=true' > > Christiaan > >
Thank you — that workaround works nicely. --- Murray Eisenberg murrayeisenb...@gmail.com 503 King Farm Blvd #101 Rockville, MD 20850-6667
_______________________________________________ Skim-app-users mailing list Skim-app-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-users