Re: Is it possible to Applescript the deletion and addition of items from a Finder window's sidebar?
Re: Is it possible to Applescript the deletion and addition of items from a Finder window's sidebar?
- Subject: Re: Is it possible to Applescript the deletion and addition of items from a Finder window's sidebar?
- From: Peter Schwenk <email@hidden>
- Date: Mon, 24 Sep 2007 08:38:34 -0400
On Sep 23, 2007, at 11:15 PM, Michelle Steiner wrote:
On Sep 23, 2007, at 7:52 PM, Mark J. Reed wrote:
It may help your Googling to know that the "sidebar" is officially
called the "toolbar" (and was originally above the main content
rather
than to the side, in fact...).
The toolbar is above the main content of the window; it contains
tools for manipulating the window and its contents.
The sidebar is to the left side of the main content of the window;
it contains files, folders, and volumes.
I did mean the sidebar (at least that's what it's called in the
Finder Preferences tab of the same name). Let me change my question,
since I now know that there's a plist file for the sidebar items, ~/
Library/Preferences/com.apple.sidebarlists.plist. It seems that each
entry has three bits of info associated with them, the name of the
item, a strangely-encode alias for the item and a strangely-encoded
alias for the icon. Here's what one entry looks like:
<dict>
<key>Alias</key>
<data>
AAAAAAEwAAIAAQZTeXN0ZW0AAAAAAAAAAAAAAAAAAAAA
AAAAAADBPTwjSCsAAAAE6zsHRGVza3RvcAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAATrRr5TV58AAAAAAAAAAP//
//8AAAkgAAAAAAAAAAAAAAAAAAAABXBldGVyAAAQAAgA
AME9dGMAAAARAAgAAL5Tne8AAAABAAgABOs7AABr2AAC
ABpTeXN0ZW06VXNlcnM6cGV0ZXI6RGVza3RvcAAOABAA
BwBEAGUAcwBrAHQAbwBwAA8ADgAGAFMAeQBzAHQAZQBt
ABIAE1VzZXJzL3BldGVyL0Rlc2t0b3AAABMAAS8AABUA
AgAM//8AAA==
</data>
<key>Icon</key>
<data>
SW1nUgAAABwAAAAAU1lTTAAAABAAAAAAZGVzaw==
</data>
<key>Name</key>
<string>Desktop</string>
</dict>
Does anyone have any clues about how the Icon and Alias are encoded?
Once I find that out, I should be able to script the direct
manipulation of the plist file to get the effect I need. Anyone have
experience with this? Thanks in advance!
--
- Peter Schwenk
- CITA-3, Systems Administrator
- Mathematical Sciences
- University of Delaware
- (302) 831-0437
- schwenk _at_ math _dot_ udel _dot_ edu
- http://www.math.udel.edu/~schwenk
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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