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


Click here to return to the '10.5: Add a 'recent things' stack to the Dock' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Add a 'recent things' stack to the Dock
Authored by: macfreek57 on Feb 04, '08 02:42:39PM
Very sorry. The site removes the appropriate backslashes when I copy and paste the text. Let's try again.
set dialogText to "Would you like to add a Recent Items icon to your Dock?"
set appSideScript to "defaults write com.apple.dock persistent-apps -array-add '{ \"tile-data\" = { \"list-type\" = 1; }; \"tile-type\" = \"recents-tile\"; }';killall Dock"
set docSideScript to "defaults write com.apple.dock persistent-others -array-add '{ \"tile-data\" = {\"list-type\" = 1; }; \"tile-type\" = \"recents-tile\"; }';killall Dock"

display dialog dialogText buttons {"No Thanks", "Yes! Left Side, Please!", "Yes! Right Side, Please!"} default button 1

if button returned of result is "Yes! Left Side, Please!" then
	do shell script appSideScript
else
	if button returned of result is "Yes! Right Side, Please!" then
		do shell script docSideScript
	end if
end if
Edited on Feb 03, '10 09:14:38PM by robg


[ Reply to This | # ]