Access resource:// from an add-on

How I can do this?

You’ll have to be a lot more specific.

I want to create or open a file called snippets.xmt in Komodo user directory. How I can do that? Can I use resource://profile/ to access this directory?

Depends on the context you’re using. The resource:// uri is for use in LESS, XUL, … It is not something you would likely want to be using in your javascript logic. For that you would use https://developer.mozilla.org/en-US/Add-ons/SDK/High-Level_APIs/system#pathFor(id)

That’s it! Thanks.