|
|
10.5: Add a 'recent things' stack to the Dock
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 ifEdited on Feb 03, '10 09:14:38PM by robg
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.10 seconds |
|