Hi folks. I’m trying to reduce the feedback from this instruction:
tell application "Google Chrome" to get properties of window 1
It returns a list of many properties, all named:
{closeable:true, zoomed:false, active tab index:41, class:window, index:1, visible:true, name:"MacScripter / Post new topic", miniaturizable:true, mode:"normal", active tab:tab id 245 of window id 86 of application "Google Chrome", id:86, miniaturized:false, resizable:true, bounds:{2112, 25, 3565, 2064}, zoomable:true}
I am assuming this is a list, and that I can ask for the bounds of this list. But I don’t know how. How can I ask for the bounds? How can I ask for mode?ii don’t think I have to iterate the list to qualify an item. I can’t find any notes on named lists online.
And there is nothing strange about that. You yourself get the values of the keys (properties) separately. But no one is forcing you to do this. Get them in a single list:
tell application "Google Chrome" to {mode, bounds} of window 1