Jump to content

Benzi

Member
  • Posts

    146
  • Joined

  • Last visited

  • Days Won

    25

Everything posted by Benzi

  1. I did try that, but some of them are so long that it won't fit in with Alfred properly enough to read the whole thing.
  2. Here is a workflow for bulk renaming files. You select some files either in Alfred using the File Navigator or the File Buffer and use the File Action called "Rename with BulkRename", or select the files in Finder and use the hotkey to trigger the workflow for the selected files. Once triggered, Alfred will display a preview option and a bunch of preset actions that you can select. The preview option will display the modifications that will be made for each preset action listed. Preview Here are a couple of snapshot portions of what you see when pressing the Shift key: Issues are highlighted so that you know if running a preset will work or not. Even if you run that preset, nothing will happen. Preset Actions There are 6 actions included as a sample, but you can easily create your own actions using the .list keyword. To create a new preset, type in .list <new name>. Delete a preset using Cmd+Enter Each preset is nothing but a collection of simple steps that help make the preset action possible. For e.g. when you select the Append Sequence Number preset, you will be shown the preset editor: What the above tell is that the Append Sequence Number preset is a collection of two steps: add text '_seq' at end add number from 0, at end There are added to the preset using any of the steps [+] listed. You can add any number of steps to a preset, even the same ones over and over. You can delete an added step using Cmd+Enter When you add a new step to a preset, or edit an existing step by selecting it, you will be shown the Step Node Editor as above. The above is the example for the "Number Sequence" step, and for this step you can control what the starting number is, where the number should be added, and the format (leading zeros to be added). Items with a arrow -> are variables that you can change by pressing the Tab key. To add the step, just select the first option, and that step will be added to the Preset that you were viewing before. Steps Steps are the building blocks of each preset, and currently BulkRename has the following: Find and replace: find text and replace with another, supports regex and plaintext, case sensitive and insensitive Add text: add some text at the beginning or end of the filename Add timestamp: add a timestamp at the beginning or end of the filename. Timestamp is one of current time, file created or modified time. YYYY,YY,MM,DD,hh,mm,ss can appear in the format string Convert case: switch the case of the filename to lower, upper, or title Strip text: remove x characters from the filename either at the start of end Number sequence: append a running number sequence, starting from a value that you can specify MP3 Tagger (beta): Extract MP3 tags from MP3 files Regex group extractor: Regex group pattern extractor Change Extension: Allows you to change the extension of a file Keywords The main keyword is .rename (but you would not have to type that in if you use the File Action or the Hotkey) The second one to manage all your presets is .list. .preset and .node are keywords used by the workflow directly, and there is usually no need for you to type those in directly. Download Download from here Notes This works with Python 2.7.2 last I checked Have a look at the included sample presets using the .list keyword to get a hang of how presets are made, and then create your custom ones
  3. Great update to the workflow! Loving it
  4. There's a bit of background info here as well (its got to do with what BASH profile Alfred loads when running terminal commands, which eventually has an effect on which python interpreter get loaded) If you are getting syntax errors, you could try the options listed in the post linked.
  5. Status board looks cool. I think I can get a CSV export functionality in place easily, and will include it in the next version.
  6. Ah yes... for now, to search with single quotes, use \'. e.g. w en world\'s largest
  7. Hmm... no worries - I'll add some debug code to the workflow so that we can find out why this is failing for you. Will share an updated version soon.
  8. Never heard about rome2rio before, but looked up at their API and it was quite straightforward and so came up with this, maybe something you can look into as well for ideas.
  9. Usage Type rr <start> to <destination> in Alfred to find route options. Get Autocomplete suggestions as you type. The search results are displayed one route at a time. Hit Tab key to cycle through all available routes. The first item is the route description, and you can select that option to view full details on the rome2rio web site, or press the Shift key for a preview The items that follow make up the various stops and segments of the trip - press Shift to get a map displayed highlighting the start and end points of each sgement. To reset your search, hit Cmd + Enter on a route description. Or just type rr <start> to <destination> again to begin a new search Download Download from here Notes Powered by rome2rio.com API v1.2 Requires Python 2.x and an active Internet connection If you want to disable autocomplete, open the workflow's script filter node, and change the command to --query from --query-autocomplete (more notes inside the script filter)
  10. I understand from what you mentioned that you have a version of python that is 3.x in your machine? Typing this in Terminal will tell you: python --version If that is the case, this workflow is most likely not Python 3.x ready. Unfortunately I don't have the newer version of Python at the moment, so I am afraid I cannot make changes just yet... I will have a look and see
  11. If you just downloaded the latest version, I had put in en search on by default. To change that, you need to do the following: Open up Alfred Preferences Locate the Wikipedia ML search workflow and select it Open up the Script Filter box (the one with the Wikipedia logo) by clicking it There will be a text area at the bottom where you need to check the following: The last line should be something like: "python w.py en {query}" - which means that the search will be against the English site. To make it use the Chinese version, you need to change that like to "python w.py {query}" (without en). Now, if you type in Alfred "w zh 中華民國" it should be against the Chinese site. Please let me know if this helps. EDIT in fact, upon re-reading my original post for the workflow, I realized the cause of the confusion. So I have updated the workflow at the download link to work by default in multilanguage search mode. So you can re-download the workflow and use as is... and no need to mess about with the internals
  12. What's new in v1.8: FormatYou can now set the default format of new todo lists using the format command. Type format to view and select a specific option. Classic YAML is the format Todo started with. Its a plain text format, but not very readable. Taskpaper format is inspired by the plain text format used by the Taskpaper app. The nice thing about this format is that the underlying todo list file is readable and editable. And if you use Taskpaper, you can work on these lists from there too. When you set the default format, all new todo lists created using the list command will use that format.
  13. Hi, thanks for that. Can you try downloading the latest version and give it a go please? (I have tested this only on Python 2.7.2)
  14. Its a bit odd that that config file is not getting created. Without the configuration file, Todo will not work I'm afraid. Would you be able to run the following command from the terminal? cd /path/to/Todo/workflow/folder python config.py -load You should run it from the folder where Alfred has installed your Todo workflow (in Alfred, ctrl+click Todo on the left hand side, select reveal in finder and that's the folder). It would help if I can see the output of that... PS. Not able to send you a direct message either....
  15. Ah... that's bad From what you describe, I am not able to figure out what the reason could be. Can you try typing in "reset" in Alfred and select the Reset Todo option? After doing a reset, try "todo" again. Can you check if a file exists in the following location/Users/<your username>/Library/Application Support/Alfred 2/Workflow Data/com.benzi.a2w.todo/config.yaml ​​It will help if you can share the contents of this file If that fails, can you let me know if you would be comfortable running commands from a Terminal? Please send me a direct message with the details via this forum and I will take it up from there.
  16. v1.7 introduces managing multiple lists using the new list keyword (thanks to a suggestion from @twinpeaks) If you want more control over your todo items apart from tagging, pinning and setting due dates for them, you can split up your todo items with lists. By default, Todo uses a list called todo, but you can create new lists using the list keyword. Typing list will display all available lists Typing list <name> will select a list titled name if it exists or allow you to create a new list At any point in time only one list will be active, and all actions performed by using thetodo,add,import,export etc keywords will be working against the currently active list. In list view, Cmd + Enter will help you to delete a list altogether.
  17. Until I get something more robust in place - here is a manual workaround approach in v1.6 I have included the option to export and import todo lists in Taskpaper-like format. So you can export your current todo list to an existing .Taskpaper file or the clipboard. You can import all items also from a .Taskpaper file. Since importing items always adds to the existing list, you should clear all items and then import the .taskpaper file. It is a slight pain though (because of the manual intervention required), but it should work. There are some limitations with the integration to Taskpaper (no support for notes, no sub projects, projects cannot have a space in between etc). PS. stumbled across this workflow called TodoFlow which has a Taskpaper-ready format for its todo files, maybe you can give that a try too - I haven't tried the workflow myself, but I did borrow some code for the import functionality. Download the latest version here or update via Alleyoop.
  18. Cool, glad you find it useful Its definitely possible, but a little bit of work... will definitely check and see whats possible though... (one way to avoid the automator scheduled task altogether is if Todo will save its todo list as a plain text file that an app like Taskpaper would understand. With that change, one can use the existing setup keyword, select the sync folder in Dropbox and tasks should be in sync via Dropbox automatically)
  19. Done. Just download the latest version from here and give it a try... Also included Alleyoop support.
  20. A bit of an experiment - if you use the awesome EggTimer v2 workflow, you can enable a simple form of integration in Todo v1.5. In Alfred, type in features and select the "Experimental - EggTimer2.... " option to enable it Select a todo item, then go to edit mode by pressing fn + Enter keys You should see an item in edit view to help you create a quick reminder as shown below: If you select the EggTimer option, it will just popup Alfred with the Alarm command from EggTimer and a time you selected, the alarm text will be the todo item's description. Press tab in edit mode to select the next half hour slot as the alarm time. Don't know how useful this is, but if you have any comments, do let me know...
  21. v1.3 now supports setting due dates for items. Check out the new documentation setup at GitHub under the Syntax Guide section.
  22. Benzi

    Sunny on my side

    Download
×
×
  • Create New...