Jim would you be so kind as to explain how to implement a JS action (pointer to a URL would be great). Is it IN 1writer, or in Shortcuts on the iPad? Or other?
Thanks!
Jim would you be so kind as to explain how to implement a JS action (pointer to a URL would be great). Is it IN 1writer, or in Shortcuts on the iPad? Or other?
Thanks!
Hi @RobOK
The scripting is done entirely in 1Writer. Here is the documentation on JavaScript in 1Writer.
Here are some actions that you may find useful.
I hope that helps!
I literally did not know how to add a Javascript Action, but now I do!
Do you have some concern about using 1Writer and DropBox, it seems to work fine?
Does anyone know how to use an iPad Shortcut to add the typed text into the 1Writer document, hopefully in the Inbox: project but getting it anywhere would be great.
Since the files are simply text files, Dropbox should be fine with them. Of course, usage may depend on the other apps and shortcuts that you use.
The following will ask for text in a dialog, then prepend it to a designated text file. It just adds the text at the top of the document (no inbox project), but it does prepend a dash and a space before the text, thus formatting the text as a TaskPaper task.
One important note, and this is due to Shortcuts: the text document has to be in the Shortcuts folder in the iCloud directory. If you put the text document elsewhere, the shortcut fails to add the text to the document.
An example of where I have the TaskPaper document:
The shortcut.
Hmm. I am not currently using iCloud for documents (maybe I should migrate off DropBox), but I guess I could just store my TaskPaper doc there.
I did create a shortcut that simply opens my taskpaper document in 1Writer, so maybe that will be low enough friction.
Most often i use a 1-click email app called Captio. You preconfigure one email address. When you have a stray thought, you type in the text and hit send and you get an email with the text. Later I filter email on Captio (or you can put a phrase in the subject line) and process them all.
I’ve found the combo of Mac TaskPaper, iOS 1Writer, Keyboard Maestro, and Shortcuts (with AppleScript & JavaScript mixed in) to be frictionless for my needs and major desires.
I think that the key to any multipart system is to find (or create) what works best for you.
I regularly refine and improve my system, as I enjoy doing that, and TaskPaper is utterly flexible in its design.
Good luck on your journey with it!
So it seems to me that the the main missing point is folding… if only Editorial had iCloud sync…!
Gotta question that relates to your process using TaskPaper files in iOS…
Is there way one could use TaskPaper files in iOS – e.g., through changing the file format, and working on that file through one of the iOS apps you suggest – and be able to select & copy discontiguous text from that file?
I’d welcome any ideas / suggestions for how I might be able to accomplish this… Thanks so much!
BTW, I’m happy to use another iOS app in conjunction with 1Writer – or another app that would work with TaskPaper, and could sync with MacOS.
Any ideas or suggestions? Thanks!
In theory, yes.
You would have to find an iOS text editor that supports a syncing service and discontiguous text selection.
Thanks, I’ve been looking! I contacted the developer for 1Writer, and he said their app doesn’t do it.
Know of any apps that place nice with TaskPaper and has syncing service? I don’t mind contacting each of developers to see if they also do discontiguous text selection…
Also, like I said, I also don’t mind using some other kind of iOS clipboard app that might enable me to copy discontiguous text selections. Any chance you know of any…?
Thanks again for your help!
I haven’t tried this, but if you don’t mind the geekiness, it looks like it is worth exploring.
Why?
If you try it, report back about your experience.
If you want to contact iOS text editor developers, this list might help.
Thank you so, so much for this, @Jim – this is incredibly helpful! I’m going to try it out, and will certainly report back.
Two super quick questions…
I’m actually using a TaskPaper file, and the process of selecting and copying discontiguous text, in order to copy and paste tags (hashtag/tags) into another app. In order to do so, multiple hashtags would need to be pasted as follows: [hashtag/tag]+[SPACE]+[COMMA]+[SPACE]+[hashtag/tag]
So, would it be possible to amend Federico Viticci’s script so that it can accomplish this?
I flesh out the file with my hashtag/tags in TaskPaper (MacOS). If I were to follow the process you suggested, I would need to (1) figure out how to transfer this file from TaskPaper to Editorial, and then (2) determine how I can transfer it back from Editor to TaskPaper, where I’d use the file for another process. Are there particular steps you’d suggest to ensure that I maintain the file’s integrity?
Thanks so much for all of your help, as per usual… I really do appreciate it.
You’re welcome @printer.
I hope that helps!
FYI, my Taskpaper files end with .taskpaper and 1Writer opens them with no problem from my Dropbox.
My wife and I are big Dropbox users with FileMaker Pro and Pages files (among others) on four computers and we have no problem unless someone tries to open a file on multiple computers at the same time. 1Writer is working fine with my files in Dropbox, so I am going to try to learn some scripting (thanks Jim for your generosity)— I will be the only one using the files. I would like to use 1Writer to add a Taskpaper task — any suggestions for my first script?
Happy to hear that you want to try scripting—it is fun, educational and your efforts will pay you back for a long time!
Well, I would suggest thinking about what feature is the most important to you. Start with that.
If you want to add a task, think about what you will need. What constitutes a task in the TaskPaper format?
Then, in 1Writer, try to figure out what would create the parts that every task has.
I have a basic script for such, but I will hide it here:
editor.replaceTextInRange(0, 0, ‘\n’);
editor.replaceTextInRange(0, 0, '\t- ');
Try to figure it out on your own, before you look at my code.
I hope that helps, and that it provides some inspiration!