Jump to content


Popular Content

Showing content with the highest reputation since 12/08/2019 in all areas

  1. 2 points

    Alfred 1Password Search

    Another Workflow to search 1Password items and open in 1Password. Download on Git
  2. 2 points

    selection in macos + keyword

    It's pretty straightforward, actually. The only time Alfred might pass your script multiple arguments (via ARGV) is from a File Filter or a Hotkey with Argument = "Selection in macOS". At all other times, arg and variables are always single strings. If you try to use any other datatype, Alfred will convert it to a string, e.g. if you set arg in your JSON to an array, Alfred will convert it to a tab-delimited string before it reaches the next action. If you want to pass around anything that isn't a string, you can either first convert it to a string (e.g. using JSON) and then back again in the next action, or save it to a file.
  3. 1 point
    Yep, you can drag the notes url text out of the notes app or another text field, into the finder, and it will create a .inetloc file. If you double click that, the URL handler should do its job!
  4. 1 point

    Alfred 1Password Search

    I think yes πŸ€” 1. build in search for bookmarks (url) only. 2. build in opens url in browser, this WF opens in 1Password but maybe I am missing something and it is possible there is no difference...let me know !
  5. 1 point

    Apple Reminders

    Adds reminders to Apples Reminders Inbox Syntax: rm <Title>;<due day>;<time> Following options: due day and time are empty: due day will be set to today with 3 hours from now time is empty: Reminder will be set to date provided at given time accepted date format: <day>.<months> or <day>.<months>.<year> or tomorrow, next week or <weekday> weekday e.g. "Wednesday": Reminder will be set to the next weekday accepted time format: <hours> or <hours>:<minutes> rmhelp opens quick help in Large Type http://www.packal.org/workflow/apple-reminders
  6. 1 point

    Safari Assistant

    The workflow isn't capable of doing that. It only knows how to activate tabs based on window and tab numbers, not titles or URLs. You should be able to write a script to do what you want based on the scripts the workflow uses to get tab info and activate them.
  7. 1 point

    Rate iTunes Track

    I have really enjoyed this workflow and was disappointed when it stopped working with OS X Catalina. Fortunately, the fix turned out to be really simple... Just replace all instances of tell application "iTunes" with tell application "Music" Hope this helps. Randy
  8. 1 point
    When you make a custom web search, you have to adapt it to the specific URL format used by the site you're targeting.
  9. 1 point
    Well, it's basically the same question you asked last time. $url = 'https://www.google.es/search?q=' . urlencode(trim($arg)) . '+match'; or $url = 'https://www.google.es/search?q=' . urlencode(trim($arg . ' match'));
  10. 1 point

    selection in macos + keyword

    @Jasondm007 honestly I don't have many tricks for trying to get some outputs to the debugger and carefully looking at the information there. Sometimes I look at what is happening before, sometimes after a node, trying to output a variable and analyzing it to see if it's right, adding tests inside the script to try to pinpoint where the problem occurs (see if a loop is looping correctly, if a variable is set correctly...)... In this case, you could see that from the "imc" Keyword node a string was output with paths separated by tab, but on the "Image..." File Action node you could see that the paths are separated by "comma" in the debugger (if you connect the Debug node just after the File Action). This way you have a little cue that the outputs are different. Then you can inspect the "item 1 of argv" and see if they match and if not try to find out why they are different. With that said, keep in mind that from an Alfred node that output a list of items you would get a List, but when chaining multiple nodes (different Run Scripts or other actions) one output is passed to the next node as one string. So, in order to get multiple items we have to build this string we can manipulate it in the next node to retrieve the different items (that's why I'm passing the paths with tabs as separators as a trick to pass multiple items so we can easily split them afterward in the next node). You can use any delimiter that you want of passing JSON string or something else (like we talked on this thread: To get back to your workflow above, actually you don't have to pass the output of your AppleScript from your "imc" keyword node and depending on what you want to achieve it could be easier to directly loop over the selection list that you get from the Finder instead of modifying the list to a single string with tab delimiter (especially if you want to connect it to another AppleScript). Here is a modified workflow to show you how it looks if you use the selection directly: https://d.pr/f/pvtilq Also, I don't remember exactly why I added the Trim function to make sure to trim the files path (maybe to make sure one of the paths doesn't have an extra whitespace in it in case we output as one string), but if you use the passed list from Alfred file action or the Finder selection, then you shouldn't have to trim the paths. Hope this helps a bit! Best
  11. 1 point
    I never needed this until now, but I'm thrilled to see there's a working Alfred-based solution
  12. 1 point

    selection in macos + keyword

    @Jasondm007, you problem is that when you are directly connecting to the File Action you are receiving a list of files in "argv", but on the second example ("imc") you are sending a tab delimited list of file paths that consist as a single string as input. Therefore, on your first example you can iterate over the list input of you script and not just the first argument ("argv 1"). Here is a modified version: https://d.pr/f/0BOBGT I added a delay to better make sure the item has time to be copied (I didn't have all the items on my clipboard viewer if not), but you can play with it to make it work for your case.
  13. 1 point
    you probably have the notification style as Alert, in OS X notifications preferences for Spotify Mini Player app, see Link
  14. 1 point
    @MVR London Did you type "reload" into Alfred? This will refresh the app cache for any apps that may no longer exist in the old location. Cheers, Vero
  15. 1 point


    This creates a new reminder in Reminders.app Download the latest version, for Alfred v3+ and macOS 10.12+ For older versions, go here. Usage To use, just type r <some text> into Alfred. For example, r check out some of Alfred's other workflows will create a new reminder called "check out some of Alfred's other workflows". You can also include times and dates in the text and have Alfred set a reminder for that particular time. r this will capture the current application and turn it into a reminder. r help will show some built-in examples. Dates To be reminded at a specific date/time, simply type a date into the command, for example: r today release the hamsters into the wild r tomorrow bring about financial ruin upon my enemies r in 5 minutes drop everything r in 2 hours laugh out loud r on 24/12/13 forget everything I know about things in movies r on 12 June 15 come up with some interesting ideas r on 31-12-99 23:22 panic about the millennium bug r at 2pm wait for nothing in particular r next thursday at 15.30 ask some difficult questions Priority To set the priority of the reminder, either use exclamation marks right at the start or end of the command (! for low priority, !! for medium priority, !!! for high priority), or type the priority right at the end of the command (these can also be abbreviated, for example mp or p lo). For example: r !!! in 2 weeks an important meeting r thursday have a banana medium priority r decide what to have for lunch !lo r make a turkey sandwich p3 Lists To choose a list to use on a per-reminder basis, type in <list name> list right at the end of the command, for example r Get Santa outfit !2 in Christmas list. If a matching list can't be found, you won't be able to action the command. In all other cases, the default Reminders list will be used (typically the first one). If you prefer, you can edit the defaultList variable within the workflow's Arg and Vars node (note that you'll have to edit this each time you upgrade the workflow however). Apps Get reminded about the app you're using, for example the selected file in Finder, or the current tab in Chrome or Safari. To create a reminder about the active app, simply type r this. Or keep typing to set a date, priority or a custom title, for example r this drop some sick beats on Friday !!!. The following apps are currently supported: Adobe Acrobat (Pro/DX) Chromium Contacts Finder FoldingText Google Chrome Google Chrome Canary Mail Mailplane 3 Microsoft PowerPoint Microsoft Word Safari TextEdit TextMate Vienna WebKit Apps can be added on request. Just raise an issue with the app you use. As long as it's freely available and has AppleScript support, it can be added. Getting help r help will display the above examples All sorts of combinations are possible! Configuration If you want to change the default reminder list, edit the variables component at the top of the workflow, otherwise it will just use the first one (unless you use "in Y list" at the end). External Trigger To call the workflow as an external trigger, use applescript such as tell application "Alfred 3" to run trigger "remind" in workflow "com.surrealroad.alfred-reminder" with argument "something tomorrow at 5pm" Changelog v74 (Thursday, 3 August 2017) – Fixed an issue where impartial queries did not get parsed (thanks Nibblesh!) v73 (Friday, 21 July 2017) - Added support for Mailplane 3 (thanks devguydavid!), ensure dates are always in the future (thanks saeedmahani!), added external trigger v72 (Monday, 6 March 2017) – Quit reminders if needed when complete v71 (Saturday, 4 March 2017) – Added built-in help v70 (Friday, 3 March 2017) – Added OneUpdater v69 (Tuesday, 3 January 2017) – Added support for different lists v68 (Friday, 9 December 2016) – Added remaining app handlers, escaped paths v67 (Thursday, 8 December 2016) – Added support for app-secific reminders v66 (Thursday, 8 December 2016) - Added support for priorities v65 (Thursday, 8 December 2016) – Fixed reminders app hanging temporarily after creating a new reminder v64 (Wednesday, 7 December 2016) – Rewritten from the ground up in JavaScript for Automation. Now requires Alfred v3+, MacOS Sierra+. NEW: Enhanced date/time natural language parsing. Never worry about the correct syntax again! NEW: Better messaging about what will happen when actioning the item. FIXED: (Hopefully) improved performance. Note: there are still several features that have not been carried across to this version. As such, this should be considered a beta version. Monday, 24 October 2016 – Add support for Microsoft Word, Adobe Acrobat Pro, OneNote, Powerpoint (Thanks to catgsmith!) Friday, 3 June 2016 – Compatbility for users who did not previously have Alfred v2 installed Wednesday, 28 October 2015 - attempted fix for reminders not quitting on OS <10.9 Tuesday, 27 October 2015 - fix for reminders not closing after adding a new reminder Thursday, 15 October 2015 – compatibility for OS 10.11 El Capitan (and hopefully future releases) Wednesday, 21 January 2015 – added pattern β€œr in {x} days at {time} to {something}” Thursday, 30 October 2014 – days can now be abbreviated to 3 or more characters (e.g. β€œtod”, β€œtomo”, β€œthurs”, etc.), minutes can be abbreviated to β€œmin” or β€œmins”, hours can be abbreviated to β€œhr”; the priority of the reminder can now be specified by β€œ !” at the end of the query, β€œ !1”,β€œ !2”,β€œ !3” each with increasing priorities Wednesday, 22 October 2014 – fixed cache process errors on OS 10.10, workaround for apple bug #18734006 on OS 10.10 Tuesday, 21 October 2014 – addressed some internal errors (which should also improve performance a little), notifications should now be working on OS 10.10, fixed Mail integration on OS 10.10, Mail integration now takes the most recent message if multiple messages (or a conversation) are selected Saturday, 26 July 2014 – Disable showing reminders in OS 10.10 (Yosemite) Thursday, 9 January 2014 – Fixed Finder links in OS 10.9 Saturday, 23 November 2013 – Disable display of existing reminders under OS 10.9 Friday, 22 November 2013 – Workflow will now display a message if the command is not valid Saturday, 2 November 2013 – Fixed an issue that would cause the workflow to crash the first few times it was run; fixed an issue that would prevent update checking to work correctly Friday, 1 November 2013 – Fixed an issue where caching reminders would cause update checking to fail Wednesday, 23 October 2013 – Increased timeout on OS 10.9, and allowed reminders to be retrieved from the cache while it's running; times specified without am/pm are now assumed to be in 24hour format; corrected an issue where 12 o'clock times were calculated incorrectly; you can now use "noon" and "midnight" to specify time Tuesday, 22 October 2013 – Prevent cache processes overlapping; recreate damaged cache file if needed; workaround for OS 10.9 GM2 plist bug Wednesday, 9 October 2013 – Added support for Google Chrome Canary; added plain text formats of applescripts; fix for cache process failing for new users Monday, 7 October 2013 – Added profiling to rtest; "r" with no arguments is now the same as "r all" Friday, 4 October 2013 – Compatbility with OS 10.9 Mavericks GM Wednesday, 18 September 2013 – Fix for non-gregorian date format Tuesday, 17 September 2013 – Updated q_workflow module to latest version Wednesday, 10 July 2013 - Added support for OmniFocus 2, TextMate 2 and FoldingText Thursday, 18 April 2013 – Fixed recognition of 10/11/12am/pm times Tuesday, 16 April 2013 -- Added support for WebKit Nightly. Monday, 15 April 2013 – Added "r in x days y hours", "r in x hours y minutes", "r today/tomorrow/weekday at time to x" patterns Thursday, 11 April 2013 – Added support for OmniFocus, Vienna, reminder from address book now adds a link to the contact Wednesday, 10 April 2013 – Fix for -609 error (thanks, stevef!) Tuesday, 9 April 2013 – Added "r refresh" keyword to refresh list ("r all" will no longer refresh the list); added "rshow", which will only show options for existing reminders, "radd", which will only show options for adding new reminders; added "rtest" which runs a set of tests to check for potential problems; fixed an issue that would cause workflow to crash (thanks, erist!) Monday, 8 April 2013 – Better compatibility for editing library scripts on other systems; it's now possible to delete reminders by holding down control; fixed a rare issue where the workflow might incorrectly report a new version is available; iconography tweak; added "overdue" keyword; added support for TextMate and TextEdit; allow "r in 1 minute/hour/day" Sunday, 7 April 2013 – Don't mark reminder as complete with option held down; properly escape illegal characters in query; added support for Finder and Chromium Saturday, 6 April 2013 – Added "r this" which captures data from the current application and turns it into a reminder; support for Google Chrome, Safari, and Mail; fixed a regression; support for contacts/address book; added icons from the icon factory; "r all" now refreshes the cache Friday, 5 April 2013 – Show "r all" in help; don't close reminders if its been moved to the foreground; all keywords can now be used to filter displayed reminders; changed the cache duration to 2 hours; subtitle for existing reminders shows more information where possible Thursday, 4 April 2013 – Performance improvements; hold option to view the selected reminder in Reminders.app Wednesday, 3 April 2013 – Fix for "in list" pattern breaking up text; added "r help" examples; don't prompt to create reminder with "all" keyword; checks for newer versions of the workflow Tuesday, 2 April 2013 – If reminders.app is closed, it will stay closed when using this workflow Sunday, 31 March 2013 – Added pattern "r Wednesday something" Wednesday, 27 March 2013 – Renamed workflow to "Reminders"; Use application id instead of name, Alfred now shows existing reminders in his list (selecting one will mark it as complete); keyword is now optional Tuesday, 26 March 2013 – Now sets specified date as the reminder date, rather than due date; added pattern "r something in Y list" Wednesday, 20 March 2013 – You can now use the pattern "r at 1.30 to something"; Alfred will tell you what's going to happen before you press enter; split off code to library file Tuesday, 19 March 2013 – You can now use the pattern "r in X minutes/hours/days something" Sunday, 17 March 2013 – You can now specify a date for the reminder. See the examples above. Acknowledgements Date parsing is done via chrono.js Uses icons from the Flurry collection by David Lanham / The Icon Factory Updates via OneUpdater Disclaimer This workflow is provided as-is, use it at your own risk. I can't take any responsibility for anything bad that happens as a result of using it, including, but not limited to, loss of data, loss of sanity, spontaneous human combustion. Feedback By far the best way to give me feedback is to submit an issue on GitHub. Alternatively, just reply to this post.
  16. 1 point

    The State of Alfred Remote app

    Alfred Remote will be receiving a big "Version 2" update, I'm already planning the feature set and improvements. It's also worth noting that we've been adding features to Alfred Remote through added objects within Alfred itself, so while Alfred Remote hasn't had a core update, it has had new abilities added over the past few years. Cheers, Andrew
  • Create New...