pratik
pratik

Is it possible to schedule a post on Micro.blog through a Drafts action? @mtt

Through MarsEdit? @danielpunkass @miraz

|
Embed
Progress spinner
Mtt
Mtt

@pratik @danielpunkass @miraz Not that I'm aware of. And the API doc on posting doesn't list that as an option.

|
Embed
Progress spinner
Miraz
Miraz

@pratik MarsEdit certainly has a date and time selection tool for a post. I haven't tried scheduling a Micro.Blog for the future but presume it works just fine.

|
Embed
Progress spinner
Miraz
Miraz

@Mtt @pratik @danielpunkass I'll find out in about 5 minutes. 😀

|
Embed
Progress spinner
Miraz
Miraz

@Mtt @pratik @danielpunkass My test just now worked fine. Set posting for about 5 minutes in the future and it published at my selected time.

|
Embed
Progress spinner
pratik
pratik

@Miraz That's cool. I see the Edit date option. I wish @danielpunkass let us add it to the toolbar for quick access or on the sidebar (below categories and above server options).

@Mtt there's a 'Send to Marsedit' action in Drafts if you want to schedule a post. I don't think we can send to Mb as a draft from Drafts, right?

|
Embed
Progress spinner
pratik
pratik

@Mtt Ugh! I know @manton has been working on making schedulings posts better. IIRC @amit had also asked for it. Currently, we have to save as draft and then schedule it by manually typing in the date and time in a fixed format.

|
Embed
Progress spinner
Miraz
Miraz

@pratik I see there's a keystroke for Edit Date…

|
Embed
Progress spinner
pratik
pratik

@Miraz I'm more of a trackpad kinda guy 😄

|
Embed
Progress spinner
Miraz
Miraz

@pratik In that case I'm going to mention Keyboard Maestro — create a palette to display in MarsEdit (or just a global palette). Click the button on the palette and bingo! it does the keystroke / menu choice for you. 😀 I use Keyboard Maestro so much for so many small and large things on my Mac.

|
Embed
Progress spinner
Mtt
Mtt

@pratik Yeah, you can send from Drafts directly to M.b as a draft instead of published. You'd just need to edit the Action and add the parameter "post-status=draft". You could also accomplish this with Shortcuts.

|
Embed
Progress spinner
pratik
pratik

@Mtt Can it ask if we want to send as a draft or as a published post?

|
Embed
Progress spinner
Mtt
Mtt

@pratik It can, or you can have 2 separate buttons that do whichever one without the prompt.

|
Embed
Progress spinner
pratik
pratik

@Mtt Creating a separate action is a good idea. Where in the script should I add the parameter post-status=draft?

|
Embed
Progress spinner
pratik
pratik

@Mtt BTW here is the Drafts action I use that prompts me to include the title or not as well as add categories.

|
Embed
Progress spinner
maique
maique

@pratik Thank you. Copied it, for the categories.

|
Embed
Progress spinner
Mtt
Mtt

@pratik After just a quick glance on my phone, I believe it should go under this line:

|
Embed
Progress spinner
pratik
pratik

@Mtt Gives an error. Don't I have to reference it later in the code?

|
Embed
Progress spinner
pratik
pratik

@Miraz Ah! I need to justify the cost for Keyboard Maestro by thinking of what else I can use it for. Do you have a blog post where you have documented everything you use it for?

|
Embed
Progress spinner
Miraz
Miraz

@pratik Goodness, that would be a long post! I'll have a think about it though and see what I can write up.

|
Embed
Progress spinner
Mtt
Mtt

@pratik You shouldn’t have to reference it again. I can take a look when I get back from holiday travel if you haven’t figured it out by then.

|
Embed
Progress spinner
pratik
pratik

@Mtt No rush. Happy holidays!

|
Embed
Progress spinner
pratik
pratik

@Mtt added "post-status": "draft" to the code and it now works. I was missing a , at the end of the previous var so it was throwing an error which didn't make sense.

|
Embed
Progress spinner
Mtt
Mtt

@pratik An, good catch. Apologies on not responding, completely slipped my mind.

|
Embed
Progress spinner
Miraz
Miraz

@pratik At last … I wrote this up a few days ago and thought I could maybe improve it. Instead you have this: miraz.me/2023/01/0... 😀

|
Embed
Progress spinner
pratik
pratik

@Miraz Awesome! Thanks a lot

|
Embed
Progress spinner
In reply to
Miraz
Miraz

@pratik You're very welcome. I hope it provides a taste of what it can be used for. Feel free to ask questions. 😀

|
Embed
Progress spinner
crossingthethreshold
crossingthethreshold

@Miraz I've just sat and read your post. I was aware that you used Keyboard Maestro, but how much you used it. Wow! Thank you for sharing its possibilities.

|
Embed
Progress spinner
Miraz
Miraz

@crossingthethreshold Thanks for reading. That didn't cover all my uses by far, but I hope it gave a good taster. I've used KM for years now and regularly end up deleting old macros because the world has moved on.

|
Embed
Progress spinner