Re: how can I reliably query the correct terminal window?
Re: how can I reliably query the correct terminal window?
- Subject: Re: how can I reliably query the correct terminal window?
- From: "Mark J. Reed" <email@hidden>
- Date: Wed, 3 Dec 2008 16:02:34 -0500
And again the "replied just to Skeeve" effect strikes...
---------- Forwarded message ----------
From: Mark J. Reed <email@hidden>
Date: Wed, Dec 3, 2008 at 4:01 PM
Subject: Re: how can I reliably query the correct terminal window?
To: Skeeve <email@hidden>
On Wed, Dec 3, 2008 at 3:51 PM, Skeeve <email@hidden> wrote:
> Unfortunately I don't know of any property that's unlikely to change. If you
> publish a script, you'd never know what people do with it.
True. Did you try using get? That is, take your first example and
add a get to dereference the window object:
tell application "Terminal"
set my_win to (get window 1)
set x to contents of my_win
x as text
end tell
I don't know if it will help, but it's worth a shot if you haven't
tried already.
> -- then put it into a new window (my window 1 now)
> do script "# This window's id: " & uuid
Yeargh. Relying on the text not to scroll off the top seems pretty
iffy if you don't know what the user is doing in the window...
--
Mark J. Reed <email@hidden>
--
Mark J. Reed <email@hidden>
_______________________________________________
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