I have been working on this "dashboard" to help control my localhost server environment. It has been scripted in bin/bash for reference. I recently discovered I can use the bin command "osascript" to execute an "AppleScript"-esque command through the Terminal, and am playing around with that to incorporate into my dashboard. This way, I can execute commands and control my localhost server through one window, while in the background it can open separate tasks without obstructing the main window.
Here is my main question revolving this concept, I noticed that upon the execution of an osascript command, it returns the following information: tab 1 of window id 11148.
This is the bash statement from my .sh script:
osascript -e "tell application \"Terminal\" to do script \"cd $devFolder;svn up\""
And this is the output I can see in my terminal:
tab 1 of window id 11197
Originally, I had wanted to have it just open a new tab, but i'm fine with it opening a window as for the purpose of just having it work. So as my question states, is it possible to somehow store or retrieve that window id of the terminal window that was just created? Allowing me to interact with that specific window and control it?