Jump to content

jonteamere

Member
  • Posts

    40
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    jonteamere reacted to deanishe in EggTimer v2 [updated to 2.0 final]   
    Download the zip file from the repo (Clone or download > Download ZIP) and extract it. Go into the new directory, select all the files, right-click and choose "Compress 11 Items". That will create Archive.zip. change the name to Archive.alfredworkflow and double-click it.
     
  2. Like
    jonteamere got a reaction from bidays in Apple Music workflow with Love   
    Big fan of Apple Music (iTunes). Not a big fan of switching windows each time I feel the need to "Love" a song or add it to My Music.
     
    Is there not a workflow that accomplishes either of those tasks?
     
    Would someone be interested in creating one?
     
    Thanks for the help.
  3. Like
    jonteamere got a reaction from Jonathan in Apple Music workflow with Love   
    Big fan of Apple Music (iTunes). Not a big fan of switching windows each time I feel the need to "Love" a song or add it to My Music.
     
    Is there not a workflow that accomplishes either of those tasks?
     
    Would someone be interested in creating one?
     
    Thanks for the help.
  4. Like
    jonteamere got a reaction from Jonathan in Apple Music workflow with Love   
    You, Sir, are the man. I'll give this a try. Thank you
  5. Like
    jonteamere reacted to deanishe in Workflow to reformat paragraph or combine lines of text   
    Easy peasy:
    from __future__ import print_function import re import sys # Replace any combination of \n and/or \r with a single space print(re.sub(r'[\r\n]+', ' ', sys.argv[1]), end='')  
     
    from __future__ import print_function import sys # Split text into lines and strip any whitespace at line ends lines = [l.strip() for l in sys.argv[1].strip().splitlines()] # Collect lines into paragraphs paras = [] buf = [] for l in lines: if not l: # empty line, i.e. new paragraph s = ' '.join(buf).strip() if s: paras.append(s) buf = [] else: buf.append(l) # Add last paragraph if there is one s = ' '.join(buf).strip() if s: paras.append(s) print('\n\n'.join(paras), end='')  
  6. Like
    jonteamere reacted to deanishe in Workflow to reformat paragraph or combine lines of text   
    Run Script, Language = /usr/bin/python with input as argv
     
    Script:
    from __future__ import print_function import re import sys print(re.sub(r'\n+', ' ', sys.argv[1]), end='') That will replace one or more consecutive newlines with a space.
     
    Connect to whichever inputs/outputs you need.
  7. Like
    jonteamere reacted to FroZen_X in Alfred to Ulysses workflow   
    Create a new Workflow->Add a input like a keyword->Add the output "Open URL" and there you just insert the x-call
    Here is an example: https://www.dropbox.com/s/ffjjf5lno0bipw9/Test%20workflow.alfredworkflow?dl=0
×
×
  • Create New...