• 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: Class/Properties syntax baffles me
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Class/Properties syntax baffles me


  • Subject: Re: Class/Properties syntax baffles me
  • From: Helmut Fuchs <email@hidden>
  • Date: Sun, 5 May 2002 19:56:28 +0200

At 10:53 Uhr -0600 05.05.2002, Doug McNutt wrote:
>From the Interarchy scripting dictionary:

Class window: a window
Properties:
bounds bounding rectangle [r/o] -- the bounds of the window
name string [r/o] -- the name of the window
position point [r/o] -- the position of the top left corner
**

frontwindowrecord: returns the record for the front window
frontwindowrecord
Result: window -- the front window's information
**
From what I can see here it looks as if frontwindowrecord is not a value property but a function. Currently you are trying to access the name property of an object representing this function. But you want the name property of the function's _result_.

This should work:

tell application "Interarchy"
name of (get frontwindowrecord)
end tell

HTH,

Helmut
--
_______________________________________________
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.

References: 
 >Re: Class/Properties syntax baffles me (From: Simon Topliss <email@hidden>)

  • Prev by Date: Re: Class/Properties syntax baffles me
  • Next by Date: Re: TIDs Tabs & Square Brackets (Script Debugger question)
  • Previous by thread: Re: Class/Properties syntax baffles me
  • Next by thread: Re: Class/Properties syntax baffles me
  • Index(es):
    • Date
    • Thread