Re: as alias bug?
Re: as alias bug?
- Subject: Re: as alias bug?
- From: Philip Aker <email@hidden>
- Date: Wed, 28 May 2008 23:03:31 -0700
On 08-05-28, at 20:38, Mark J. Reed wrote:
I take it back. /dev is not a real folder, either. OS X is using
devfs (and fdesc):
(0)wazowski> mount
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local)
fdesc on /dev (fdesc, union)
map -hosts on /net (autofs, automounted)
/dev/disk1s1 on /Volumes/Media (hfs, local, nodev, nosuid,
journaled, noowners)
/dev/disk2s2 on /Volumes/Time Machine Backups (hfs, local, nodev,
nosuid, journaled)
which means that /dev is just a way of using the file system API
calls to ask the operating system about its hardware (real and
virtual), not a regular folder.
Thanks Mark,
The way I understand it, this more or less confirms that the
FSPathMakeRef() -35 error is a least correct (but doesn't explain much
about the AppleScript behavior of 'info for' working for /dev).
For the purposes of working at C code levels, if I follow your lead
above and branch on that -35 error to some functions that provide
return values similar to 'mount' as used above, then I should be able
to get some meaningful info about them. Like for sure, given "/dev/
disk1s1" I know I can get a substantial property list from some stuff
in DiskArbritration.framework.
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