0
I want to change my iterm background photo in every 10 mins.
So I tried to use cmd /usr/libexec/PlistBuddy
to change the config file com.googlecode.iterm2.plist
.
And here is my command:
/usr/libexec/PlistBuddy -c 'Set :"New Bookmarks":0:"Background Image Location" "/Users/boy/imgs/'$(( $RANDOM % 100 ))'.jpg"' ~/Library/Preferences/com.googlecode.iterm2.plist
But it did not work immediately. I have to quit my iterm and reopen it, and then the photo changed.
It just seems that the plist file is not loaded immediately after I changed it.
So my question is how to reload the plist file to make my change work immediately?
You've already discovered how & when plists are loaded - at launch. – Tetsujin – 2019-07-20T16:58:11.517
1I want to change my background photo every 10 mins. So I am wondering is there a way to reload the config file once I change it. – ggeh – 2019-07-21T02:32:37.837