Lion 允许不同的空间使用不同的壁纸,这很棒,但我还没有找到让它们都使用相同壁纸的简单方法。
到目前为止,我完成此操作的唯一方法是手动更改每个空间的壁纸,或者关闭所有空间(除了我想要的壁纸的空间)并重新打开它们。
有人有解决方案可以让我快速将所有空间设置为相同的壁纸吗?
答案1
您有解决办法吗?
我遇到了同样的问题,因此我使用 AppleScript 创建了一个快速的 monkey-hack 解决方案:
set spacenumber to 4 -- how many spaces do you have?
-- Try to get number of spaces from System preferences
tell application "System Preferences"
reveal anchor "shortcutsTab" of pane id "com.apple.preference.keyboard"
tell application "System Events" to tell window "Keyboard" of process "System Preferences"
set spacenumber to count (UI elements of rows of outline 1 of scroll area 2 of splitter group 1 of tab group 1 whose name begins with "Switch to Desktop")
end tell
quit
end tell
tell application "System Events"
set _desktops to every desktop
if (count of _desktops) > 1 then
-- if you have multiple displat (eg: external monitor) ask which
display dialog "Choose your screen." buttons (get display name of every desktop) default button 1
set _display to the button returned of the result
else
-- else set the one display as selected
set _display to display name of the first desktop
end if
set new_file to choose file with prompt "Choose an image."
repeat with i from 0 to (spacenumber - 1)
delay 1
tell (every desktop whose display name is _display) to set picture to new_file as alias
tell process "WindowServer" to key code {124} using control down -- Go to the next space
end repeat
end tell
现在这对我有好处。
更新: number of spaces
getter 添加自:https://discussions.apple.com/thread/3824777?start=0&tstart=0