嘗試查找控制合併Finder窗口中選項卡順序的Applescript方法。我正在使用此腳本來合併文件夾窗口:Applescript控制合併Finder窗口中選項卡順序的方法
tell application "System Events"
click menu item "Merge All Windows" of menu "Window" of menu bar item "Window" of menu bar 1 of application process "Finder" of application "System Events"
end tell
感謝您的任何幫助!
當在選項卡中合併窗口時,順序是基於窗口順序。前面的窗口是右邊的選項卡,左邊的選項卡上是深度背景的窗口。所有其他中間取決於他們的焦點。所以在合併之前,你必須改變窗口的順序。 – pbell