# Filetypes

**URL:** <https://forum.xojo.com/t/filetypes/40107>\
**Category:** General\
**Created:** [October 12, 2017, 12:45am UTC](https://forum.xojo.com/t/filetypes/40107 "2017-10-12T00:45:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [October 12, 2017, 12:45am UTC](https://forum.xojo.com/t/filetypes/40107/1 "2017-10-12T00:45:18Z")

</div>

why are these so freaking confusing?  
I had a filetype that worked back in Xojo2014  
then somewhere along the line the IDE dialog for entering Filetypes changed… and now what I had no longer works

I want to be able to select a XOJO VCP project file … however this no longer works (file remains grayed out)

- Display Name : Xojo VCP Project
- Description : 
- UTI Identifier : com.S.projectname
- Conforms to : 
- Extensions : .xojo\_project;.rbvcp
- Mime Type : 
- OS Types : 
- UTI Type : Imported

Note : removing the periods in Extensions did nothing

---

<div class="post-metadata">

**Author:** ![Norman\_P](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/858c86/32.png) [@Norman\_P](https://forum.xojo.com/u/Norman_P)\
**Post date:** [October 12, 2017, 12:48am UTC](https://forum.xojo.com/t/filetypes/40107/2 "2017-10-12T00:48:51Z")

</div>

If its imported you should import the correct UTI - not one you invent

you ONLY invent a new name when you EXPORT one

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [October 12, 2017, 12:53am UTC](https://forum.xojo.com/t/filetypes/40107/3 "2017-10-12T00:53:30Z")

</div>

I’m sorry Norman, but I have no idea what you just said…  
The information I entered above, was what I saw in the NEW Filetype dialog… which means Xojo CREATED it from the original project file… _I_ created the original Filetype in a much earlier version (when life was “simple”)

Please indicate what the correct information should be, as the LR is rather vague

---

<div class="post-metadata">

**Author:** ![Norman\_P](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/858c86/32.png) [@Norman\_P](https://forum.xojo.com/u/Norman_P)\
**Post date:** [October 12, 2017, 1:22am UTC](https://forum.xojo.com/t/filetypes/40107/4 "2017-10-12T01:22:49Z")

</div>

when you import one from some other application (the other app defines it - in this case the one for Xojo project & realbasic projects) you need to mimic the information that other application has

However you might need 2 entries because the IDE defines 2 UTIs (different extensions)

1. UTI = com.xojo.project.legacytextproject  
extension = .rbvcp  
OStype = RBVC  
conforms to = public.plain-text, com.xojo.project

2. UTI = com.xojo.project.text  
extension = .xojo\_project  
OStype = RBVC  
conforms to = public.plain-text, com.xojo.project

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [October 12, 2017, 1:32am UTC](https://forum.xojo.com/t/filetypes/40107/5 "2017-10-12T01:32:53Z")

</div>

Still have no idea how you came up with most of that… but it did work… Thank you

---

<div class="post-metadata">

**Author:** ![Norman\_P](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/858c86/32.png) [@Norman\_P](https://forum.xojo.com/u/Norman_P)\
**Post date:** [October 12, 2017, 2:00am UTC](https://forum.xojo.com/t/filetypes/40107/6 "2017-10-12T02:00:34Z")

</div>

A quick HOW TO 😛

if you want to IMPORT one from another app it definitely helps to have the other app available (its kind of required in a lot of cases)  
You CAN open its plist if you definitely need to and peek at the plists Exported Type UTI’s in Xcodes plist editor  
And since you can use find to find text in any of the fields in the UTI you can search for the extension, name, etc

Apple has a list of common ones on their web site  
[https://developer.apple.com/library/content/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html](https://developer.apple.com/library/content/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html)

And once you get things set up you can use mdls to see IF you have things set up right  
Or to examine the attributes of the file to see what known UTI it conforms to etc  
For instance, on my machine, the IDE project file gives the following and you can see that the “kMDItemContentType” tells you what UTI and "kMDItemContentTypeTree " the content hierarchy it is in  
- yes the IDE is still a rbvcp project since it would require a pile of unnecessary svn moves etc to change it for no real benefit -

```auto
server:~ npalardy$ mdls IDE.rbvcp 
_kMDItemOwnerUserID = 501
kMDItemContentCreationDate = 2017-10-12 01:13:25 +0000
kMDItemContentModificationDate = 2017-10-12 01:13:25 +0000
kMDItemContentType = "com.realsoftware.realstudio.plain-text-project"
kMDItemContentTypeTree = (
    "com.realsoftware.realstudio.plain-text-project",
    "public.plain-text",
    "public.text",
    "public.data",
    "public.item",
    "public.content"
)
kMDItemDateAdded = 2017-10-12 01:13:25 +0000
kMDItemDisplayName = "IDE.rbvcp"
kMDItemFSContentChangeDate = 2017-10-12 01:13:25 +0000
kMDItemFSCreationDate = 2017-10-12 01:13:25 +0000
kMDItemFSCreatorCode = ""
kMDItemFSFinderFlags = 0
kMDItemFSHasCustomIcon = (null)
kMDItemFSInvisible = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSIsStationery = (null)
kMDItemFSLabel = 0
kMDItemFSName = "IDE.rbvcp"
kMDItemFSNodeCount = (null)
kMDItemFSOwnerGroupID = 20
kMDItemFSOwnerUserID = 501
kMDItemFSSize = 140670
kMDItemFSTypeCode = ""
kMDItemKind = "REAL Studio Project"
kMDItemLogicalSize = 140670
kMDItemPhysicalSize = 143360

```

mdls is a handy UTI debugging tool along with lsregister

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 6:57pm UTC](https://forum.xojo.com/t/filetypes/40107/7 "2020-10-29T18:57:02Z")

</div>


