Re: Class/Properties syntax baffles me
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.