> On 5 Jan 2022, at 02:43, Murray Eisenberg <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?
> 
> ---
> Murray Eisenberg              murrayeisenb...@gmail.com 
> <mailto:murrayeisenb...@gmail.com>
> Mobile (413)-427-5334
> 503 King Farm Blvd #101               
> Rockville, MD 20850-6667      

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

_______________________________________________
Skim-app-users mailing list
Skim-app-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-users

Reply via email to