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


Click here to return to the '10.3: Use FileVault to protect just one folder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Use FileVault to protect just one folder
Authored by: dgarcia42 on Jan 12, '04 10:48:59AM

Why not just create a sparse, encrypted disk image in Disk Utility? Same effect, less runaround...

(BTW, for the record, you can also directly mount filevault disks by going into the secure'd user's directory, double clicking on their 'file vault' file, and entering their user password : )



[ Reply to This | # ]
10.3: Use FileVault to protect just one folder
Authored by: adrianm on Jan 12, '04 02:10:24PM
Once you've got your sparse image, you might find this applescript handy for making it shrink...


tell application "Finder"
	set sl to selection
	if number of items in sl is not 1 then
		display dialog "Please select a single sparse image"
	else
		set i to item 1 in sl as alias
		
		if kind of i is not "sparse disk image" then
			display dialog "Selection is not a sparse disk image"
		end if
		set the_url to URL of i
		set the_result to ""
		set before_size to size of i
		try
			with timeout of 60 seconds
				set the_result to do shell script "/usr/bin/hdiutil compact " & the quoted form of the_url
			end timeout
			if length of the_result > 0 then
				display dialog "Compact completed with this message:" & return & the_result
			else
				set one_kb to 1024
				set one_mb to 1024 * 1024
				set saving to before_size - (size of i)
				if saving = 0 then
					set saving_msg to "saving nothing"
				else if saving < one_mb then
					set saving_msg to "saving " & saving / one_kb & "kb"
				else
					set saving_msg to "saving " & saving / one_mb & "mb"
				end if
				display dialog "Compact complete, " & saving_msg
			end if
		on error the error_message number the error_number
			display dialog "Compact failed with this message:" & return & error_message
		end try
	end if
end tell
I have this script on my script menu. I select the image, then run it.

[ Reply to This | # ]
10.3: Link to a folder inside an unmounted encrypted sparse image
Authored by: ajoakland on Jan 14, '04 12:43:07AM

will ask your for the password to mount it. I use iPhoto buddy to switch between the G-rated photo album, and the photo album password protected in the encrypted disk image. If the disk image isn't mounted, and I launch iPhoto Buddy, it attempts to mount the image and ask for the password. I can choose to not give the password and open any of the albums in regular directories.



[ Reply to This | # ]