我正在寫一個腳本,必須設置窗口的位置和大小。
我需要調整大小的應用程序是AIR應用程序。
設置位置正常,但設置的大小不起作用。
我有簡化的腳本這個例子:
tell application "System Events" to tell application process "adl"
display dialog (get name of window 1)
set position of window 1 to {50, 50}
set size of window 1 to {100, 100}
end tell
你能幫助我嗎?
非常感謝!
他的劇本至少適用於'position'。 窗口的「bounds」屬性位於「** Standard suite **」中,對於「系統事件」應用程序(無窗口)無用。 「** Processes Suite **」中的窗口是「ui元素」,因此它具有與「ui元素」('position,size,...')相同的屬性。 – jackjr300
謝謝jackjr。你是絕對正確的。 – regulus6633