Re: Scripting Terminal.app
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.