bundleid cn.alanhe.medium category Self-Dev connections 05887F0C-F263-4DB5-9D60-D5569295F1D5 destinationuid FC19A4F5-AA5C-4F12-9C64-1D3B617DF2E4 modifiers 0 modifiersubtext vitoclose 1F99A061-C264-4609-9A9A-CCB68E7A9996 destinationuid A0C8B68C-727B-40D3-B4A5-37DEF20D5B2A modifiers 0 modifiersubtext sourceoutputuid 4D420D81-40D8-4789-9F1B-7004E69F7739 vitoclose destinationuid 43107DD7-0973-4C3B-BEC8-13AF81830CC6 modifiers 0 modifiersubtext sourceoutputuid 43A6A3D6-DC5E-4A6B-8524-3042F76124A4 vitoclose destinationuid A7B84DA3-DBA0-4EC4-A3CD-0CD14C7B7D82 modifiers 0 modifiersubtext vitoclose 43107DD7-0973-4C3B-BEC8-13AF81830CC6 destinationuid 9776069D-A0A9-4FDE-92C8-20546349DE5C modifiers 0 modifiersubtext vitoclose 9776069D-A0A9-4FDE-92C8-20546349DE5C destinationuid BA367EB7-EBFF-44A1-8850-338540687F1B modifiers 0 modifiersubtext vitoclose A0C8B68C-727B-40D3-B4A5-37DEF20D5B2A destinationuid ED5D79E1-9B45-4C44-A863-51A1612D72E1 modifiers 0 modifiersubtext vitoclose A33E5396-98F6-42B8-B299-23B86CA83F65 destinationuid 1F99A061-C264-4609-9A9A-CCB68E7A9996 modifiers 0 modifiersubtext vitoclose A7B84DA3-DBA0-4EC4-A3CD-0CD14C7B7D82 destinationuid 05887F0C-F263-4DB5-9D60-D5569295F1D5 modifiers 0 modifiersubtext vitoclose BA367EB7-EBFF-44A1-8850-338540687F1B destinationuid A7B84DA3-DBA0-4EC4-A3CD-0CD14C7B7D82 modifiers 0 modifiersubtext vitoclose ED5D79E1-9B45-4C44-A863-51A1612D72E1 destinationuid F1D1F74E-B1C8-448C-AC86-864BC2D6995F modifiers 0 modifiersubtext vitoclose FC19A4F5-AA5C-4F12-9C64-1D3B617DF2E4 destinationuid E9CD77C6-0904-4696-903F-1CCB7D5EEFF6 modifiers 0 modifiersubtext vitoclose createdby Alan He description using Medium’s API disabled name Medium Tools objects config browser skipqueryencode skipvarencode spaces url https://medium.com/me/settings type alfred.workflow.action.openurl uid F1D1F74E-B1C8-448C-AC86-864BC2D6995F version 1 config lastpathcomponent onlyshowifquerypopulated removeextension text Will jump to the Medium page... title You should set the token first type alfred.workflow.output.notification uid A0C8B68C-727B-40D3-B4A5-37DEF20D5B2A version 1 config seconds 1 type alfred.workflow.utility.delay uid ED5D79E1-9B45-4C44-A863-51A1612D72E1 version 1 config acceptsmulti 1 filetypes dyn.ah62d4rv4ge8043a net.daringfireball.markdown name Medium Deploy type alfred.workflow.trigger.action uid A33E5396-98F6-42B8-B299-23B86CA83F65 version 1 config concurrently escaping 102 script node ./author.js $TOKEN scriptargtype 0 scriptfile type 0 type alfred.workflow.action.script uid 43107DD7-0973-4C3B-BEC8-13AF81830CC6 version 2 config concurrently escaping 68 script on run argv tell application id "com.runningwithcrayons.Alfred" to set configuration "AUTHOR_ID" to value "{query}" in workflow "cn.alanhe.medium" end run scriptargtype 0 scriptfile type 6 type alfred.workflow.action.script uid BA367EB7-EBFF-44A1-8850-338540687F1B version 2 config matchmode 1 matchstring \n regexcaseinsensitive regexmultiline replacestring type alfred.workflow.utility.replace uid 9776069D-A0A9-4FDE-92C8-20546349DE5C version 2 config conditions inputstring {var:TOKEN} matchcasesensitive matchmode 0 matchstring outputlabel uid 4D420D81-40D8-4789-9F1B-7004E69F7739 inputstring {var:AUTHOR_ID} matchcasesensitive matchmode 0 matchstring outputlabel uid 43A6A3D6-DC5E-4A6B-8524-3042F76124A4 elselabel else hideelse type alfred.workflow.utility.conditional uid 1F99A061-C264-4609-9A9A-CCB68E7A9996 version 1 config taskuid com.alfredapp.automation.core/text-processing/text.lines.trim type alfred.workflow.automation.task uid 102B7D62-92B6-49EB-8561-3309DD7428A2 version 1 config browser skipqueryencode skipvarencode spaces url https://medium.com/me/stories/{query} type alfred.workflow.action.openurl uid E9CD77C6-0904-4696-903F-1CCB7D5EEFF6 version 1 config lastpathcomponent onlyshowifquerypopulated removeextension text Will jump to the Medium page... title Successfully published! type alfred.workflow.output.notification uid 05887F0C-F263-4DB5-9D60-D5569295F1D5 version 1 config concurrently escaping 102 script node ./index.js $TOKEN $AUTHOR_ID "{query}" scriptargtype 0 scriptfile type 0 type alfred.workflow.action.script uid A7B84DA3-DBA0-4EC4-A3CD-0CD14C7B7D82 version 2 config seconds 1 type alfred.workflow.utility.delay uid FC19A4F5-AA5C-4F12-9C64-1D3B617DF2E4 version 1 readme > Easy publish medium post ## Usage 1. custom publishStatus 2. trigger file action to publish 3. support multi-file selection ## Requirement ``` brew install node ``` ## API https://github.com/Medium/medium-api-docs uidata 05887F0C-F263-4DB5-9D60-D5569295F1D5 note Successfully published xpos 640 ypos 515 102B7D62-92B6-49EB-8561-3309DD7428A2 xpos 645 ypos 370 1F99A061-C264-4609-9A9A-CCB68E7A9996 xpos 195 ypos 325 43107DD7-0973-4C3B-BEC8-13AF81830CC6 note author_id missing xpos 370 ypos 225 9776069D-A0A9-4FDE-92C8-20546349DE5C note remove line break xpos 575 ypos 250 A0C8B68C-727B-40D3-B4A5-37DEF20D5B2A note token missing xpos 390 ypos 45 A33E5396-98F6-42B8-B299-23B86CA83F65 xpos 30 ypos 110 A7B84DA3-DBA0-4EC4-A3CD-0CD14C7B7D82 note just post xpos 290 ypos 515 BA367EB7-EBFF-44A1-8850-338540687F1B note save environment variable xpos 695 ypos 230 E9CD77C6-0904-4696-903F-1CCB7D5EEFF6 note jump to medium xpos 950 ypos 505 ED5D79E1-9B45-4C44-A863-51A1612D72E1 xpos 575 ypos 70 F1D1F74E-B1C8-448C-AC86-864BC2D6995F note set token in variable xpos 690 ypos 35 FC19A4F5-AA5C-4F12-9C64-1D3B617DF2E4 xpos 815 ypos 540 userconfigurationconfig config default draft pairs public public draft draft unlisted unlisted description label Publish Status type popupbutton variable publishStatus config default placeholder required trim description label Author ID type textfield variable AUTHOR_ID config default placeholder required trim description label token type textfield variable TOKEN variablesdontexport version 1.8 webaddress https://github.com/alanhg/alfred-workflows/tree/master/medium-publisher