自從我處理了Applescript以來,這已經過了很多年了,所以在這裏進行了一些高級的道歉操作。用Appleccript記錄窗口的邊界(尺寸)
使用下面的代碼片段,我可以調整窗口大小
tell application "BBEdit"
activate
set the bounds of the first window to {100, 0, 700, 700}
end tell
我感興趣的是使用類似的語句來讀取,然後登錄第一窗口的範圍。我試圖
tell application "BBEdit"
activate
log (the bounds of the first window)
set wSize to the bounds of the first window
log wSize
end tell
但事件日誌中列出
(*bounds of window 1*)
每次
。我期待更多的東西
{100, 0, 700, 700}
我最終的目標是創建一個變量,其中包含窗口邊界,並以編程方式操縱值。第一步是學習如何正確記錄數值。
那麼,如何在Apple的腳本編輯器中記錄窗口應用程序的邊界。