detect opening of supported filetype and open in app?

I’ve read the docs and it seems that GetOpenFolderItem may be the one to use in the App.OpenDocument method to do what I’m asking. Basically, I want to open my app when one of it’s supported file types is opened.

Thanks,
Shane.

If you associate your file types correctly with your app (see related topics), then the OS will open your app if one of your files is double-clicked. You then will receive that file(s) in App.OpenDocument. Generally, you would not call GetOpenFolderItem as the user has already indicated which file they want by double clicking on it. Just take the folderitem passed to OpenDocument and do whatever with it.