• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: as alias bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
alias "Tera:Users:"

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
echo email@hidden@nl | tr a-z@. p-za-o.@

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

References: 
 >as alias bug? (From: Philip Aker <email@hidden>)
 >Re: as alias bug? (From: "Mark J. Reed" <email@hidden>)
 >Re: as alias bug? (From: Philip Aker <email@hidden>)
 >Re: as alias bug? (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Printing InDesign PostScript to Two Volumes with the Same Name
  • Next by Date: Re: as alias bug?
  • Previous by thread: Re: as alias bug?
  • Next by thread: Re: as alias bug?
  • Index(es):
    • Date
    • Thread