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: Matthew Smith <email@hidden>
- Date: Tue, 30 Sep 2003 16:26:40 +1000
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?
I can understand the Unix form when you run from the command line, or in a
script, as you know the current directory, or can change it. I am not sure
how you would use the Mac equivalents. I suppose you could enter it in a
Save dialog, but not where else?
--
Matthew
_______________________________________________
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.