Hi there,
this is my first posting, let me already apologize if it is awkward.
I've been using keyboard maestro for several days now and I've created already a bunch of macros. I cannot imagine living without it anymore.
But right now I'm stuck.
I use XMIND ZEN and I want to export an XMIND-File to a PDF and Word-File with one click. It all works well within XMIND (well almost as you can see). I can get the export PDF and the export Word to the Desktop without a problem.
But XMIND doesn't export it into the right path where the document was originally stored.
Which means I do need the Finder information.
So this would require starting the macro by highlighting the XMIND-File in Finder.
Start XMIND, have the macros do their job and add the file path to the file name.
But I don't know how to extract the file path from the Finder and neither do I manage to open it at all (some things come easier for me than others, apologies for asking such a - probably stupid - question.)
And neither do I know how to add the file path to the output.
XMind ZEN isn't scriptable, and its accessibility features are poor – so you can't even get the file of the front document. The dev(s) should be ashamed...
Even so – it's possible to get this critter with Spotlight.
Although there's a risk of more than one file being found, I've mitigated that by using the kMDItemLastUsedDate attribute in addition to the kMDItemFSName attribute.