Apologies if this is a stupid question, I’ve been searching for hours for a solution but have been unable to find an answer.
I have some OmniJS scripts to link OP with OF. Part of the initial copy process is to append a link to the corresponding task in the other application, within the note of the task in each application.
For the link to the omniplan task I haven’t found a method of generating a link which includes the path to the file so that when clicked it opens the omniplan document.
My current method taken from the omni-automation.com site produces links which look like:
omniplan:///task/41
What i am looking for is a way of doing the equivalent of the menu option ‘Edit -> Copy Link To Task’ does when a task is selected in OmniPlan, in essence to build something which looks like:
omniplan://localhost/Users/username/Desktop/Test.oplx/task/41
The problem is i cant seem to get a handle on the open document file path /localhost/Users/username/Desktop/Test.oplx
through any of the OmniJS methods exposed in the API on any of the obvious classes (document, application, project.
I fear I’m missing something obvious, can anyone point me in the right direction? Or is this simply not possible to do with the JS API?