• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Multiple commands to a single terminal window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple commands to a single terminal window


  • Subject: Re: Multiple commands to a single terminal window
  • From: John Stewart <email@hidden>
  • Date: Fri, 17 Jan 2003 05:13:41 -0500

On Thursday, January 16, 2003, at 11:58 PM, Matt Comeione wrote:

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.


IIRC that ability was changed with the 10.2 release of the OS. It should be in the release notes on Apple's site but I can't check that at the moment, my boss expects me to come to work :)

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.

References: 
 >Re: Multiple commands to a single terminal window (From: Matt Comeione <email@hidden>)

  • Prev by Date: Re: Why does the Script Editor Service do this?
  • Next by Date: Cannot record in Scriptmaker
  • Previous by thread: Re: Multiple commands to a single terminal window
  • Next by thread: Frontmost app
  • Index(es):
    • Date
    • Thread