Re: ":" in OS X?
Re: ":" in OS X?
- Subject: Re: ":" in OS X?
- From: Timothy Bates <email@hidden>
- Date: Thu, 15 Nov 2001 09:35:03 +1100
>
on 11/14/01 1:58 PM, Fenton Jones at email@hidden wrote:
>
> You can still use ":" at the end of folders can't you, in Finder
>
> commands, as in "folder:file"
>
> Or does OS X have to use "folder/file"
Not only can you, but you must. If you use "/" AppleScript will treat that
as part of a path-item name. It gets more interesting. For instance - it is
legal for me to do this
tim% mkdir colon:container
If I ls in the terminal I see that it worked:
[c5a198:~] tim% ls
Applications Library Pictures colon:container
If I go to the finder, it shows me, paradoxically, a folder named
"colon/container"
But what is applescript going to do with that?
(answer: You address items containing mac delimitters "as if" they were unix
delimitters. This works because they are reciprocally illegal.
So to address that folder I created in the terminal, I say
tell application "Finder" to reveal folder
"Cortex:Users:tim:colon/container:"
Also, it is legal for me make a file in mac space called
"Slashes/and /spaces/in name"
Unix can have (catastrophic) problems with this (as the iTunes that shall
not be mentioned indicates).
So: be careful out there if you use characters which are illegal in either
system.
Tim