# File type editor

**URL:** <https://forum.xojo.com/t/file-type-editor/75572>\
**Category:** General\
**Created:** [April 30, 2023, 1:41pm UTC](https://forum.xojo.com/t/file-type-editor/75572 "2023-04-30T13:41:41Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabio\_stranieri](https://forum.xojo.com/user_avatar/forum.xojo.com/fabio_stranieri/32/1939_2.png) [@fabio\_stranieri](https://forum.xojo.com/u/fabio_stranieri)\
**Post date:** [April 30, 2023, 1:41pm UTC](https://forum.xojo.com/t/file-type-editor/75572/1 "2023-04-30T13:41:41Z")

</div>

Hi,  
in a sample app (Folderitem Dialogs), I see the follow code:

// The filter is what type of file you are looking for  
// The filters are defined in the File Types dialog  
// inside the edit menu  
dialog.Filter = text/plain

In my edit menu (xojo 2016R4.1) there is not “File Type” inside edit menu.

Thank you

---

<div class="post-metadata">

**Author:** ![Sebastien\_REMY](https://forum.xojo.com/user_avatar/forum.xojo.com/sebastien_remy/32/1946_2.png) [@Sebastien\_REMY](https://forum.xojo.com/u/Sebastien_REMY)\
**Post date:** [April 30, 2023, 1:51pm UTC](https://forum.xojo.com/t/file-type-editor/75572/2 "2023-04-30T13:51:14Z")

</div>

Do you insert file type in a file type group on the IDE from the Insert button ?

 ![Screenshot 2023-04-30 at 15.50.52](https://forum.xojo.com/uploads/default/original/2X/9/9d9c46d8f81ca79d235cbe5132e9e65206baa322.jpeg)

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [April 30, 2023, 2:00pm UTC](https://forum.xojo.com/t/file-type-editor/75572/3 "2023-04-30T14:00:07Z")

</div>

> [@Sebastien\_REMY](#):
>
> Do you insert file type

fabio says: **xojo 2016R4.1**

To add a FileType, go to the Insert Menu (MenuBar) and… Insert a FileType (or something that looks like that).

Then, in the Navigation pane (left), setach for FileType1,  
select it,  
rename it to something meaningful (that’s for you)  
then add a File Type (look in the middle of the window since I forget that one),  
then you have PopupMenus to add either a blank you have to populate or at the window bottom to choose some already defined.  
“text/plain” is in the PopupMenu.

---

<div class="post-metadata">

**Author:** ![Greg\_O](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o/32/22785_2.png) [@Greg\_O](https://forum.xojo.com/u/Greg_O)\
**Post date:** [April 30, 2023, 3:40pm UTC](https://forum.xojo.com/t/file-type-editor/75572/4 "2023-04-30T15:40:21Z")

</div>

If you are on macOS, you can drag file types into the FileTypeGroup editor and it will attempt to extract the info it needs from the item.

---

<div class="post-metadata">

**Author:** ![Robert\_Weaver](https://forum.xojo.com/letter_avatar_proxy/v4/letter/r/919ad9/32.png) [@Robert\_Weaver](https://forum.xojo.com/u/Robert_Weaver)\
**Post date:** [April 30, 2023, 5:05pm UTC](https://forum.xojo.com/t/file-type-editor/75572/5 "2023-04-30T17:05:25Z")

</div>

> [@Greg\_O](#):
>
> you can drag file types into the FileTypeGroup editor

Do you mean drag **files** , or drag **file types**? If file types, where are these found?

---

<div class="post-metadata">

**Author:** ![TimStreater](https://forum.xojo.com/user_avatar/forum.xojo.com/timstreater/32/586_2.png) [@TimStreater](https://forum.xojo.com/u/TimStreater)\
**Post date:** [April 30, 2023, 5:09pm UTC](https://forum.xojo.com/t/file-type-editor/75572/6 "2023-04-30T17:09:13Z")

</div>

Well he’s going to mean **files** , wouldn’t you say?

---

<div class="post-metadata">

**Author:** ![Jean-Yves\_Pochez](https://forum.xojo.com/user_avatar/forum.xojo.com/jean-yves_pochez/32/21769_2.png) [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Post date:** [April 30, 2023, 6:29pm UTC](https://forum.xojo.com/t/file-type-editor/75572/7 "2023-04-30T18:29:27Z")

</div>

just tested it, works fine. thanks Greg !

---

<div class="post-metadata">

**Author:** ![Greg\_O](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o/32/22785_2.png) [@Greg\_O](https://forum.xojo.com/u/Greg_O)\
**Post date:** [April 30, 2023, 8:54pm UTC](https://forum.xojo.com/t/file-type-editor/75572/8 "2023-04-30T20:54:03Z")

</div>

Yes, files. Sorry about that… and folders/bundles. It’ll handle that too.

---

<div class="post-metadata">

**Author:** ![Robert\_Weaver](https://forum.xojo.com/letter_avatar_proxy/v4/letter/r/919ad9/32.png) [@Robert\_Weaver](https://forum.xojo.com/u/Robert_Weaver)\
**Post date:** [May 1, 2023, 12:56am UTC](https://forum.xojo.com/t/file-type-editor/75572/9 "2023-05-01T00:56:02Z")

</div>

Thanks for the clarification. I thought maybe I was missing something.  
Anyway, that’s a handy tip. Thanks for posting it.

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [May 1, 2023, 6:03am UTC](https://forum.xojo.com/t/file-type-editor/75572/10 "2023-05-01T06:03:50Z")

</div>

fabio ?

---

<div class="post-metadata">

**Author:** ![fabio\_stranieri](https://forum.xojo.com/user_avatar/forum.xojo.com/fabio_stranieri/32/1939_2.png) [@fabio\_stranieri](https://forum.xojo.com/u/fabio_stranieri)\
**Post date:** [May 1, 2023, 6:34am UTC](https://forum.xojo.com/t/file-type-editor/75572/11 "2023-05-01T06:34:39Z")

</div>

Emile, for me it work exatly as you advice me!  
Thank you
