File duplication error in Finder

chucky

Registered
Hi everyone,

I have a little problem with file duplication. Here's an example how the error, which really bugs me, occurs:

I have two files: "foo.index" and "foo.dict". When I duplicate these files while logged to an admin account, I get "foo copy.index" and "foo copy.dict" files. When logged as a normal user, I get "foo.index copy" and "foo copy.dict" files.

I have 10.3.7 Intl. installed. I think 10.3.5 didn't do this, but I'm not sure.

Could someone explain this please?

Thanks.
 
When logged into an admin account on my machine, my results are "foo.index copy" and "foo copy.dict" every time. It seems that Mac OS X isn't recognizing the string "index" as a filename extension.
 
This is the answer I got from the MacGuru at macfixit forum:

"It appears that the administrative account is treating the “.index” and “.dict” as file type suffixes. Do you have the preferences for showing file suffixes set differently for these two accounts? (Finder->Preferences->Advanced->Show all file extensions)

MicroMat Inc
Makers of TechTool"

Well, yes, the preferences for showing file suffixes were set differently, so I changed them to be the same... and it didn't help (no visible change happened and the problem was still there). But still - the answer is correct. Finder treats them as file type suffixes.

For those, who might experience the same problem as I did: I am trying to make a little app for making dictionaries. I got an email today, that the app doesn't work correctly on 10.3.7. But the problem is not in 10.3.7 (Dear Apple, sorry for the bug report I sent you today...). The problem was, that one of the other applicatons on my computer used files with .index extension and had them registered as it's own files, so my app, which creates files with two extensions - .dict and .index - worked fine with .dict files, but not with .index files, which were registered for another app's use.

The solution is this (maybe not the right one, but this helped me): whenever you need to write an app, which uses specific file types, fill these file types into Document Types in Xcode => Project - Edit Active Target (Alt + Command + E) - choose "Document types" from the "Info.plist entries" in the left column, fill the file extensions into the form. The app will mark the files as it's own => if your app asks Finder to do something with these files, it will treat them as your app's files, not one as your app's file and the other as another app's file.
 
Back
Top