• 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: 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.

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

  • Prev by Date: Re: [OT] AppleScript scripts versus Shell scripts
  • Next by Date: Re: target of folder action
  • Previous by thread: Multiple commands to a single terminal window
  • Next by thread: Re: Multiple commands to a single terminal window
  • Index(es):
    • Date
    • Thread