desktoppr
desktoppr copied to clipboard
Can a different picture be assigned to each Mission Control Space/Desktop?
For my application, I have multiple Mission Control Desktops (formerly "Spaces," I believe). I use a wallpaper specific to each Space to differentiate them.
If I wrapped desktoppr in an osascript that iterated over desktops, would desktoppr recognize each desktop separately?, e.g.,
# Define your image paths (in order)
images=(
"/path/to/image1.jpg"
"/path/to/image2.jpg"
"/path/to/image3.jpg"
# Add more if needed
)
# Convert the Bash array to a string that AppleScript can interpret
apple_image_list=$(printf "\"%s\", " "${images[@]}" | sed 's/, $//')
osascript <<EOF
set imagePaths to {${apple_image_list}}
tell application "System Events"
set desktopCount to count of desktops
repeat with desktopNumber from 1 to desktopCount
if desktopNumber ≤ (count of imagePaths) then
set imagePath to item desktopNumber of imagePaths
tell desktop desktopNumber
/usr/local/bin/desktoppr imagePath
end tell
end if
end repeat
end tell
EOF
see #2 and #27, Apple provides no API for manipulating spaces/multiple desktops
inventing (or dare I say "hallucinating") Apple Script terminology that simply doesn't exist doesn't change this