I\'m working on a script where a user logs into a guest account on OS and is prompted for their network credentials in order to mount their network home folder (while they b
It is possible to do this using AppleScript or Cocoa APIs, or do I need to modify a plist and restart the Finder?
No.
As I said on that other question, the correct way to add an item to the sidebar is to use LSSharedFileList.
A co-worker came up with this method that uses applescript:
tell application "Finder"
activate
-- Select the path you want on the sidebar in the Finder
select folder "Preferences" of folder "Library" of (path to home folder)
tell application "System Events"
-- Command-T adds the Documents Folder to the sidebar
keystroke "t" using command down
end tell
end tell