I continued my tests.
Preview like TextWrangler have no ghost window.
But testing their behavior I discovered that the same property is named at least three different ways.
AppleScript Editor like Numbers use minimized TextWrangler use collapsed Preview use miniaturized.
This is why I tested Preview with the script :
activate application "Preview" tell application "Preview" name of windows whose visible is true properties of windows whose visible is true try name of windows whose collapsed is true end try try name of windows whose minimized is true end try try name of windows whose miniaturized is true end try try name of windows whose visible is false set visible of windows whose visible is false to true end try end tell
whose events log was :
tell application "Preview" activate get name of every window whose visible = true --> {} get properties of every window whose visible = true --> {} get name of every window whose miniaturized = true --> {"Réseau13.44.41.png", "2014-03-23T11.17.17.png"} get name of every window whose visible = false --> {"Réseau13.44.41.png", "2014-03-23T11.17.17.png"} set visible of every window whose visible = false to true end tell
Yvan KOENIG (VALLAURIS, France) dimanche 23 mars 2014 12:12:58
|