Currently I find no means of detecting if a session is busy with AppleScript.
Apple's Terminal.app allows the following syntax:
tell application "Terminal" tell selected tab of front window if its busy = false then
I'd be grateful to see something similar in iTerm.
If I've missed something I'd appreciate being enlightened.
Log in to post a comment.