• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Elementary fie naming question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Elementary fie naming question
      • From: Graff <email@hidden>
  • Prev by Date: Re: Resizing Dialog box
  • Next by Date: Re: Bug in Image Events (?)
  • Previous by thread: Re: Resizing Dialog box
  • Next by thread: Re: Elementary fie naming question
  • Index(es):
    • Date
    • Thread