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: Matt Comeione <email@hidden>
- Date: Thu, 16 Jan 2003 20:58:57 -0800
Is there any way to specify the window like this in os 10.1.5?
>
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.
--
matt comeione
email@hidden
http://home.earthlink.net/~comeione
_______________________________________________
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.