Re: as alias bug?
Re: as alias bug?
- Subject: Re: as alias bug?
- From: Philip Aker <email@hidden>
- Date: Wed, 28 May 2008 20:11:31 -0700
On 08-05-28, at 11:14, Mark J. Reed wrote: I'm not sure, but I suspect it's related to the fact that /dev is just an ordinary folder, albeit with visible set to false, whilw /net is the mount point of an automagical filesystem.
Ok that would confirm this result:
try set fpath to (path to startup disk as text) & "net" set falias to fpath as alias on error errs display dialog errs end try
--> alias "net:"
because as you see, the alias is not "BootVol:net:". As in:
try set fpath to (path to startup disk as text) & "Users" set falias to fpath as alias on error errs display dialog errs end try
So I think according to that result, FSRefMakePath() should fail for /net and be good for /dev. But it's the other way 'round.
On 5/28/08, Philip Aker <email@hidden> wrote:
On 08-05-28, at 09:17, Mark J. Reed wrote:
On Wed, May 28, 2008 at 12:01 PM, Philip Aker <email@hidden>
wrote:
I have no directory "/net" on my machine.
You sure about that? Have you looked from the shell? I got one on
mine...
Mark, Joe, Deivy, Luther,
I see I do -- I was actually 'cd /';ls -la' but just plain failed to
see it.
But here's the real problem. As shown on the Carbon list by at least
three members, FSRefMakePath() fails for "/dev" (the OP is trying to
determine visibility). So I decided to see what AppleScript could do.
Fine for /dev but then someone asked why it reports true for /net:
visible of (info for POSIX file "/dev")
--> false
visible of (info for POSIX file "/net")
--> true
(POSIX file "/dev") as alias
--> error
(POSIX file "/net") as alias
--> "net:"
How is it /dev is invisible and reports false but net is invisible and reports true?
Philip Aker
Democracy: Two wolves and a sheep voting on lunch.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden