[robg adds: I'm not positive, but I'm pretty sure this is new in Panther -- if it's not, please comment as such and I'll remove the hint...]
|
|
|
I'm not sure if this is new to Panther, but I can't remember that files and folders could be named with a slash (/) before.
[robg adds: I'm not positive, but I'm pretty sure this is new in Panther -- if it's not, please comment as such and I'll remove the hint...]
•
[9,781 views]
Hint Options
10.3: Name files with a slash
Nope, this is in Jaguar, and I'm pretty sure it was always in Mac OS X. It doesn't actually name files as a slash, though -- it replaces the slash with a colon, but it appears as a slash in the Finder. The Finder doesn't allow you to use colons, though.
10.3: Name files with a slash
This was not present in 10.2.
10.3: Name files with a slash
You're wrong. It has always done exactly that, since 10.0.
10.3: Name files with a slash
yes slashes have worked since i can remember, interestingly tough, i noticed you cant save from applescript editor witha files named with a slash, it just errors.
10.3: Name files with a slash
You can save a Folder with slashes in the name via AppleScript, try this...
The above will create the folder "A/B" on your desktop.
greggo
macscripter.net
10.3: Name files with a slash
I meant saving the actual applescript with a slash in the filename
10.3: Name files with a slash
I actually had a problem with some software in Jaguar because I had a folder with a slash in the name. As a result, some UNIX based software which was being used as the engine behind a cocoa application couldn't work properly. I strongly recommend against trying to use slashes in file or folder names.
10.3: Name files with a slash
I've had problems with Windows, but not Unix systems. If you were accessing a Unix box via Samba sharing you're restricted to the Windows character naming -- which disallows slashes (/), backslashes ([code]\[/code]) and colons (:).
10.3: Name files with a slash
When doing inline code, turn on HTML and use the tag instead.
10.3: Name files with a slash
GAH! Stupid preview! It turned my </> entities into actual </> chars!
I meant to say use the <tt> tag instead.
10.3: Name files with a slash
It has always been here, and it is (I think) a conversion done in the Finder : a "/" in a filename is converted in a ":" in the Unix filename (as you can see with Terminal.
10.3: Name files with a slash
A good explanation is from the paper 'The Challenges of Integrating the Unix and Mac OS Environments' which is still available at http://www.mit.edu/people/wsanchez/papers/USENIX_2000/, as follows:
Another obvious problem is the different path separators between HFS+ (colon, ':') and UFS (slash, '/'). This also means that HFS+ file names may contain the slash character and not colons, while the opposite is true for UFS file names. This was easy to address, though it involves transforming strings back and forth. The HFS+ implementation in the kernel's VFS layer converts colon to slash and vice versa when reading from and writing to the on-disk format. So on disk, the separator is a colon, but at the VFS layer (and therefore anything above it and the kernel, such as libc) it's a slash. However, the traditional Mac OS toolkits expect colons, so above the BSD layer, the core Carbon toolkit does yet another translation. The result is that Carbon applications see colons, and everyone else sees slashes. This can create a user-visible schizophrenia in the rare cases of file names containing colon characters, which appear to Carbon applications as slash characters, but to BSD programs and Cocoa applications as colons.There do seem to be a number of inconsistent applications though. For instance, it was only in AppleScript 1.9.2 (shipped with 10.3) where: The open for access command can now create a file whose name contains slashes or colons (whichever is not the native path separator for the path style in use). [3267270]Cheers
why?
Why exactly would I want a file name that started with[code] \[/code] ?
10.3: Name files with a slash
I think it worked even in pre-OS X. I had file names of pictures with the date taken and a number at the end (Like 10/13/03 01). It got to be a real pain though when you burned them to a cd and tried to read them on a windows system, though. I had to switch to dashes. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.15 seconds |
|