I wanted to set up 2 windows, one of them miniaturized. But all tabs opened in the same window, and I saw the error below in the first tab where I had run the command.
Error setting 'miniaturized = true' on app("/Applications/Utilities/Terminal.app").windows.ID(5177).tabs[1]
CommandError
OSERROR: -1728
MESSAGE: Can't get reference.
OFFENDING OBJECT: app("/Applications/Utilities/Terminal.app").windows.ID(5177).tabs[1].miniaturized
COMMAND: app("/Applications/Utilities/Terminal.app").windows.ID(5177).tabs[1].miniaturized.set(true)
I wanted to set up 2 windows, one of them miniaturized. But all tabs opened in the same window, and I saw the error below in the first tab where I had run the command.
Error setting 'miniaturized = true' on app("/Applications/Utilities/Terminal.app").windows.ID(5177).tabs[1] CommandError OSERROR: -1728 MESSAGE: Can't get reference. OFFENDING OBJECT: app("/Applications/Utilities/Terminal.app").windows.ID(5177).tabs[1].miniaturized COMMAND: app("/Applications/Utilities/Terminal.app").windows.ID(5177).tabs[1].miniaturized.set(true)
This is what my Termfile looks like.
https://gist.github.com/709828