• 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: Scripting Terminal.app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Terminal.app


  • Subject: Re: Scripting Terminal.app
  • From: Jean-Baptiste LE STANG <email@hidden>
  • Date: Sat, 26 Apr 2003 18:30:03 +0200

The following is working to :

tell application "Terminal" to make new window at the end of windows


JB

Le samedi, 26 avr 2003, ` 17:55 Europe/Paris, Philippe GRUCHET a icrit :

From: John Delacour <email@hidden>

At 1:55 pm +0100 22/4/03, Andy Park wrote:

Can anyone give me a quick example of scripting the terminal to open
a new window exactly as I would do by pressing cmd-n ?

tell application "Terminal" to do script "What now, then?"

Or just:

------------------------------------
tell application "Terminal" to do script ""
--> make new window
------------------------------------

It's also possible to use System Events to create a new shell window:

------------------------------------
tell application "Terminal"
activate
-- in one line/no break:
tell application "System Events" to click application process "Terminal"'s menu bar 1's menu 3's menu item 1
end tell
------------------------------------

Bye,
Philippe/SVM Mac
http://svmmac.logitheque.com/
_______________________________________________
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.
_______________________________________________
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: Scripting Terminal.app (From: Philippe GRUCHET <email@hidden>)

  • Prev by Date: Re: Scripting Terminal.app
  • Next by Date: Hiding Finder window toolbar
  • Previous by thread: Re: Scripting Terminal.app
  • Next by thread: Re: Scripting Terminal.app
  • Index(es):
    • Date
    • Thread