Re: Multiple commands to a single terminal window
Re: Multiple commands to a single terminal window
- Subject: Re: Multiple commands to a single terminal window
- From: John Stewart <email@hidden>
- Date: Thu, 16 Jan 2003 13:49:50 -0500
On Thursday, Jan 16, 2003, at 12:24 America/New_York, Matt Comeione
wrote:
I've been trying to send commands to a specific terminal session
without any
luck. When running "do script with command "ls" in first (or front)
window
I receive a syntax error "Can't get "ls" in front window. Access not
allowed". I am only using this command to test interaction between
AppleScript and the Terminal.app in order to clarify interactions.
The end
goal is to create an AppleScript Studio front end to Csound. I would
prefer
that all interactions with the user interface be directed to the same
terminal window, and to exit that particular session on quitting the
application. Any suggestions on how to proceed?
With AS 1.9.1 in OS X 10.2.3, try this -
tell application "Terminal"
activate
do script "ls;cd /users; ls -la" in window 1
end tell
"with command" is no longer needed.
John
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.