Re: title of window 1 as text
Re: title of window 1 as text
- Subject: Re: title of window 1 as text
- From: "Marc K. Myers" <email@hidden>
- Date: Wed, 19 Jan 2005 13:41:13 -0500
I don't see the relevance of what's in the Finder's dictionary - the
application we're looking at is Tex-Edit Plus. In TE+, windows have a
"name" property (class:international text) and no title property.
This works just fine:
tell application "Tex-Edit Plus"
set wName to (name of window 1)
end tell
display dialog wName
Since "display dialog" takes a text variable as its object,
international text must be acceptable as text. It works with accented
characters in the title, too.
Marc [1/19/05 1:37:58 PM]
On Wed, 19 Jan 2005 09:04:06 +0100, yvan-koenig wrote:
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.
_______________________________________________
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