Picture not aways replaced
Picture not aways replaced
- Subject: Picture not aways replaced
- From: Robert Poland <email@hidden>
- Date: Sun, 05 Jan 2014 08:02:14 -0700
Hi,
Below is a piece of a script I use to change all desktop “Spaces” to the same picture.
The problem I’m running into is that if the current picture has the same name as the newer one (maybe it was modified), it is not replaced.
Any ideas?
— Script
tell application "System Events" to key code 18 using {control down} -- Desktop 1
delay 1
repeat (numSpaces) times
tell application "System Events"
tell current desktop
set picture to ThePicture
tell me to beep # Edited this way to get rid of non fatal error -1708
end tell
delay 1
-- switch to the next desktop
tell application "System Events" to key code 124 using {control down} -- ^→
delay 1
end tell -- application "System Events"
end repeat
beep 2
tell application "System Events" to key code 18 using {control down} -- Desktop 1
— end of Script
TIA,
Robert Poland - Fort Collins, CO
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden