Does SL not support file type?
When i do “info for X” i get empty results file type and file creator. Am i supposed to use type identifier now?
file type:"
Does SL not support file type?
When i do “info for X” i get empty results file type and file creator. Am i supposed to use type identifier now?
file type:"
What is the file? Upload it.
File Type and Creator Type can be no-value if they’ve been through some Windows and UNIX systems, non-Mac-aware TAR archives, etc. which ignore, and thus strip, that information.
The type identifier is not terribly reliable in some cases. I found this out the hard way with Adobe files in particular.
Upload the file. It might have an extenion that is equivlent to another one, so I change it, ect. Upload it and your problem could even be fixed with AppleScript!
Under MacOS X, lot of apps no longer set the file_type and file_creator attributes.
We are supposed to use type identifiers but many of them aren’t deciphered by the system.
You may add type identifiers as I did under 10.4 for CSV files.
I saved this huge script :
set csvFile to choose file of type {"public.csv", "public.comma-separated-values-text"}
as an application package.
Then, I entered in the package and edited its info.plist file.
I created an
UTImportedTypeDeclaration
Array
and inserted an entry so it resembled to :
<key>UTImportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.composite-content</string>
<string>public.data</string>
</array>
<key>UTTypeDescription</key>
<string>CSV family</string>
<key>UTTypeIconName</key>
<string>Document.icns</string>
<key>UTTypeIdentifier</key>
<string>public.comma-separated-values-text</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>com.apple.macos.ostype</key>
<string>CSV </string>
<key>public.filename-extension</key>
<array>
<string>csv</string>
</array>
</dict>
</dict>
</array>
You may build entries for the files which you want to easily identify.
When it’s done, run the script_app.
Your type_identifiers will be grabbed by the system and after that you will be able to use them in every tools.
Yvan KOENIG (VALLAURIS, France) samedi 22 mai 2010 14:02:42