• 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: 2 Windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: sending mail from an applescript
  • Next by Date: genetic engineering
  • Previous by thread: Re: 2 Windows
  • Next by thread: Styled Text Library - Getting RGB from style data
  • Index(es):
    • Date
    • Thread