Re: BUG REPORT - File Vault
Re: BUG REPORT - File Vault
- Subject: Re: BUG REPORT - File Vault
- From: Chris Page <email@hidden>
- Date: Thu, 20 Nov 2003 17:37:10 -0800
This all seems like the expected behavior to me...
On Nov 18, 2003, at 08:08, Mark Munro wrote:
With File Vault turned OFF this line of code returns the following:
path to library folder from user domain
-- returns alias "Macintosh HD:Users:mmunro:Library:"
Because your home folder is in "<boot volume>:Users:<username>:".
With File Vault turned ON things change:
path to library folder from user domain
-- returns alias "mmunro:Library:"
Because your home folder is in "<file vault volume>:".
The key here is the way File Vault works: It creates an encrypted,
password-protected disk image and stores your home directory in it.
When you log in, it mounts that disk image. Since it's an entirely
separate volume, the path to your user folder is now just the volume
name.
Back in "<boot volume>:Users:" it creates a symbolic link (like an
alias, but not as flexible) that points to that volume, so anything
that looks for your user folder there will continue to work. Note that
when you select your home folder in the side bar in Panther Finder, it
changes the selection to the disk image volume. That's where your home
folder really resides.
With File Vault turned ON with works fine:
open alias "mmunro:Library:"
With File Vault turned OFF the line above will fail.
Because the location of your home folder changes to a different volume
when you turn File Vault on/off and aliases don't follow items moved
across volumes. Aliases can only (accurately) follow files moved within
the same volume, AFAIAA.
When you turn File Vault on/off, it actually copies the contents of
your home folder from one volume to the other, breaking any aliases
that point into it.
Interestingly, if you save the code in a file (open alias
"mmunro:Library:") with File
Vault ON and then turn File Vault OFF it will automatically change to
(open alias "Macintosh HD:Users:mmunro:Library:")
Hmm. I'm not entirely sure what you're describing here, but maybe the
alias can track the home folder change under certain circumstances?
Like I said, aliases can't _accurately_ follow moves across volumes, as
far as I am aware. Maybe this is a case where it happens to work, but
there is no general guarantee that it will?
--
Chris Page - Software Wrangler - palmOne, Inc.
Dylan + You = Code
<
http://www.gwydiondylan.org/>
<
http://www.cafepress.com/chrispage>
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.