Jump to content

paulw

Member
  • Posts

    158
  • Joined

  • Last visited

  • Days Won

    6

Reputation Activity

  1. Like
    paulw reacted to altryne in Search, Download and Install mac apps   
    Weird as hell!
    Works on my build server fine, filters and everything...
     
    I think it's a mac update issue, investigating. Thanx for notifying me
  2. Like
    paulw reacted to Benzi in BulkRename - bulk rename your files, with built-in and custom presets   
    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. Like
    paulw reacted to rice.shawn in f.lux workflow   
    Okay, I see what's happening.
     
    (1) Your timezone settings are set in your php.ini (don't worry about this). I included some code that was supposed to get past that error by getting the TZ from your system and temporarily setting it, but, apparently, it's either (1) not working in regards to the sunset/sunrise time functions or (2) I'm not calling it early enough.
     
    (2) Flux doesn't write the plist settings for values until you set them. I'll add in the error handling for those.
     
    I have a long day of grading papers, but I'll try to squeeze in some time to fix these errors in between. Otherwise, I'll fix it up tomorrow.
     
    Thanks for the log. It's just what I needed.
  4. Like
    paulw reacted to Jono in Search DuckDuckGo Next With Google Suggest Completions   
    I prefer that, thanks again
  5. Like
    paulw got a reaction from Jono in Search DuckDuckGo Next With Google Suggest Completions   
    I made an additional change in my version of the script filter on my machine: I want to be able to search for the original term as entered if I don't like the search suggestions. I would have liked to be able to use a modifier key to do that, but couldn't figure out how, since the original {query} is no longer available and has been replaced by the search suggestions.
     
    So I cut out the fallback part of the script (if there are no suggestions) and instead added a first item to the results list that matches the original search term.
    require_once('workflows.php'); $wf = new Workflows(); $orig = "{query}"; $wf->result( 'ddgignoresuggest', $orig, 'Search DuckDuckGo for '.$orig, 'Search DuckDuckGo for '.$orig.' or search suggestions below', 'icon.png' ); $json = $wf->request( "https://duckduckgo.com/ac/?q=".urlencode($orig)); $json = utf8_encode($json); $items = json_decode($json,true); $int = 1; foreach($items as $item): foreach($item as $suggestion): $wf->result( $int.'.'.time(), "$suggestion", "$suggestion", 'Search DuckDuckGo for '.$suggestion, 'icon.png' ); endforeach; endforeach; echo $wf->toxml();
  6. Like
    paulw reacted to Carlos-Sz in Recent Items 4.3 beta 2 for Alfred 4: Finder Recent Items   
    Recent Items 4.0 is out:
    Up to 2 custom categories (keyword recpref) Downloads category Keyword for each category Hotkey for each category Multiple files in Add to Favorites file action Changed Auto-path to Default Folder (keyworod df) Changed Just Now category to Now Added Help (keyword rechelp) Update to Alfred 2.3 features Several internal improvements Download
    Version 4.0 Release date: 10 May 2014 Requires Alfred 2.3 or later Download now
  7. Like
    paulw got a reaction from Jono in Search DuckDuckGo Next With Google Suggest Completions   
    Okay, I cobbled together something retrieves and parses DuckDuckGo's native search suggestions. Feel free to use it (or improve it) to update your workflow.
    require_once('workflows.php'); $wf = new Workflows(); $orig = "{query}"; $json = $wf->request( "https://duckduckgo.com/ac/?q=".urlencode($orig)); $json = utf8_encode($json); $items = json_decode($json,true); $int = 1; foreach($items as $item): foreach($item as $suggestion): $wf->result( $int.'.'.time(), "$suggestion", "$suggestion", 'Search DuckDuckGo for '.$suggestion, 'icon.png' ); endforeach; endforeach; $results = $wf->results(); if ( count( $results ) == 0 ): $wf->result( 'ddgsuggest', $orig, 'Search DuckDuckGo for '.$orig, 'No suggested matches, search DuckDuckGo for '.$orig, 'icon.png' ); endif; echo $wf->toxml();
  8. Like
    paulw reacted to Carlos-Sz in Recent Items 4.3 beta 2 for Alfred 4: Finder Recent Items   
    Recent Downloads (from User Downloads folder) and up to two custom categories are coming in the next version:
     

    I should be ready in a couple of days.
     
    Thank you all for the feedback!
  9. Like
    paulw reacted to Carlos-Sz in Edit with… 4.1 beta for Alfred 4: A QuickCursor alternative   
    I’ll make some tests ASAP. Thank you for your suggestion.
  10. Like
    paulw reacted to Carlos-Sz in Recent Items 4.3 beta 2 for Alfred 4: Finder Recent Items   
    I like the idea. I’ll add it when I update the workflow.
     

    It is not simple to add this level of customization but I’ll think about it and if I find a way I’ll let you know.
    Thank you for your feedback.
  11. Like
    paulw got a reaction from CarlosNZ in Dial with your iPhone from Alfred [updated to v1.41a]   
    Thanks for this workflow!
     
    I had some trouble with it: When I pasted my API key into the window from "dial setup", it got registered as "Button returned: OK, apikey". I had to manually edit the api_key file to remove it. Do you think something changed in recent upgrades to Alfred or Mavericks? I'm on Alfred 2.2 and OS 10.9.2
  12. Like
    paulw reacted to vitor in Ping Pong — Play a round of table tennis with Alfred   
    Usage

    Start a round of table tennis against Alfred via the ping keyword. Hit Pong! to continue playing.





    If you Miss…, the game is over and your score is shown.



    ⤓ Install on the Alfred Gallery | Source
     
  13. Like
    paulw reacted to vitor in Link Clean — Remove extraneous information from URLs   
    Usage

    Remove UTM parameters, mobile subdomains, and other clutter from URLs via the Universal Action.



    Alternatively, configure the Hotkey to clean a selected URL or use the lc keyword to declutter the last copied URL.



    Redirects are followed before cleaning and the result is pasted to the frontmost app.

    ⤓ Install on the Alfred Gallery | Source
     
  14. Like
    paulw reacted to gotz in Workflow to Open Terminal and Set Working Directory   
    As a new Powerpack user, I've been downloading several great workflows that I'm already using many times a day.  However, a workflow I couldn't find is one that opens a terminal window and sets the current working directory based the results of an Alfred query.
     
    So I created my own and I'm sharing it here in case others find it useful.
     
    What it Does:
    Opens a new terminal window and sets thw current working directory based on an Alfred query that only considers folder names.
     
    Link to Workflow:
    https://bitbucket.org/gotz/alfred/src
     
    Dependencies or System Modifications:
    None
     
    Examples:

     

  15. Like
    paulw reacted to Carlos-Sz in List Hidden Files in Alfred [Version 2.0]   
    Overview

    List hidden files in Alfred from Finder current window or from a select folder in Alfred File Browser (File Action).

    The workflow does not change Finder files visibility. It will only list those hidden files in Alfred itself.

    If there isn't any Finder window then the workflow will list hidden files from the user home folder.



    Usage

    Keyword
    Open a Finder window and go to the folder you want Show Alfred and type the keyword hidden or use the hotkey You can filter by typing part of the filename Press Return key to open the file in the default text Editor or, if it is a folder, to see its content File Action
    Open Alfred File Browser Select a folder Select List Hidden Files action You can filter by typing part of the filename Press Return key to open the file in the default text Editor Download
    Release date: 13 May 2014 Made on OSX 10.9.2 Requires Alfred 2.3 or later Download Now What's new
    List hidden folders Show hidden folders content when pressing return key Show file/folder icon Back button to return to the initial folder Requires Alfred 2.3 or later
  16. Like
    paulw got a reaction from CarlosNZ in Dial iPhone using Command-C.app   
    I started using the clipboard-sharing app Command-C and, since it has a url scheme, decided I'd like to use it and Alfred to send dial-able phone numbers to my iPhone.
     
    This version draws on CarlosNZ’s workflow for structure and adapts the ruby script format-us-phone.rb in the Alfred workflow "Funnel" by ctwise.
     
    The script does not filter out phone numbers with letters in them, because it turns out, the iPhone interprets letters in phone numbers correctly.
      Note that you'll have to edit the script at this line (near the bottom):   device = "Someone%27s%20iPhone"  
    and replace "Someone%27s%20iPhone" with the name of your device in double quotes (can be an iOS device or another Mac with Command-C running on it).
      Please feel free to improve on this workflow!   Download here.     Edits: 3/26/2014: updated to one single ruby script in the workflow, rather than calling a separate .rb file 3/25/2014: updated to avoid needing to use the clipboard
  17. Like
    paulw reacted to ctwise in Funnel (a variant of the Pipe workflow)   
    Awesome! I added it to the workflow.
  18. Like
    paulw reacted to ctwise in Funnel (a variant of the Pipe workflow)   
    You are correct. The only way in Alfred to act on selected text is through a hotkey. Otherwise the Alfred input box becomes the text source. I'll update the workflow.
  19. Like
    paulw reacted to laerador in App Install [major update: 17. March | v1.0]   
    Sorry for the late reply,
     
    any chance that that only happened with apps that came packaged as a zip? (I should read more carefully, yes that bug should be fixed in the new version)
     
    Anyway i completely rewrote the workflow this weekend, fixing several bugs along the way. Could you please try the new version and tell me, if the problem still exists?
     
    As for the search, I can see how that would make sense, need to try and find an efficient way to do that. I'll try around and see if i find an elegant solution.
  20. Like
    paulw got a reaction from Carlos-Sz in Recent Items 4.3 beta 2 for Alfred 4: Finder Recent Items   
    Awesome workflow. What about adding the Downloads folder as a default?
  21. Like
    paulw reacted to golimpio in Gauth: Google Authenticator (Time-Based Two-Factor Authentication)   
    If you are setting a 2-step verification on Google, I believe the default option will be to send the code to your phone (SMS).
    After you setup it, Google will give you another option to "Get codes via our mobile app instead". 
    On that screen, if you click on "Switch to app", you'll see a popup panel: "Set up Google Authenticator" with instructions to scan a barcode.
    Before you scan the bar code, if you want to see your "secret", click on the link: "Can't scan the barcode?" and than the secret key will be displayed.
    The google secret key will look like: "abcd efgh ijkl mnop qwer tyui uiop ab3c"
     
  22. Like
    paulw reacted to moul in Gauth: Google Authenticator (Time-Based Two-Factor Authentication)   
    I added some links in the original post for Google, Dropbox, Amazon AWS, Github, Facebook and Evernote
  23. Like
    paulw reacted to deanishe in Fuzzy Folders   
    Fuzzy search across folder subtrees.
     
    Update 10/09/2016:
    Added Alfred 3 support and removed Alfred 2 support. Added ability to self-update.  
    Update 10/04/2014:
    Added support for glob-style excludes. Unfortunately, these have to be added manually to the settings file at the moment. Update 05/04/2014:
    Now supports searching files as well as/instead of folders You can now adjust the minimum query length to improve search performance.

    This Workflow provides partial matching of path components, allowing you to drill down into your filesystem with a space-separated query. Each "word" of the query will be matched against the components of a directory or file's path, so a three-word query will only match at least three levels down from the specified root directory.

    You can use a File Action to intiate a fuzzy search on a folder or to assign a keyword to perform a fuzzy search on that folder.

    Download

    Get the Workflow from GitHub or Packal.

    Commands
    fuzzy — List your Fuzzy Folders ↩ — Edit Fuzzy Folder settings ⌘+↩ — Start a Fuzzy Folder search with the associated keyword ⌥+↩ — Delete the keyword–Fuzzy Folder combination fzyup — Recreate the Script Filters from your saved configuration (useful after an update) fzyhelp — Open the help file in your browser Settings

    You can specify these settings globally as defaults for all Fuzzy Folders or on a per-folder basis. For ad-hoc searches via the Fuzzy Search Here file action, the default settings always apply.

    Use keyword fuzzy to view and edit settings.
    Minimum query length — The last "word" of a query must be this long to trigger a search. Default is 1, but increase this number if the search is too slow. This is very often the case if you're searching a large subtree and/or also choose to search files. Search scope — Choose to search only for folders, files or both. Note: In most cases, searches including files are significantly slower. Consider increasing the minimum query length to speed up slow searches. File Actions
    Fuzzy Search Here — Fuzzy search this folder Add Fuzzy Folder — Set a keyword for this folder for faster fuzzy searching Search result actions
    ↩ — Open folder in Finder ⌘+↩ — Browse folder in Alfred Bugs, questions, feedback

    You can open an issue on GitHub, or post in this thread.

    Licensing, other stuff

    This Workflow is made available under the MIT Licence.

    The icon was made by Jono Hunt.

    It uses docopt and Alfred-Workflow.
  24. Like
    paulw reacted to deanishe in Subdirectory Search   
    Subdirectory Search

    This Workflow has been replaced with this one. Please go grab that instead: it's much better.

    Fuzzy search across the subdirectories of the specified root directory.



    Note: This Workflow requires you to configure your own Script Filters in Alfred (by default, there is one configured for ~/Documents with keyword docs). See Configuration for instructions.

    Download

    Get the Workflow from GitHub. The source code is also available on GitHub.

    What it does

    This Workflow provides partial matching of path components, allowing you to drill down into your filesystem with a space-separated query. Each "word" of the query will be matched against the components of a directory or file's path, so a three-word query will only match at least three levels down from the specified root directory.

    For example, I have a Script Filter set up to search ~/Code with keyword code:


    python search.py ~/Code "{query}" Entering code workflow into Alfred produces a list of all subdirectories somewhere under ~/Code whose names contain workflow (the search is case-insensitive):



    Entering code alfred workflow produces a list of all subdirectories somewhere under ~/Code whose names contain workflow, which are also somewhere under a directory whose name contains alfred:



    Configuration

    The Workflow is pre-configured to search ~/Documents using the keyword docs. To search other directories, you'll have to add your own Script Filter(s), adjusting the Keyword and root directory in the Script field.



    You can pass the -f or --files option to search.py to also search files.



    Note: Searching files as well as directories makes the Workflow a lot slower.

    Screenshots





    Licence

    This Workflow is released under the MIT Licence.
  25. Like
    paulw reacted to JolinM in Instapaper Text bookmarklet   
    I managed to do it with the javascript code from http://www.instapaper.com/save
     
    Here is the code I got:
    tell application "Safari" to do JavaScript "javascript:function iprl5(){var d=document,z=d.createElement('scr'+'ipt'),b=d.body,l=d.location;try{if(!b)throw(0);d.title='(Saving...) '+d.title;z.setAttribute('src',l.protocol+'//www.instapaper.com/j/4Vifm0CMV6m8?a=read-later&u='+encodeURIComponent(l.href)+'&t='+(new Date().getTime()));b.appendChild(z);}catch(e){alert('Please wait until the page has loaded.');}}iprl5();void(0)" in the current tab of the front window And here is the updated workflow.
×
×
  • Create New...