Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Manually switch to next desktop picture in shuffle mode Desktop
I noticed that if you have your desktop picture (wallpaper) set to shuffle between a number of images, and you don't like the currently-selected picture, you can manually skip it by killing and restarting the Dock. Just type the following into Terminal:
killall Dock
When the Dock restarts, it will shuffle to another desktop picture.

[robg adds: I believe a "friendlier" version of this command is killall -QUIT Dock, which tells the Dock to quit nicely, instead of force quitting it. (This is wrong; see the comments!) If you find yourself doing this regularly, you could turn it into a simple Automator application, using the above command, or the AppleScript alternative (tell application "Dock" to quit). Then again, if you're doing this a lot, perhaps you should look to change your collection of desktop images!]
    •    
  • Currently 2.25 / 5
  You rated: 5 / 5 (12 votes cast)
 
[7,866 views]  

Manually switch to next desktop picture in shuffle mode | 6 comments | Create New Account
Click here to return to the 'Manually switch to next desktop picture in shuffle mode' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Manually switch to next desktop picture in shuffle mode
Authored by: geoffliang on Nov 17, '09 08:01:56AM

I've actually created an app a while back that does just this. =)

http://tehloft.wordpress.com/2009/10/02/fix-unresponsive-dock-expose-and-dashboard/



[ Reply to This | # ]
A simpler approach
Authored by: wallybear on Nov 17, '09 02:37:49PM
There is a simpler approach that doesn't need to kill the poor Dock; using Applescript you can tell the system to change the desktop:

tell application "System Events"
	set rotinterval to change interval of current desktop
	set change interval of current desktop to 1
	delay 1
	set change interval of current desktop to rotinterval
end tell
You can assign this script to a hotkey (using Spark, for example).
The script temporarily changes the picture rotation interval to 1 sec., allows the system to change the picture and then restores the original interval.

[ Reply to This | # ]
A simpler approach
Authored by: blueatria on Nov 17, '09 06:05:44PM

You can also make this applescript a service using Automator and the run applescript action save as a service then add a shortcut using the new keyboard shortcuts option in the keyboard prefpane. Works quite well.



[ Reply to This | # ]
Manually switch to next desktop picture in shuffle mode
Authored by: Sesquipedalian on Nov 17, '09 09:12:15PM
robg adds: I believe a "friendlier" version of this command is killall -QUIT Dock, which tells the Dock to quit nicely"

Actually, that is completely false, Rob. Contrary to expectation, adding the -QUIT parameter to the killall command does the exact opposite of nicely telling the application to quit: instead, it simply crashes the application!

When used on normal applications, such as TextEdit, iChat, etc., this provokes a crash report from the operating system like this:

TextEdit quit unexpectedly.

Click Reopen to open the application. Click Report
to see more detailed information and send a report to
Apple.

(Ignore) (Report...) (Reopen)
The only reason why using killall -QUIT Dock doesn't provoke a crash report is that the Dock is a special and essential application that Mac OS X is set to relaunch immediately---and silently---if it ever crashes.

However, there is a way to do what you wanted this to do, without typing a full osascript command. If anyone is looking for a fast and easy way to use the command line to politely tell an application to quit, please see this hint.

[ Reply to This | # ]

Manually switch to next desktop picture in shuffle mode
Authored by: Stormchild on Nov 17, '09 10:04:45PM

One thing to be aware of when restarting the Dock is that Dashboard lives in the Dock's memory space. This means every time you restart the Dock, all your Dashboard widgets are being closed down as well, and won't relaunch until you open Dashboard again. If you like your Dashboard widgets responsive and don't want to wait for them all to start up again every time you open it, I wouldn't recommend relaunching the Dock on a regular basis.

Restarting the Dock also releases any windows that were minimized. Until Snow Leopard, I wouldn't have cared, as minimizing windows to the folder/trash side of the Dock was utterly useless to me, but now that windows can optionally be minimized into their respective app's icon, I use it all the time, and regularly restarting the Dock would be pretty annoying for that reason as well.

If you don't care about either of those things, then no worries. Also, on the upside, Dashboard widgets have a lot of overhead and tend to use quite a bit of memory. Restarting the Dock is a way to reclaim that memory. Not having tons of useless widgets open works pretty well too though.



[ Reply to This | # ]
Manually switch to next desktop picture in shuffle mode
Authored by: stephen.m on Nov 18, '09 07:27:48AM

I use Change Desktop, which not only changes the desktop picture at preset intervals--with some cool optional transition effects (ripple, swipe, dissolve, etc.)--but also provides hotkeys for changing the picture at any time, hiding desktop files, and other features.

http://www.bergstrand.org/brian/software/ChangeDesktop/



[ Reply to This | # ]