Terminal Control

MusicTech

New Member
Is it possible to not only open an application with the terminal, but then also use and control it. I mean I can find the file that runs the app and start it, but once I do that the terminal still prompts but is it doesn't have that computername:~User$ anymore, and I don't know the syntax to do anything else, so I hit ctrl C, but then that quits the app too, so how would I go about opening safari and the typing something into the address bar, if at all possible?
 
Try looking into apple script, but you can only really open and close apps from the terminal not really control them. You can however use a terminal based browser like Lynx with x11 installed.

Assuming you are on a Mac from what it sounds like.
 
yeah, that's what I was doing along with the ./ command. By the way, I was going to make another post about this, but since you brought it up osascript -e is a real pain to type and since I find myself using it a lot, is there anyway I could set up something like a #define statement for the terminal so I can use something like a shortcut string that's shorter. And yes, I am a mac user. Jsut out of curiosity does windows have the capability to understand the generic osascript, I mean osascript isn't limited to just applescript
 
you can toss commands in your standard $PATH, but I don't recommend editing that. I am not sure on the scripts that windows supports either because there is always third party that add compatibility to windows so I am not sure if it will work out of the box or if you need to install third party.
 
Back
Top