Jump to content

Jono

Member
  • Posts

    178
  • Joined

  • Last visited

  • Days Won

    2

Reputation Activity

  1. Like
    Jono got a reaction from bigbadrabbit in Add reminders & tasks to Reminders.app   
    There are already a few Alfred workflows out there for adding reminders and tasks to Reminders.app. Mine is about quickly adding tasks to different lists by typing the first letter of the name of the list, then the task or reminder.   Usage  
    Here’s some examples:       Typing ‘w finish the report' would add that task to the list named Work. Typing ‘r pick up dry cleaning sat at 6:30pm' would add that task to the list named Reminders with an alert set for 6:30pm on Saturday. Typing ‘g milk' would add that item to the Groceries list.   Because of my OCD the workflow will automatically capitalise the first letter of the task The workflow uses the best parsing engine, Fantastical's, so you’ll need to have that app to be able to use this workflow.   To show all of your lists type +r in Alfred       The workflow shows Notification Centre messages when items are added       Holding down the Option key when hitting Return it will open up the item in Fantastical. Otherwise hitting Return (without Option) will add the task without showing Fantastical.   Download: Add Reminders Alfred workflow   Setup The workflow comes with some pre-named lists:   Reminders Home Work Study Groceries   In the workflow editor delete ones you don’t want or duplicate them to create more. To rename the lists to match yours open the script part of the workflow ‘Run NSAppleScript’ on the right hand side and change the name and list colour (for Notification Centre) at the top between the double lines. To change the colour of a list icon shown in Alfred open the keyword part of the workflow (left hand side) and drag the icon from the ‘Alfred - Reminders List Icons’ folder into the image well.   The workflow uses MountainNotifier for the Notification Centre messages. Once downloaded place it in /usr/bin/   To do this, in Finder’s menu bar select Go > Go to Folder… (or hit Command-Shift-G) and paste in: /usr/bin/   Then place the ‘Automation’ folder (inside the ‘Notification Centre’ folder) in your ~/Documents folder.   (Ignore this if you don’t want to see Notification Centre messages.)     The idea for the Reminders list icons was blatantly pinched from LaunchBar 6        
  2. Like
    Jono reacted to sagishrieber in Export Sketch.app documents   
    This sounds amazing! I'll definately give it a try! Thanks Jono
  3. Like
    Jono got a reaction from paulw in Search DuckDuckGo Next With Google Suggest Completions   
    I prefer that, thanks again
  4. Like
    Jono reacted to paulw 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();
  5. Like
    Jono reacted to paulw 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();
  6. Like
    Jono reacted to moom in Scrennshot of web pages   
    Hello everybody, I create workflow to Scrennshot of web pages.
    This workflow use webkit2png from Paul Hammond. Webkit2png
    is a command line tool that creates screenshots 
    of webpages.
     
    Your screenshots you can find in your desktop.
     
    We have two choice: 
     
    1: Write address (without http://)
    2: Grab URL address from your Cipboard
     
    Download: from here
     

  7. Like
    Jono reacted to poritsky in Search DuckDuckGo Next With Google Suggest Completions   
    Just wanted to bubble up a new post to let you know I just updated my DuckDuckGo workflow from over a year ago to support the new (and lovely) DuckDuckGo Next. This is still a mod of David Ferguson's awesome Google Suggest Workflow. The only difference is that it uses DuckDuckGo Next to do the actual search. More details over on the candler blog.
     
    Download Google Auto Complete to DDG Next.zip
     
    DuckDuckGo Next actually has autocompletions, but I wouldn't know how to get those into the Alfred workflow yet. For now the autocompletions still go through Google Suggest.   Here's a vintage screenshot:
        Enjoy and happy searching!
  8. Like
    Jono got a reaction from deanishe in AppScripts — List, search and run AppleScripts for the active application   
    Excellent workflow, thanks!
     
    Here's my version of the AppleScripts folder, if you want to use that one http://d.pr/f/DTXn
     
    (And I'm one of those that prefer Keyboard Maestro over FastScripts )
       
  9. Like
    Jono reacted to deanishe in AppScripts — List, search and run AppleScripts for the active application   
    2015-09-17: Major update to version 2

    Alfred AppScripts Workflow

    List, search and run/open AppleScripts for the active application.



    Download

    The workflow can be downloaded from GitHub or Packal.

    The source code is also available on GitHub.

    Usage
    .as [<query>] — Show/search list of AppleScripts for the active application ↩ — Run the selected script. ⌘+↩ — Open the selected script in Script Editor. ⌥+↩ — Reveal the selected script in Finder. appscripts [<query>] — Show workflow configuration. Help – Open this file in your browser. (No) Update Available — Whether or not the workflow can be updated. Action the item to update or force an update check. Search Directories Recursively – Whether the script directories should be searched recursively. Use with some caution. Edit Script Directories — Open the configuration file in your default editor. The file contains a detailed description of how it works. Reset to Defaults — Delete configuration and cache files. Where are these scripts?

    The workflow comes with a default set of directories. These are defined in a settings file that you can edit yourself. Use the Edit Script Directories option in the configuration (keyword appscripts) to open the file in your editor.

    These are the default directories. {app_name} will be replaced with the name of the currently active application, e.g. BBEdit or OmniFocus, and {bundle_id} with the application's bundle ID, e.g. com.barebones.bbedit or com.omnigroup.OmniFocus2:
    ~/Library/Scripts/Applications/{app_name} ~/Library/Scripts/Applications/{bundle_id} ~/Library/Application Scripts/{app_name} ~/Library/Application Scripts/{bundle_id} ~/Library/Application Support/{app_name}/Scripts ~/Library/Application Support/{bundle_id}/Scripts ~/Library/Containers/{bundle_id}/Data/Library/Application Support/{app_name}/Scripts Any .scpt, .applescript or *.scptd (script bundle) files found within the above directories will be shown.

    If you add a directory path that doesn't contain {app_name} or {bundle_id}, it will match every application and the scripts will always be shown. See the settings file (AppScript Directories.txt) for more information.

    Licence, thanks

    The workflow code and the bundled Alfred-Workflow and docopt libraries are all licensed under the MIT Licence.

    The workflow icon was kindly donated by @Jono.
  10. Like
    Jono 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
  11. Like
    Jono reacted to paulelms in speedtest.net workflow   
    Measure internet speed with speedtest.net service
     
    Usage:
    speedserv 10 – show 10 nearest servers, press enter to test speed speedtest – test speed with nearest server speedtest 232 – test speed with server id 232 Results displayed in notification.
    Server list is cached and periodically updated automatically.
    Speedtest-cli included.
     
    Download on packal
    direct link
     


    Update log
    24.03.2014 – fixed bug with cache 25.03.2014 – changed cache from 5 days to 10 min
  12. Like
    Jono reacted to listboss in (another?) Workflow for Pinboard   
    Greatly improved workflow re-written in Rust.
    Check out the github page for installation and new features such as
    popular tag suggestion link preview deletion... Automatic workflow updates  
    Install it from:
    Github: https://github.com/spamwax/alfred-pinboard-rs/releases/latest  
    Old Changelog (not maintained here anymore)
     
    https://github.com/spamwax/alfred-pinboard-rs
    Update (2019-06-21)  0.15.5
    Add option to either show TAGs or URLs in search results. Fix multiple issues related to release of Alfred 4 pcheck should now force a network call regardless of when last update check was done. Add a combo modifier for search result to copy URL to clipboard. Fix: deleting a bookmark was not working. Full CHANGELOG  
    Update (2018-06-04)  0.14.0
    Add support for automatic update of workflow Fix a caching bug  
    Update (12/08/2017): v0.5.0
    Add support for dev version of Safari & Firefox (thanks to https://github.com/grusch-it) Add support to set toread flag of bookmarks. Just add toread to description/note (after semi-colon) p tag1 tag2 ; note toread Update (01/28/15):
    Another attempt at fixing openning browsers (thanks to https://github.com/grusch-it) Removed unecessary browser settings from workflow. Update (01/26/15):
    Fix the broken option settings due to an incomplete pull request merge Fix not getting title of the Firefox tab Update (11/25/14):
    Add support to automatically pick the most front browser (Chrome, Safari, Firefox, Chromium) Show the 'New Tag' item at the bottom of tag suggestion list Update (08/10/14):
    Add (kind of hacky) support for Firefox Update (07/12/14):
    Add support for Chromium browser Add options to perform search on tags only Add support for private/public bookmarks Add support for auto-updating the bookmarks cache after posting a new bookmark. Download link: http://goo.gl/55917Z   Update (01/29/14):
    Bug Fix: searching should be case sensitive now. Update (12/15/13):
    Added (fuzzy) search capability. User friendlier approach to specifying workflow's settings. I am planning to add more features such as Delicious API support.
     
    For details and features please visit https://bitbucket.org/listboss/go-pinboard/wiki/Home
     
    I mainly wrote this so I can learn/practice Go (golang). It uses an Alfred workflow helper that's also written in Go.
    The helper is similar to what Dave has for php: https://bitbucket.org/listboss/go-alfred
     
    Some screenshots:

     

     

     

     
  13. Like
    Jono reacted to jmjeong in Yet another alfred-pinboard workflow (obsolete)   
    Yet another alfred2-pinboard workflow. It provides INSTANT pinboard search and various functionality.
    Github : https://github.com/jmjeong/alfred-extension/tree/master/pinboard Workflow Download : https://raw.github.com/jmjeong/alfred-extension/master/pinboard/pinboard.alfredworkflow  
    Updated:
     
    - v1.2 : Remove the dependency of cron job 
    - v1.1 : add [send to Pocket]
     
     
    ::: Version 2.0 is released. <2014-05-27 Tue>
  14. Like
    Jono reacted to pazou in Create a folder with a specific name   
    Hello Jono
    awesome, it's exactly what I need, thanks a lot
     
    Anyway, we have some mutual friends : Laurent B and Elle 
     
    Once again, thanks for your help 
  15. Like
    Jono got a reaction from thec13 in Search for and run AppleScripts & Automator workflows   
    I made this for myself (with the help of deanishe) but wondered if anyone else would find it useful?
     
    It's a search filter for AppleScripts and Automator workflows that will run them when you hit Return.
    In Alfred's preferences I choose to open AppleScripts rather than running them, so created this for when I want to run scripts and workflows instead.
     

     
     

     
     
     
    There's also an action to run scripts or workflows if you haven't used the search filter (i.e. in general file searches).
     
    Download: http://d.pr/ePo7
     
         
  16. Like
    Jono reacted to Andrew in File filter workflow for folders doesn't 'learn' using a hotkey [Fixed 2.2 b239]   
    This should now be sorted in the 2.2 b239 pre-release
  17. Like
    Jono reacted to Andrew in File filter workflow for folders doesn't 'learn' using a hotkey [Fixed 2.2 b239]   
    It also looks like there is an issue where Alfred's knowledge isn't being used on these hotkey based filters, so I'll get that fixed in 2.2 too
  18. Like
    Jono reacted to dertkw in Trakt.tv for Alfred (updated to 1.4)   
    Just added watchlists. It's possible to both add and remove shows and movies to your watchlist.
    Furthermore you can list your show or movie watchlist as well.
     
    Kind regards
    Tim
  19. Like
    Jono reacted to dertkw in Trakt.tv for Alfred (updated to 1.4)   
    Hi there,
     
    I created a trakt.tv workflow for Alfred. 
     
     

     

     

     

     
    A full list of features and a few more screenshots can be found here.
     
    The workflow can be downloaded directly: https://dl.dropboxusercontent.com/u/2188000/traktforalfred/Trakt%20for%20Alfred.alfredworkflow
    GitHub repository is here: https://github.com/timbooo/traktforalfred
     
    Note: You will need a trakt.tv account for this workflow to function completely.
     
     
    Have fun 
    Tim
     
     
    Changes
     
    Version 1.4
    added support for episode summaries added support for libraries (watched/collectes shows and movies) added support for library/seen/watchlist options for movies, episodes and shows added count for all kinds of searchs/watchlists/libraries general improvements Version 1.3
    added support for displaying watchlists (shows and movies) and adding/removing shows or movies on their summary Version 1.2
    added support for movies (trends/search/summary/cast) Version 1.1
    epguide is now sorted -> latest to oldest ​changed display of episodes from S01E01 to 1x01 special episodes are now counted as well many bugfixes regarding non existing stuff and calculation of the latest episode Version 1.0
    Initial version
  20. Like
    Jono reacted to deanishe in Help passing (another) query to AppleScript   
    Asking for Finder's selection will return an "application file" object, "folder" object or "document file" object (or a combination), depending on what's selected.   Alfred gives your script a "text" object (i.e. the POSIX path to the selected app).   You have to turn that "text" object into an "application file" object to grab its id.     Using NSAppleScript: on alfred_script(q) set theFile to POSIX file q tell application "Finder" set theApp to application file theFile set theId to id of theApp display dialog "ID of application " & theApp & " : " & theId end tell end alfred_script Having to change object classes all the time is one of the things I dislike most about AppleScript, and there are a lot of things I dislike about it …
     
    It's a good habit to log the objects you're working with so you know what kind of objects they are. In AppleScript Editor, just do log theObject, and it will show up in the Events/Replies pane at the bottom.
  21. Like
    Jono reacted to deanishe in Help passing the selected file to an AppleScript   
    You don't use on alfred_script(q) with /usr/bin/osascript, but "{query}", as with other script types.
     
    This works (with caveats—see below):
    property automatorExtension : "workflow" property applescriptExtension : "scpt" set filePath to "{query}" set theFile to POSIX file filePath as alias tell application "Finder" -- If the file is an Automator workflow if (the name extension of theFile is in the automatorExtension) then set workflowPath to theFile as text set quotedWorkflowPath to quoted form of (POSIX path of workflowPath) set command to "/usr/bin/automator " & quotedWorkflowPath set output to do shell script command else -- If the file is an AppleScript if (the name extension of theFile is in the applescriptExtension) then set theScript to theFile as alias try run script (theScript) on error _error display dialog _error end try else -- If not an Automation workflow or an AppleScript display dialog ¬ ¬ "The selected file is not an Automation workflow or an AppleScript" buttons ¬ {"Cancel", "OK"} cancel button "Cancel" default button "OK" giving up after 5 end if end if end tell But you have to set the escaping properly (yours was wrong):
     

     
    Finally, it's worth noting that not all AppleScripts end with .scpt. I save mine in plain text format, so they have the extension .applescript.
     
    Also, you don't need that section at the end showing an error if the file isn't an Automator workflow or an AppleScript: the file filter ensures that only files of that type get passed to the action.
  22. Like
    Jono reacted to Vero in Show Safari bookmarks but not history in default results?   
    Hi Jono,
     
    Alfred doesn't include History when the "Bookmarks" checkbox is checked in Default Results, so it could be appearing for one of two reasons:
    1. Check you haven't manually added it under the "Advanced" button in the Default Results prefs
    2. You may be seeing your URL history, which you can switch on/off in the preferences under Web Search > URLs/History
     
    Let me know if those are the results you were seeing
     
    Cheers,
    Vero
  23. Like
    Jono reacted to Tyler Eich in Place calculator result (from below) back into Alfred's search?   
    Type an '=' after your formula. For example, '8+89=' will put '97' into the search box.
  24. Like
    Jono reacted to jordic in Add and remove alfred:ignore from comments   
    Thanks for the suggestions Florian. I've reworked the workflow. It now handles existing comments and leaves them intact. I'm not keeping a list of ignored files. I use mdfind to dynamically construct the list. I've change the keyword to a default keyword ignore not to confuse people.
     
     
    Download: http://cl.ly/032U2J2l2f0z
  25. Like
    Jono reacted to kmarchand in iCloudTabs   
    Loads iCloud tabs from all connected devices and lists them as links.  Current device is excluded.
     
    It works by copying the ~/Library/SyncedPreferences/com.apple.Safari.plist file to a temp location, converting to XML then parsing the result.
     
    https://github.com/kmarchand/iCloudTabsAlfredWorkflow    
×
×
  • Create New...