• 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: Michelle Steiner <email@hidden>
  • Date: Wed, 3 Dec 2008 12:14:23 -0700


On Dec 3, 2008, at 12:09 PM, Skeeve wrote:

tell application "Terminal"
   set my_win_id to id of window 1
   set x to contents of window id my_win_id
end tell
 

That doesn't even compile.

Yes it does.

"id" is not a property of "window"

Yes it is.

And it also runs.

tell application "Terminal"
set my_win_id to id of window 1
set x to contents of window id my_win_id
end tell

-->
"Last login: Wed Dec  3 12:07:02 on console
[GayDeceiver:~] michelle% ls
Applications Logitech Public
Desktop Movies Sites
Desktop stuff Music browser - logitech
Documents Pictures downloads
Library Projects
[GayDeceiver:~] michelle% 

-- Michelle

-- 
The reason that so few people think outside the box is that all the pay and benefits are inside the box.

 _______________________________________________
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>)
 >Re: how can I reliably query the correct terminal window? (From: Skeeve <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