The next script opens the named information within the Skim app however fails to reduce them after that. What command will in actual fact reduce all home windows of the app?
#! /bin/bash
for f in file1.pdf file2.pdf file3.pdf; do open -a Skim.app ${f}; executed;
osascript -e 'inform utility "Finder" to set seen of course of "Skim" to false'
The script will probably be invoked from zsh (underneath macOS). Oddly, if I concern on the zsh command immediate the next, then all these home windows do get minimized:
[~] % bash
[me:~]% osascript -e 'inform utility "Finder" to set seen of course of "Skim" to false'
So why is the latter command no working instantly from inside the bash script?