(no subject)
(no subject)
- Subject: (no subject)
- From: "emile.a.schwarz" <email@hidden>
- Date: Mon, 16 Feb 2009 10:22:34 +0100 (CET)
Hi all,
before the question, I must say that I gooffed and found what I wrote below.
I wanted to know what kind of data is in the front window: raw text _or_ styled text. I do not found it.
Anyone knows ?
Here’s gooffy:
tell application "TextEdit"
-- wrong way to activate the TextEdit application
set frontmost of application "TextEdit" to true
-- Correct way to activate the TextEdit application
activate
end tell
1. The first line does not return an error even if the “frontmost” property is read only (marked as is in the dictionary).
2. The second line works fine (or nearly): even if I have two windows, none of them are frontmost (activated). BUT, TextEdit is frontmost (as asked).
Of course - this is the reason why I write this report - when the first (and wrong) line is removed, activate do its job correctly: there is a front window (an activated window).
FWIW,
Emile
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden