Re: 2 Windows
Re: 2 Windows
- Subject: Re: 2 Windows
- From: bill <email@hidden>
- Date: Mon, 11 Mar 2002 18:45:33 +0800
>
ignoring application responses
>
tell application "Terminal"
>
activate
>
do script with command ,
>
"telnet 10.0.15.1"
>
end tell
>
end ignoring
>
>
It works almost as expected, except that I get two windows. Why am I
>
getting two windows?
>
>
Elton
Elton,
Try run this line, quit and restart terminal:
do shell script "defaults write com.apple.terminal StartupAction 0"
Then you will have one window only with your script.
Briefly,
0 = do nothing when terminal starts;
1 = create a new shell window when terminal starts.
Otherwise, to check the setting, try this line:
do shell script "defaults read com.apple.terminal StartupAction"
It is hinted in page 183 of Mac OS X: The missing manual, the author said
3you can bypass the System Preferences panel completely, using the defaults
command2
Have fun.
Bye
Bill :(
_______________________________________________
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.