• 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: Window title of frontmost application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Window title of frontmost application


  • Subject: Re: Window title of frontmost application
  • From: John Delacour <email@hidden>
  • Date: Sat, 26 Apr 2003 00:31:17 +0100
  • Mac-eudora-version: 6.0a16

At 2:12 pm -0500 25/4/03, 3 wrote:

That doesn't seem to work for me. I get an execution error with: "Can't get name of window 1".

If you're talking about a cocoa application, or, to be more specific, TextEdit, you might want to use 'document'. In almost all traditional apps, the two are the same in effect and it is possible in all traditional apps to get the name and other properties of the windows.


tell application "TextEdit"
{name of document 1, name of window 1}
end tell
--> {"rfc2822.txt", "rfc2822.txt Q /Users/jd/Documents/rfc"}


If you are talking of Mail.app the windows are back to front, so if you want the name of the front window, ask for the name of the back window !

tell application "Mail" to get the name of the back window




JD


.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Window title of frontmost application
      • From: Michelle Steiner <email@hidden>
    • Re: Window title of frontmost application
      • From: 3 <email@hidden>
References: 
 >Re: Window title of frontmost application (From: 3 <email@hidden>)

  • Prev by Date: Re: TIDs and other questions
  • Next by Date: Re: Window title of frontmost application
  • Previous by thread: Re: Window title of frontmost application
  • Next by thread: Re: Window title of frontmost application
  • Index(es):
    • Date
    • Thread