我正在嘗試編寫腳本以取消最小化以前最小化的應用程序以停靠。 問題是,我無法找到相關的屬性。我試過miniaturized
和collapsed
,但窗口和過程似乎都沒有?取消最小化Applescript的應用程序
我使用(測試)的應用程序是Zipeg,一個免費的打包工具。
我也試着點擊那個愉快地使應用程序最小化的按鈕,但是在已經最小化的應用程序上運行來恢復它的時候給我一個錯誤,可能是因爲沒有窗口可見。這個腳本如下。
tell application "System Events"
tell process "Zipeg"
click button 1 of window 1
end tell
end tell
我用來列出屬性的腳本如下。
tell application "System Events"
tell process "Zipeg"
get properties
tell window 1
get properties
end tell
end tell
end tell
任何想法?
重新開放是我waas尋找。謝謝! – rickythefox