Re: File Path Separator Syntax (was Re: Writing To A File)
Re: File Path Separator Syntax (was Re: Writing To A File)
- Subject: Re: File Path Separator Syntax (was Re: Writing To A File)
- From: Christopher Nebel <email@hidden>
- Date: Tue, 30 Sep 2003 10:22:34 -0700
On Sep 29, 2003, at 11:26 PM, Matthew Smith wrote:
on 30/09/2003 15:12, Walter Ian Kaye at email@hidden
wrote:
Starting with ":Users" is not likely to do what you want.
Perhaps I should elaborate on this.
People coming to the Mac from Unix may think that ":" is a direct
counterpart to "/" -- but it's not. It really encompasses properties
of both "/" and "." characters. Here are some equivalents:
Unix filename Mac filename
----------------------------- -----------------------------
./filename :filename
../filename ::filename
/folder/filename Disk:folder:filename
Why would you use the first two Mac forms? Wouldn't their use rely on
knowing which is the current directory?
Yes, they would, which is why we recommend not using them. The Mac OS
File Manager does have a concept of the "current directory", but not in
any user-visible way [1] -- it has absolutely nothing to do with the
standard file dialogs.
--Chris Nebel
AppleScript Engineering
[1] That's not completely true -- the standard OS doesn't reveal it,
but an application can if it wants to. MPW Shell did, for instance,
because it was imitating a Unix shell. It's a very rare feature.
_______________________________________________
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.