|
Hello,
I've been trying to set up my own UTI for use with Select document. I use a custom extension for files that my apps exchange data through. The extension is .a5 I tried to setup a custom UTI (com.imagora.a5) by editing 4D's info.plist file by adding : <key>UTExportedTypeDeclarations</key> <array> <dict> <key>UTTypeConformsTo</key> <array> <string>public.data</string> </array> <key>UTTypeDescription</key> <string>Macs A5 file</string> <key>UTTypeIconFile</key> <string>4DDataBlob.icns</string> <key>UTTypeIdentifier</key> <string>com.imagora.macs.a5</string> <key>UTTypeTagSpecification</key> <dict> <key>public.filename-extension</key> <array> <string>a5</string> </array> </dict> </dict> .... No luck. When I call Select document ("";"com.imagora.a5";"";0), all files are selectable. Anybody with experience on that ? Pierre Leblanc. ********************************************************************** Save up to $200 - 4D Summit Early Bird registration ends this week! http://www.4d.com/us/company/events/summit2010.html 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[hidden email] ********************************************************************** |
|
On 10 aug 2010, at 12:57, Pierre Leblanc wrote: > I've been trying to set up my own UTI for use with Select document. > I use a custom extension for files that my apps exchange data through. > The extension is .a5 > I tried to setup a custom UTI (com.imagora.a5) by editing 4D's info.plist file by adding : > .... > No luck. When I call Select document ("";"com.imagora.a5";"";0), all files are selectable. > Anybody with experience on that ? Hi Pierre, You might need to update the LaunchServices database (using the lsregister command line utility). Give the following a try: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Support/lsregister -R -f -v /Applications/4D\ v12/4D.app HTH, - Rob Laveaux -------------------------------------------------------- Pluggers Software Bleriotlaan 62 2497 BM Den Haag The Netherlands Email: [hidden email] Website: http://www.pluggers.nl -------------------------------------------------------- ********************************************************************** Save up to $200 - 4D Summit Early Bird registration ends this week! http://www.4d.com/us/company/events/summit2010.html 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[hidden email] ********************************************************************** |
|
In reply to this post by Pierre Leblanc-2
On 8/10/2010 12:57 PM, Pierre Leblanc wrote:
> Hello, > > I've been trying to set up my own UTI for use with Select document. > > I use a custom extension for files that my apps exchange data through. > > The extension is .a5 > > I tried to setup a custom UTI (com.imagora.a5) by editing 4D's > info.plist file by adding : > > ... > No luck. When I call Select document ("";"com.imagora.a5";"";0), all > files are selectable. Except for the typo in the UTI (com.imagora.a5 instead of com.imagora.macs.a5), there was one additional step : move the package around ! It appears that info.plist gets reparsed only when the package is copied (not just moved) elsewhere. So I just copied the 4D package to another location and *boom*, it worked. Sorry for the noise. Pierre. ********************************************************************** Save up to $200 - 4D Summit Early Bird registration ends this week! http://www.4d.com/us/company/events/summit2010.html 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[hidden email] ********************************************************************** |
|
In reply to this post by Rob Laveaux
On 8/10/2010 1:20 PM, Rob Laveaux wrote:
> On 10 aug 2010, at 12:57, Pierre Leblanc wrote: > > >> I've been trying to set up my own UTI for use with Select document. >> I use a custom extension for files that my apps exchange data through. >> The extension is .a5 >> I tried to setup a custom UTI (com.imagora.a5) by editing 4D's info.plist file by adding : >> .... >> No luck. When I call Select document ("";"com.imagora.a5";"";0), all files are selectable. >> Anybody with experience on that ? >> > Hi Pierre, > > You might need to update the LaunchServices database (using the lsregister command line utility). > > Give the following a try: > /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Support/lsregister -R -f -v /Applications/4D\ v12/4D.app > > Pierre. ********************************************************************** Save up to $200 - 4D Summit Early Bird registration ends this week! http://www.4d.com/us/company/events/summit2010.html 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[hidden email] ********************************************************************** |
| Powered by Nabble | See how NAML generates this page |
