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

Click here to return to the 'Create a fully functional Volumes folder in 10.3's dock' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create a fully functional Volumes folder in 10.3's dock
Authored by: Graff on Oct 01, '04 05:22:40PM

A few more things about this hint:

Finder aliases work just as well as symlinks.

You can combine this all into one script, including the run part by doing something like this:

-- in the next line add the path to your "Drives" folder
property script_folder : (path to documents as string) & "Drives"

on run
end run

on adding folder items to this_folder after receiving added_items
end adding folder items to

on removing folder items from this_folder after losing these_items
end removing folder items from

on Update()
	tell application "Finder"
		set theFolder to folder script_folder
		delete every item of theFolder
		set theDisks to disks
		repeat with i in theDisks
			make new alias at theFolder to i
		end repeat
	end tell
end Update

This works just fine without needing two script files.

[ Reply to This | # ]