Broken attempt at open-from-other-app

Pretty messy. Just saving for future reference.