Drafts

Drafts

751 bookmarks
Custom sorting
Things Parser 3
Things Parser 3
I’ve just updated my Things Parser to version 3 in the action directory. I’ve decided to move from the old custom syntax to TaskPaper to take advantage of the syntax highlighting in Drafts and to aid compatibility with other apps. If you’ve never used Things Parser before, it takes tasks written in the TaskPaper format and imports them into the Things app. It supports everything that Things itself does including checklists, headings, natural language dates and more. You can read more about the ...
·forums.getdrafts.com·
Things Parser 3
The Files action on iOS/iPadOS does not work with Save in Place
The Files action on iOS/iPadOS does not work with Save in Place
I don’t own Devonthink, but I’d guess what’s going on is reflected in the action name. Save in place couldn’t work because it’s probably designed to receive a file and then add it to Devonthink where it is. To do this with Drafts, the best way would probably be to create a folder somewhere, add a bookmark to that and then have DevonThink import from there. comes down to the old, Drafts doesn’t use files, it’s a database thing, I think.
·forums.getdrafts.com·
The Files action on iOS/iPadOS does not work with Save in Place
The Files action on iOS/iPadOS does not work with Save in Place
The Files action on iOS/iPadOS does not work with Save in Place
Since bulk moving of notes from Drafts to DEVONthink To Go by x-callback URL means an ongoing and annoying automatic switching between both apps I decided to go with the Files action. DEVONthink To Go allows Save in Place, it is visible in the Files App, and other apps can save in DEVONthink To Go’s databases and groups. I had to find out that Drafts can not, if I did not do anything wrong. But it’s a simple action and I was able to make it work on the Mac, so I don’t think it was me. In Drafts ...
·forums.getdrafts.com·
The Files action on iOS/iPadOS does not work with Save in Place
Taskpaper Formatting
Taskpaper Formatting
Missed this when it was originally posted. Will look into it and resolve in an update.
·forums.getdrafts.com·
Taskpaper Formatting
Taskpaper Formatting
Taskpaper Formatting
First, it’s FULLY possible that I don’t understand something about Drafts, the Taskpaper format, or both! My question is this: is it possible to have the lines in a Taskpaper formatted draft align with the first character of the first line? See the attached image. The first three lines are aligned (a Taskpaper note). The next two ar aligned, too (a *). In the third grouping, I use a hyphen (indicating a task) and the second and third lines seem aligned with the hyphen rather than the text of...
·forums.getdrafts.com·
Taskpaper Formatting
Syntax highlighting YAML blocks within Pandoc Markdown files
Syntax highlighting YAML blocks within Pandoc Markdown files
I’m trying to write a syntax for Pandoc Markdown files. My articles in Pandoc Markdown always contain YAML blocks fenced by a pair of triple hyphens ---. Sublime Text syntax-highlights YAML keys and list hyphens nicely within the metadata block. In the Drafts syntax file though, I haven’t been able to figure out a regex to match YAML keys and list hyphens only within metadata blocks. What I’m looking for is a regex like: ((\w+)(: )(.*))|((\w+)(:)(\s\- )(.*)) But what this regex does is to mat...
·forums.getdrafts.com·
Syntax highlighting YAML blocks within Pandoc Markdown files
Send multiple highlights to Readwise in one action
Send multiple highlights to Readwise in one action
Hi, sorry for asking help here because this script is a little difficult for me to adjust. I want to send multiple highlights to Readwise and find this Send to Readwise | Drafts Directory . This is exactly what I want, but can I make some adjustments? I don’t need to add “page” to every highlights. How can rewrite this script to delete “page” only keep “highlights”, “Title”, “Author”? Thanks for you time and kind help.
·forums.getdrafts.com·
Send multiple highlights to Readwise in one action
Searching for words
Searching for words
I spotted this earlier today, but have been travelling or busy with other things most of the day, so I didn’t get chance to look at it in more detail until this evening, and spent a few hours putting something together. Other than the phone and Drafts aspect, it was this that got me thinking. It sounded like this was purely a find operation (rather than edit), and the “highlighting” aspect also piqued my interest as the Drafts editor doesn’t really align itself to that sort of thing unless you...
·forums.getdrafts.com·
Searching for words
Searching for words
Searching for words
I recently got asked by a relative to search for different words in a text. “Easy” I answered and was thinking of either a simple Python script or a regexp in BBEdit. Then came the next sentence, “I need to do it on my phone” and things got way more complicated for me. But I thought that perhaps it can be done in Drafts, and I’m sure it can be done but unfortunately Drafts is something that is a pretty unknown to me. From what I can see Drafts support regexp but it looks like searches can’t be...
·forums.getdrafts.com·
Searching for words
Run action on all drafts in a workspace
Run action on all drafts in a workspace
Hi everyone I’m in the process of writing some light user-manual type material in the form of separate drafts in their own workspace. Once I’ve finished writing them I’d like to be able to ‘get them all out of the workspace’ in one batch, ideally. I haven’t decided how, yet. Is there a way that I could select a workspace and run the appropriate action on all drafts in that workspace, rather than having to go through and do each one manually? Thanks Ben
·forums.getdrafts.com·
Run action on all drafts in a workspace
Regular Expresesion Capture Group Positioning
Regular Expresesion Capture Group Positioning
I am working on an Action that is supposed to transform text in this format: Mow the lawn to this format: [ ] #n/task Mow the lawn for {{ProjectName}} #s/scheduled The regex script I’m using is: const findRegex = /^- (.)*?/gm; // define replacement expression... const replaceWith = "- [ ]\#n/task $1 for \{{VacationName}} \#s/scheduled"; This works except that the $1 capture group is placed at the end of the reformatted task. Like this: [ ] #n/task for {{ProjectName}} #s/scheduled Mow t...
·forums.getdrafts.com·
Regular Expresesion Capture Group Positioning
Process Drafts in INBOX Action
Process Drafts in INBOX Action
Sure glad to help! I‘m mostly using the On My Mind now since I often have just quick thoughts which I add to the on my mind draft and then process them later. I don’t see the inbox count for the On My Mind draft which is better for me and I can use the inbox count more precisely:) Just look what fits for you
·forums.getdrafts.com·
Process Drafts in INBOX Action
Process Drafts in INBOX Action
Process Drafts in INBOX Action
Hi, I made an action which for me is one of the most useful ones in the last days. I store pretty much everything text related in drafts. To quickly sort it out i have a few actions (in different action groups) I normally run on them). To speed this up I created an action which loops through the drafts in my INBOX workspace and asks me for each of them what to do. I can select actions from a prompt and they will be enqueued and run after processing all drafts in the INBOX. You can customize...
·forums.getdrafts.com·
Process Drafts in INBOX Action
Need Spark Action that Sends Copies
Need Spark Action that Sends Copies
Here’s this morning’s response from Readdle: Thank you so much for your emails and provided information. Let me apologize for the misunderstanding. I’ve just double-checked the information with our Quality Assurance team and would like to let you know the URL scheme, indeed, is available in Spark. However, the new line characters in the body text feature is not supported at the moment. Please be assured that I’ve added your kind request to our Wish List for the developers to look through an...
·forums.getdrafts.com·
Need Spark Action that Sends Copies
Need Spark Action that Sends Copies
Need Spark Action that Sends Copies
Please excuse me if I’m posting this in the wrong area of the Community. I much prefer Spark over Mail. Mail is very well supported by Drafts via the Mail Action Step, but I’m having trouble finding a similar level of support for Spark. Yes, there are four Actions for Spark in the directory, but none of them enables all the parameters of Spark’s x-callback-url scheme: subject, body, to, cc, and bcc. Specially, I need support for all these parameters other than bcc. How do I write my own Act...
·forums.getdrafts.com·
Need Spark Action that Sends Copies
List of Apps with x-callback-url spec
List of Apps with x-callback-url spec
Exactly! I had included it in a seperate list of Apps with unverified x-callback-url support. I’ve noticed that it’s still quite common for people to mix up URL schemes with x-callback-urls. There are also some developers / bloggers who mix these up in their own documentation or write-ups, so I get why this is confusing.
·forums.getdrafts.com·
List of Apps with x-callback-url spec
List of Apps with x-callback-url spec
List of Apps with x-callback-url spec
I’m new here and this is my first post on the Drafts community forum. Drafts has a rich and extensive documentation on it’s functionality and various use-cases, including integration of x-callback-url. The official x-callback-url website introduced a list of (third-party) Apps that support the specification. Throughout the years, several attempts have been made by members of the community to update / document the list of Apps. I.e One Tap Less_https://onetapless.com/library AppTalk_https:/...
·forums.getdrafts.com·
List of Apps with x-callback-url spec
iPad iOS Widget - Running Action and Cursor Placement
iPad iOS Widget - Running Action and Cursor Placement
I think I figured it out. I used this thread to work out which parts to edit from the “New Draft from Template” action - Using prompt results in New Draft with Template After looking at that, I commented (added “//“ before each like) out the code to be disabled like that person suggested. The script now looks like the below. I’m sure this looks terrible to anyone with experience, but I’m pleased it’s working! I guess I can now delete all the commented code. Here’s the script: //modified from...
·forums.getdrafts.com·
iPad iOS Widget - Running Action and Cursor Placement
iPad iOS Widget - Running Action and Cursor Placement
iPad iOS Widget - Running Action and Cursor Placement
Hi I have created a simple “insert text” action to create a template dated note. Essentially as follows: Title Created: “[[date]]” Body text When running the action within drafts, the cursor appears where I need it to - before the word “Body” in the example above. That allows me to immediately create the content of my note. When running the action from the iOS widget, however, the cursor doesn’t appear until I press on the screen. Is there a fix for that, or am I doing something wrong? Ma...
·forums.getdrafts.com·
iPad iOS Widget - Running Action and Cursor Placement
Insert Text From Other Drafts
Insert Text From Other Drafts
As an update, the auto complete functionality worked great! I now have another query, but I will start a new topic.
·forums.getdrafts.com·
Insert Text From Other Drafts
Insert Text From Other Drafts
Insert Text From Other Drafts
Hi everyone, Is it possible to insert text from another draft through an action? My use case: I keep various templates in one workspace within Drafts (meeting note, literature note, etc…) and would like to have actions to retrieve the content of a specific template and insert it into the current draft. Is this possible? I know, Drafts has a template system to retrieve template files from within the Finder/Files App but I would like to use Drafts itself as a repo for my templates because that...
·forums.getdrafts.com·
Insert Text From Other Drafts
HTTP Post data in raw?
HTTP Post data in raw?
As far as I known the HTTP | Drafts Script Reference (getdrafts.com) request only accepts json or form for data. In my case the server needs raw. (I’m playing with Zotero web api). Similar question seems to be there but no answers. Can I ‘POST’ Raw Data to a Web API? - Scripting - Drafts Community (getdrafts.com)
·forums.getdrafts.com·
HTTP Post data in raw?
How I Use Drafts - How Do You? (Feedback appreciated)
How I Use Drafts - How Do You? (Feedback appreciated)
I’ve been using Drafts awhile but never as the place where text starts. Since we gained the ability to use wikilinks I created what I really wanted in Drafts which was what I call connected notes. They rely on tags, workspaces, and actions to send some of the content on sometimes to Ulysses or Day One. For my use Drafts works very well for managing my little connected world of notes. Now with the wikilinks and being able to create really cool links like for workspaces I get a lot of use from the...
·forums.getdrafts.com·
How I Use Drafts - How Do You? (Feedback appreciated)
How I Use Drafts - How Do You? (Feedback appreciated)
How I Use Drafts - How Do You? (Feedback appreciated)
Drafts is my #2 most used app … behind email, and best follows the theme ‘capture first - process later’. I don’t, however, leverage many actions for text, posting to apps, email, etc. it’s primarily my note pad for everything! I use it for: … creating initial content for email, text, docs as my ‘capture first’ and then I finalize (then copy/paste) … I do use 2 actions - Add to List (I have 8 lists) and Day One Journal … My ‘Add to List’ action includes: 1) All Ideas capture; 2) Daily Journal...
·forums.getdrafts.com·
How I Use Drafts - How Do You? (Feedback appreciated)
Editing JavaScript
Editing JavaScript
Similar to @sylumer, I do most of my script development outside of Drafts, and I try as much as possible to do it entirely on my Mac. If I’m doing it on my i*OS device, then will put the script in the body of a draft and use an action to execute that body. For me, I leverage the FileBookmark feature agiletortoise enabled a few releases ago to point to my local git repo. The script is as such: let bookmark = Bookmark.findOrCreate("git"); let fm = FileManager.createForBookmark(bookmark); let c...
·forums.getdrafts.com·
Editing JavaScript