RE: New window in Terminal.app
RE: New window in Terminal.app
- Subject: RE: New window in Terminal.app
- From: John Stewart <email@hidden>
- Date: Sat, 29 Jan 2005 04:30:29 -0500
On 01/28/05 at -0700 Doug McNutt said this
># An interesting side note . . .
># With a single window open in Terminal:
>osascript -e 'tell window 1 of application "Terminal" to do script "date"'
># Causes Terminal to create a second window in which it shows the date!
do script string -- data to be passed to the Terminal application as the command line
[with command string] -- data to be passed to the Terminal application as the command line, deprecated, use direct parameter
[in reference] -- the window in which to execute the command
You failed to specify the command's "in" parameter so it does what it's supposed to and makes a new window.
Telling window 1 to run a "do script" command is a completely different thing than specifing a window parameter for the "do script" command.
JBS
--
Do infants enjoy infancy as much as adults enjoy adultery? - George Carlin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden