Use an application instead.
/Applications/Utilities/AppleScript Editor and enter the following:
tell application "Finder" to set target of first window whose index is 1 to (POSIX file "/Users/danielbeck/Applications")
Save as application anywhere you like (see below for hint on this) and drag it from there to the Finder sidebar. Clicking This will navigate the frontmost Finder window to the specified folder.
To give it a "real" Applications Finder sidebar icon, navigate to
/System/Library/CoreServices, right-click and Show Package Contents on
CoreTypes.bundle. Then open
Contents/Resources and open
ToolbarAppsFolderIcon.icns in preview. Select the smallest version from the sidebar and press
Cmd-C, then Get Info on your AppleScript application, select the icon and press
Cmd-V to paste the Applications icon onto your application.
- No "selected" state in the sidebar when in the Applications folder
- Annoying (and ugly, since the selected icon is so tiny) animation whenever starting the application to navigate to the folder
- Doesn't really work with file dialogs (e.g. Open… and Save as…). Selecting it then will open the folder where you stored the application (so store it in the folder you want to link it to!)
Command-Click to open in a new window (might be possible through advanced AppleScript-fu).