Recently I have much enjoyed programming a few actions for LaunchBar that show a list of recent files for apps that I used very often, but are not of a Cocoa type. These include: Microsoft Word 2016, PowerPoint 2016, Excel 2016, Mathematica, Matlab, Acrobat DC, Illustrator CC, Photoshop CC, Together, OneNote. My actions are written in Objective-C (see also image below).
I am planning to share my actions in the future with the community. Everything works great except for a tiny detail, which is bugging me for several days. The simplest way to understand my problem is through a concrete case:
Imagine that my PDF file format is associated with Skim.app instead of Adobe Acrobat, but I want to see the recent files of Acrobat. My action show them correctly. However, when I click on any item, the item is open with my default PDF viewer, that is, Skim.app. Of course, the user (for now, I) could send the item to Adobe Acrobat instead of pressing enter. But this seems to me unnecessary complicated.
I am wondering if there is anything I can provide in the structure of items to force LaunchBar to open a certain path-type item with the application I desire. Below is an example of a typical item my actions are generating:
"title" : "manuscript.pdf",
"subtitle" : "\/Volumes\/Macintosh HD\/Users\/andrea\/Desktop",
"path" : "\/Volumes\/\/Macintosh HD\/Users\/andrea\/Desktop\/manuscript.pdf"
What else can I add to this item to achieve my goal? To be clear, I am not looking for a solution using URI-type of URL addresses, because I still want to show the list of items as path-type items. This is the default behavior for all recent files of Cocoa applications which LaunchBar per default offers.
I am very grateful to anyone who could help me with this issue.