Crazy Mac Filenames --- Cleanup Code Needed
Klaus Major
klaus at major-k.de
Wed Aug 9 14:01:26 EDT 2006
Hi Roger,
> I have at least 30,000 Mac files and folders that have filenames
> containing non-cross-platform-friendly filenames. Many of them even
> include dates with the / character. This makes it difficult to use
> the Rev
> rename command to change it to a better name because the / is seen
> as a
> folder delimiter.
no need to worry here, these filenames are nicely resolved in Rev!
Example:
Filename on HD: Pythons/1.jpg
Path in Finder: -> /Users/klaus/Desktop/Pythons/1.jpg
Filename returned from "ask file..." (the way Rev sees the file!):
-> /Users/klaus/Desktop/Pythons:1.jpg
The slash "/" is replaced with a colon":", one of the forbidden
characters in
OS X Finder pathnames, smart, isn't it :-)
> Does anyone have a ready-made script that cleans up such
> filenames? These files are also buried within several subfolders,
> so it
> needs to work recursively. I owe you much gratitude if you can help.
And here you have an example recursive script:
http://www.sonsothunder.com/devres/revolution/tips/file007.htm
That will get you started.
> Roger Eller <roger.e.eller at sealedair.com>
Regards
Klaus Major
klaus at major-k.de
http://www.major-k.de
More information about the use-livecode
mailing list