Re: More newbie queries: paths
Re: More newbie queries: paths
- Subject: Re: More newbie queries: paths
- From: Michelle Steiner <email@hidden>
- Date: Sun, 28 Apr 2002 19:00:14 -0700
On Sunday, April 28, 2002, at 06:24 PM, Michael Kelly wrote:
Hey all,
Thanks for the answers on my last question. I'm now banging my head in a
much more flexible environment! :)
My question has to do with paths in OS X. Since OS X is based on a Unix
kernel, shouldn't it use Unix paths? The "go-to" window in the Finder
does.
But AppleScript seems only to like old, colon-delimited paths. This is
confusing and frustrating me to no end, partially because I've never
fully
understood "classic" Macintosh path names to begin with. Am I wrong
about
this?
Here is what I currently think I know about Mac paths:
"Users:mkelly:" is equivalent to "/Users/mkelly/"
":Users:mkelly:" to "./Users/mkelly/"
":users:michelle" resolves to "Dora:users:michelle:" on my system.
Without the leading colon, it doesn't resolve, and gives a not-found
error.
"Users:mkelly::admin" to "/Users/mkelly/../admin/"
Am I terribly wrong somewhere?
I believe that the last one does not work--no double colons allowed.
One final question: Does a trailing colon ever mean anything more than a
trailing slash does on Unix? (i.e., nothing if the path refers to a
directory)
True.
We're not human beings having a spiritual experience.
We're spiritual beings having a human experience.
_______________________________________________
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.