Le 25 avr. 06 à 03:37 Matin, Daniel Schutzsmith a écrit:
lsof is close to what I am thinking but seems to miss the heart of
what I am toying with. For example, the lsof command will show me
all of the RSRC files such as flash, realplayer, etc. being used
for Safari. But I want to see what browser windows are open and
what is inside of them. I also want to determine the size and
position of the window.
Anyone have any ideas?
The "System Events" application (located in /system/library/
coreservices/) can help for this, I think.
You may try with an AppleScript script:
tell application "System Events"
set a to application process "Safari"
try
set w to window 1 of a
on error
display dialog "No open window in Safari." buttons {"Cancel"}
default button 1
end try
set TheSize to size of w
end tell
After that, you can access to the controls of the window. I don't
really know how you can access a specific control (not a standard
control), like you want._______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>