Re: title of window 1 as text
Re: title of window 1 as text
- Subject: Re: title of window 1 as text
- From: Michelle Steiner <email@hidden>
- Date: Tue, 18 Jan 2005 21:58:42 -0700
On Jan 18, 2005, at 9:47 PM, Robert Poland wrote:
I have a script run from Tex-Edit Plus that I want to either read a
title or look for "contains" of/in a file of undefined name.
tell application "Tex-Edit Plus"
if (title of window 1 as text) contains "index1.html" then set
index1Flag to true
snip...
I believe that you want the name of the window, not the title of the
window; so far as I can tell, there is no "title" property for windows.
Here is an example using TextEdit because I don't have Tex-Edit Plus:
tell application "TextEdit"
(name of window 1) contains "index1.html"
end tell
The name property is already text, so you don't need "as text" in the
evaluation.
-- Michelle
--
Those who extol the "nobility of labor" mean the labor of others.
_______________________________________________
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