• 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: how can I reliably query the correct terminal window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how can I reliably query the correct terminal window?


  • Subject: Re: how can I reliably query the correct terminal window?
  • From: Doug McNutt <email@hidden>
  • Date: Wed, 3 Dec 2008 12:10:43 -0700

On Wed, Dec 3, 2008 at 1:37 PM, Skeeve <email@hidden> wrote:
 I'm still working on Tiger (10.4.11) and I'm having a hard time finding out
 how to query the correct Terminal window for it's content. Currently I'm
 using "window 1" which is fine as long as I don't switch to another terminal
 window while the script is running. Is there a way to get a reference to
 that window so that I can always access it by this reference?

It's possible to give names to Terminal windows though it's easier in AppleScript than in the Terminal GUI.


You can then do things like:
tell application "Terminal" to do script "some file" in window FUN


--

--> A fair tax is one that you pay but I don't <--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: how can I reliably query the correct terminal window?
      • From: Skeeve <email@hidden>
References: 
 >how can I reliably query the correct terminal window? (From: Skeeve <email@hidden>)
 >Re: how can I reliably query the correct terminal window? (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: how can I reliably query the correct terminal window?
  • Next by Date: Re: how can I reliably query the correct terminal window?
  • Previous by thread: Re: how can I reliably query the correct terminal window?
  • Next by thread: Re: how can I reliably query the correct terminal window?
  • Index(es):
    • Date
    • Thread