I’m having a problem, I think its to do with UTI’s but it may be FileType definitions.
In a simple example file, I have defined 2 fileTypes.
- word with extension “doc”, filetype is blank
- actio with extension “actio” and UTI is “biz.ithought.actio”
Then, in a button.action I have:
[quote] dim dlg as new OpenDialog
dlg.Filter = FileTypes1.All
dim fi as folderItem = dlg.ShowModal[/quote]
When I run the openDialog correctly highlights just doc and actio files. But when I use the search field in the openDialog, only the doc files get listed.
I have checked the content of the UTI using mdls in Terminal. For the .doc files I get something sensible like:
kMDItemContentType = “com.microsoft.word.doc”
but for the .actio files, created in Xojo I get:
kMDItemContentType = “dyn.ah62d4rv4ge80c25yrf1u”
whereas I was expecting: “biz.ithought.actio”
I have also tried creating the files using the app compiled and wrapped with AppWrapper. Setting the UTI’s there using Sam’s instructions, but I get the same obscure UTI in mdls.
My objective is to get the Search field to correctly list all .actio files.
Does anyone know how to correctly set the UTI so that it all functions correctly?
NB This is all on Yosemite, Xojo 2014r1.