Put a Folder in the Dock... Changes Between Tiger and Leopard?
Put a Folder in the Dock... Changes Between Tiger and Leopard?
- Subject: Put a Folder in the Dock... Changes Between Tiger and Leopard?
- From: Andrew <email@hidden>
- Date: Tue, 11 Mar 2008 22:07:10 -0400
- Thread-topic: Put a Folder in the Dock... Changes Between Tiger and Leopard?
I have this script to put a folder in the Dock. It works fine under Tiger,
but when I run it under Leopard it disables the Dock.
(This is not a disaster. I backup the .plist file before making changes and
restoring the .plist file from the backup returns the Dock to a usable
state.)
I assume that that my problem stems from changes to the plist structure for
Stacks.
What changes do I have to make to this script to make a Stack from a folder?
Alternatively, is there an easier way to automate making a Stack from a
folder?
...
do shell script "defaults write com.apple.dock persistent-others ¬
-array-add '<dict><key>tile-data</key><dict><key>file-data</key>¬
<dict><key>_CFURLString</key><string>/Applications/Utilities¬
</string><key>_CFURLStringType</key><integer>0</integer></dict>¬
</dict></dict>'"
tell application "Dock" to quit
...
Thanks for your help!
-Andrew Moses
_______________________________________________
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