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

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

References: 
 >RE: New window in Terminal.app (From: Doug McNutt <email@hidden>)

  • Prev by Date: Re: Folder action switching itself off?
  • Next by Date: Re: Folder action switching itself off?
  • Previous by thread: RE: New window in Terminal.app
  • Next by thread: Re: New window in Terminal.app
  • Index(es):
    • Date
    • Thread