• 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
(no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(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

  • Follow-Ups:
    • Re: TextEdit musings (was: (no subject))
      • From: Axel Luttgens <email@hidden>
    • Re: (no subject)
      • From: KOENIG Yvan <email@hidden>
  • Prev by Date: Re: Pages & AppleScript
  • Next by Date: Re: Pages & AppleScript
  • Previous by thread: Re: InDesign question
  • Next by thread: Re: (no subject)
  • Index(es):
    • Date
    • Thread