• 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: yvan-koenig <email@hidden>
  • Date: Wed, 19 Jan 2005 09:04:06 +0100


Le 19 janv. 2005 , à 5:58, Michelle Steiner a écrit :

On Jan 18, 2005, at 9:47 PM, Robert Poland wrote:

tell application "Tex-Edit Plus"
if (title of window 1 as text) contains "index1.html" then set index1Flag to true
snip...

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.

Are you sure ?

In the Finder's dictionary, one may read:

id  unsigned integer  [r/o]  -- the unique id for this window
	position  point  -- the upper left position of the window
	bounds  bounding rectangle  -- the boundary rectangle for the window
	titled  boolean  [r/o]  -- Does the window have a title bar?
	name  Unicode text  [r/o]  -- the name of the window


An Unicode text is definitely NOT a text one.

No problem as far as you use standard ASCII characters.
Problem arise when one uses accented chars.
One problem of this kind surfaced here some days ago.

Yvan KOENIG


_______________________________________________ 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
References: 
 >title of window 1 as text (From: Robert Poland <email@hidden>)
 >Re: title of window 1 as text (From: Michelle Steiner <email@hidden>)

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