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


Click here to return to the 'Script update' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Script update
Authored by: xhints_ on Feb 11, '08 12:08:47PM
Here's a neater version that works:
global abutton

set cbutton to "Cancel" -- cancel button
set abutton to "Applications Section" -- app side button
set dbutton to "Documents Section" -- docs side button

display dialog "Add a Recent Items stack to the Dock?
This will temporarily disable both the Dock and Dashboard" buttons {cbutton, abutton, dbutton} default button 3
set rbutton to the button returned of the result
if rbutton   cbutton then addStack(rbutton)


on addStack(button)
	if button = abutton then
		set side to "apps"
	else
		set side to "others"
	end if
	do shell script ("defaults write com.apple.dock persistent-" & side & " -array-add '{ \"tile-data\" = { \"list-type\" = 1; }; \"tile-type\" = \"recents-tile\"; }';killall Dock")
end addStack
Edited on Feb 03, '10 09:13:35PM by robg


[ Reply to This | # ]