Re: Elementary fie naming question
Re: Elementary fie naming question
- Subject: Re: Elementary fie naming question
- From: Axel Luttgens <email@hidden>
- Date: Sat, 10 Jan 2004 18:31:33 +0100
Graff wrote:
The problem is the underlying Unix-like nature of Mac OS X. You can't
have a file name that has a slash (/) in it because that character is
used for separating directories. In the Finder all slashes (/) are
automatically translated to dashes (-).
I'm not sure to fully understand what you mean.
This one:
tell application "Finder"
make new file at desktop with properties {name:"aaa/bbb"}
end tell
--> document file "aaa/bbb" of folder "Desktop"...
allows to create a file named "aaa/bbb" that appears as such on the Desktop.
On the other hand, doing an ls in the shell, I get:
-rw-r--r-- 1 luttgens luttgens 0 10 Jan 18:19 aaa:bbb
That is, a substitution occured, but with a ":" (quite a nice trick).
Weren't you in fact thinking about the impossibility to create, in the
Finder, an item whose name contains a ":"?
Axel
_______________________________________________
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.