• 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: title of window 1 as text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: title of window 1 as text
      • From: yvan-koenig <email@hidden>
References: 
 >title of window 1 as text (From: Robert Poland <email@hidden>)

  • Prev by Date: title of window 1 as text
  • Next by Date: Re: title of window 1 as text
  • Previous by thread: title of window 1 as text
  • Next by thread: Re: title of window 1 as text
  • Index(es):
    • Date
    • Thread