Re: title of window 1 as text
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