Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Create a permanent sidebar entry for networked folders' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create a permanent sidebar entry for networked folders
Authored by: pbeyersdorf on Dec 18, '09 03:35:31PM
This hint didn't work for me for some reason - the aliases would disapear as soon as I removed by drive (even though they resided on my internal disk). The workaround I found is to make a simple applescript that can be launched from the sidebar. The script will try to open a given location in the current finder window (i.e. on a removable drive) if it cannot than it will perform some alternative task (such as opening a local copy of the folder in my case). Here is the script to customize
-- Script to open a location in the current finder window, with an optional second choice if the first location fails.  You can set the desired location to be on a removable volume, and then put the script into the sidebar as a means to access files on a removable volume from the sidebar.  
set primary_item to POSIX file "/Volumes/My Flash Drive/Documents"
set secondary_item to POSIX file "/Users/johndoe/Documents/"
tell application "Finder"
	try
		set folder of front window to primary_item
	on error
		display dialog "The location could not be found, open " & secondary_item & " instead?"
		set folder of front window to secondary_item
	end try
end tell


[ Reply to This | # ]
Create a permanent sidebar entry for networked folders
Authored by: pbeyersdorf on Dec 18, '09 04:46:16PM

Note that this only works from the finder, not the open/save dialog boxes.



[ Reply to This | # ]