Should be like the other scripts that doesnât work because of the change in the application id name⌠Not tested, but just changing the name to âTaskPaperâ should do it: tp3 = Application('TaskPaper')
I tried to import an opml that was created by exporting from Omnioutliner. The script allows me to open to this file, but then I get a result of [undefined]. I donât see myfilename.taskpaper anywhere, so Iâm guessing that something went wrong. How can I troubleshoot this?
Edit: nevermind, it created a new Taskpaper window with the content in it, but the conversion seems a bit iffy. Not much better than copying and pasting the contents.
My file wasnât very large so I ended up opening it in my text editor and adding the markup there (mostly : for the sections and the - for the items). The import script was not adding these, but I did only try the one file.
Hi, I have the latest version of TaskPaper (3.8.17) and this script doesnât seem to work. Has anything changed?
Or how can I import OPML files?
I use XMind 8 as mind map maker and export in OPML.
I follow the steps described here and in the official Wiki on how to implement the Scripts. When I try to test the Script from âSrcript Editor Appâ, it doesnât let me select the OPML file.
I have checked that the script is well copied to the end. When I click on run it opens the window to select the file, but the OPML file is not allowed to be selected.
Iâm running an earlier version of macOS here, and I wonder whether public.text is a mismatch for opml files, either in the context of Monterey, or in the context of the way that XMind are writing out their opml files.
What I suggest is that at the stage of the script where you see:
ofType: ['public.text']
that you try adjusting it either to:
ofType: ['public.text', 'public.xml']
(allowing for the possibility that the system considers those files to be XML)
or
// ofType: ['public.text']
in other words, commenting out the type restriction entirely (preceding it with a // JavaScript comment prefix) so that any file could be selected.
If you still get no joy, perhaps you could zip up and post here an anonymised sample opml file from the XMind app that you are using ?
Do you think I can effectively try one of these other formats?
Or once it is already imported as OPML and does not recognise the nodes, what should I do to convert it into the TaskPaper structure?