Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation since 11/15/2019 in all areas

  1. 4 points
    biati

    Calculate Anything

    Calculate Anything is a workflow for Alfred 4, that uses natural language and is able to calculate multiple things like currency, time, vat, percentage, etc. Why? There are several workflows out there but i just needed a workflow that worked naturally for example you can open alfred and type 100 + 9 and alfred will give you a result no need for keywords or hotkeys it just works, i wanted to be able to jus type 100 + 16% or 100 euros to usd or 100km to cm or 100 years to hours and a large etc. and so this workflow was created. Features - Natural language - type 100 euros to dollars or 100 euros in usd or 100€ to $ or 100eur usd or 100 euros a dolares. It does not matter, the same result will be displayed. - Currency - Up to 168 currencies - Units - 100 kilometers to meters or 100km to m or maybe 100km m - Percentages - 100 + 16% | 100 - 16% etc. - PX,Em,Rem,Pt - 12px or 12px to em or 12px pt - Time - time +15 years? now plus 15 hours? or need to convert a timestamp? - VAT - value added tax calculations, we all need this - Translations You can create your own translations to display results in your language - Keywords Extend the natural language in the queries so you can type 100 dolares a pesos and the code will see 100usd to mxn Download Download directly from Github releases page, make sure to download the latest release. Download here Base Configuration There's only one global configuration and is the language, this configuration will be used to display the messages in your own language. View the Translations secction for the available languaes. Configure it with. calculate configure and select Set base language and enter the language for example es_ES For more information about configuration click here Currency You can use natural language or type a few characters and that's all, for example: 100 usd to mxn 100$ in mxn 100€ to $ 100 euros to dollars 100 euros a dolares (you can also write it in your own language) 100eur (If no target the currency will be converted to the base currency that you configured) All this examples will simply work, you can add spaces between the value and the currency or don't. If by any chance you don't remember the currency symbol or abbreviation simply type calculate list and select "List Available Currencies" (view the gift above) Currency Options By default the workflow will use exchangerates api to make the conversion, exchangerates has only support for 32 currencies, if you need support for all the currencies that this worflow includes you need to get a FREE API Key from https://fixer.io it takes less than a minute. The following options are available for the currency. Simply launch Alfred and type calculate configure and select any of the options below. View the configuration section for more info Set base currency This will become your base currency, if you type 100eur it will automatically be converted to mxn, examples of currency (USD, EUR, MXN, CAD, etc) Set currency locale Used to give format to the converted amount using the money format of your contry Set Fixer API Set your fixer API Key for support more currencies Currency Symbols You can also use currency symbols in your query for example 100¥ to € will be converted to 100JPY to EUR, here is a list of available symbols. Please go to the repo description on Github for a full list of supported symbols it's really difficult to write them here in the forum. View Currency Symbols Units You can write your query using natural language or just a few characters, either way this workflow will give you the result you need. 100 ounces to kilograms 100oz to kg 100oz = kg 100oz kg 10 years to months 10years to seconds 1 year to sec 1hr s 10 días a horas (use your own language) If you don't remember the unit abbreviation just simply type the name for example instead of "oz" you can type "ounce" or "ounces" or even use words in your own language for exaple "onza" or "onzas" in spanish. Finally if you still don't remember the unit abbreviation or it's name simply type calculate list and select "List Available Units" you can type to filter, etc. Please go to the repo description on Github for a full list of units it's really difficult to write them here in the forum. View Units Units Options The following options are available. Simply launch Alfred and type calculate configure and select any of the options below. View the configuration section for more info Set System of Measurement Here you can define your System of Measurement, this option is still in development but as the workflow grows this might be necessary for US users, by default the metric system will be used but you can define imperial or metric Percentages You can easily calculate percentages for example: 15% of 50 = 7.50 //7.5 equals to 15% of 50 120 + 30% = 156 //120 plus the 30% of 120 120 plus 30% = 156 //120 plus the 30% of 120 120 - 30% = 84 //120 minus the 30% of 120 120 minus 30% = 84 //120 minus the 30% of 120 30 % 40 = 75% // 30 is 75% of 40. Translations and natural language can also be used 120 más 30% = 156 Time Time is triggered by a keyword because is not often used so you can simply open alfred and type time Gives you the current time time Converts the timestamp to a regular date time 1577836800 Gives you the time from now plus anything you want time +15 days time now plus 3 days Number of days until specified date time days until 31 december The start date of current year time start of year The start date of specified year time start of 2021 The end date of current year time end of year The end date of specified year time end of 2021 It also works in your language time inicio de 2020 time fin de 2020 time dias hasta 31 diciembre Get information about date time 31 December, 2021 18:00:00 time 31/12/2021 18:00:00 time 12/31/2021 18:00:00 Calculate the difference between two dates time 25 December, 2021 - 31 December, 2021 time 31-11-2019 - 21-11-2019 time 11/31/2019 - 11/21/2019 Time Options The following options are available. Simply launch Alfred and type calculate configure and select any of the options below. View the configuration section for more info Set base timezone Base time zone to calculate dates in your time for example (America/Los_Angeles, Mexico/General, etc.) Add date format Configure a new date format so the date is displayed the way you want for example (j F, Y, g:i:s a) Delete date format It will show you a list of configured date formats, simply select the one you want to delete and press enter to remove it Time will use the language that you configure with Set base language VAT (value added tax) With this you can calculate the vat of a given amount. Like time, vat is also triggered with the keyword "vat" you can change the keyword in the workflow. Given the following query vat of 400 (with 16% vat configured, you can configure your own percentage) You will get VAT of 400 = 64 // VAT Amount 400 plus VAT = 464 // Amount plus vat 400 minus VAT = 344.82 // Amount minus vat VAT Options The following options are available. Simply launch Alfred and type calculate configure and select any of the options below. View the configuration section for more info Set VAT percentage for example (16%) Configuration You can easily configure the workflow simply by opening Alfred and typing calculate configure you will see a list of all the available options to configure the workflow, select the option you want and press enter then simply enter your value and again press enter to save it. Check the following gif if you have doubts. Translations Please check the available languages on Github, it's easier to update the information there and also how you can create a translation. Keywords Keywords are words that can be used when writing a query in natural language for example a keyword "ounces" will be converted to "oz", "kilometers" will be converted to "km" or "dollars" will be converted to "USD", "seconds" will become "s" and a large etc. This keywords allows the user to type in a more natural way and in their own language. You can write your own keywords to extend the functionality, please check the information on Github. Stop Words Stop words are words that can be used in the query when using natural language for example "100km to cm" - here the stop word is "to" Stop words are useful for two things: Allows the user to write more naturally and in their own language (e.g 100 dolares a mxn) "a" is the stop word Are used to check if the query has to be processed for example: 100km equals meters if the word "equals" is not registered in the stop_words array then it won't be processed. At the end this stop words are removed so 100km to cm becomes 100km cm. Please take a look at the readme on Github to learn more about this. For Currency, Percentages and Units this workflow will only process the query if it begins with a digit and it has at least 3 characters. Time and VAT have a keyword because those are not often used. Updates Updates are installed automatically when a new version is released you don't have to do anything but if want you can check for new updates manually just launch Alfred and type calculate update the workflow will check for updates and it will let you now if there are any updates available. Lastly This is the first workflow that I create I just had 3 days to do it and 1 was for finding, naming flags, creating translations, creating the readme and this post. If you find a bug or you think this workflow can be improved please let me know or if I created/configured/exported the workflow incorrectly please let me know and I'll fix it. I just purchased Alfred Powerpack and had a great time creating this workflow and I hope that someone finds it useful apart from my lovely wife.
  2. 3 points
    @dfay, @vitor & @deanishe - Thanks for taking the time out to help a coding neophyte, like myself. I really appreciate it. Honestly, I can't thank you guys enough. Alfred's great, but it wouldn't be the first thing I'd install on a Mac, if it weren't for you guys and others on the forum. I've learned a ton from you guys! For others who may be struggling with script filters and JSON outputs, I've uploaded a new version of the workflow to use as a learning example: Download Workflow. The workflow combines everyone's suggestions from above: AppleScript, JavaScript & Ruby. All three are nearly identical, with the exception that the JavaScript and Ruby versions lack the prefix "Same Words" in the subtitle. This should be enough to get you started, if you're also struggling to get your head around how script filters' outputs work.
  3. 3 points
    @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
  4. 2 points
    Acidham

    Alfred 1Password Search

    Another Workflow to search 1Password items and open in 1Password. Download on Git
  5. 1 point
    Acidham

    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
    deanishe

    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
    deanishe

    Safari Assistant

    Safari Assistant All-in-one workflow for Safari. Filter tabs, bookmarks (and bookmarklets), reading list and history. Several built-in actions. Easily add your own via scripts. Assign your favourite actions (or bookmarklets) to alternate actions (i.e. ⌥↩, ^↩ etc.). Download from GitHub releases. Source code. Built-in tab actions: Close Tab Close Window Close Other Tabs Close Tabs to Left Close Tabs to Right Built-in URL actions (also work on tabs): Open in Private Window Open in Default Browser Open in Chrome Open in Firefox Usage bh [<query>] — Search and open/action bookmarks and recent history. ↩ — Open item in browser. ⌘↩ — Show URL actions for selected item. ⌥↩ — Run custom action on selected item. ^↩ — Run custom action on selected item. fn↩ — Run custom action on selected item. ⇧↩ — Run custom action on selected item. bm [<query>] — Search and open/action bookmarks. ↩, ⌘↩, ⌥↩, ^↩, fn↩, ⇧↩ — As above. bml [<query>] — Search and run bookmarklets. ↩ — Run bookmarklet in active tab. bmf [<query>] — Search bookmark folders. ↩ — Enter folder/open bookmark. ⌘↩ — Open all bookmarks in folder/show URL actions for bookmark. hi [<query>] — Search and open/action history entries. ↩, ⌘↩, ⌥↩, ^↩, fn↩, ⇧↩ — As above. rl [<query>] — Search and open/action Reading List entries. ↩, ⌘↩, ⌥↩, ^↩, fn↩, ⇧↩ — As above. tab [<query>] — Search and activate/action Safari tabs. ↩ — Activate the selected tab. ⌘↩, ⌥↩, ^↩, fn↩, ⇧↩ — As above. See the README on GitHub for full usage instructions.
  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
    GuiB

    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
    GuiB

    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
    I have been using this command on mac: open -a "Google Chrome" --args --profile-directory="Profile 1" It works for me.
  15. 1 point
    @garyh The latter possibility intrigued me, so I wrote a script that imports your Pinboard bookmarks into a Chrome profile. If you create a new Chrome profile and point the script at it, you can have your Pinboard bookmarks directly in Alfred's default results. Obviously, you lose the benefits of tags, though.
  16. 1 point
    stdavis

    File search is hanging

    After updating to the prerelease, the issue is fixed! Thank you very much for your attention to this issue. Please let me know if there's anything else that I can do to help test. I ❤️Alfred.
  17. 1 point
    That's normal, tbh. It's insane. It'd probably be a better use of your time trying to re-implement your workflow in a sensible language (if that's possible) than muddling through with AppleScript. It's so crazy, I still don't really understand it after using it for years.
  18. 1 point
    @vitor Thanks a ton for the explanation and the two working examples. This was extremely helpful, and it got me thinking that I could probably figure out a way to use my existing AppleScript to generate the list and then feed it into your JavaScript or Ruby script filter examples? It's a pretty complicated AppleScript - for my scripting ability, anyways - that generates the list. To be sure, I don't disagree with any of your statements - or others' on this forum - about AppleScript's 💩 status. But it would take me ages to learn one of these better languages, and then reverse engineer the existing AppleScript. As you can tell, I hardly understand AppleScript 😉 @dfay Thanks for the sources above! One of the first failed variations that I mentioned above came from my hackneyed attempts at pulling out pieces of your windows workflow (the one that works for Preview and a few others apps). When @deanishe mentioned a json.scpt file, I knew that I had seen one in your workflow, so I used it in several iterations. But I could never get any of them to work. However, I completely forgot about your more streamlined workflows for only Preview and Finder. In the multi-app version, I think stringing all those variables together for the different apps got me a little turned around. In any case, I'll go back and take a look at those other versions. Thanks a ton!! I can't thank you both enough!!
  19. 1 point
    Or to continue with AS, look at the examples here: This is what I used to figure out how to do the recent folders and active folders scripts in And here's a solution for you: set theList to {"Red", "Green", "Blue"} # What next? -- import JSON library set workflowFolder to do shell script "pwd" set json to load script POSIX file (workflowFolder & "/json.scpt") -- Create and add items set theItems to {} repeat with i from 1 to count theList set end of theItems to json's createDictWith({{"title", (item i of theList) as text}, {"uid", i},{"arg", (item i of theList) as text}, {"subtitle", "Same Words " & (item i of theList) as text}}) end repeat -- Create root items object and encode to JSON set itemDict to json's createDict() itemDict's setkv("items", theItems) return json's encode(itemDict)
  20. 1 point
    The fact that you’re using AppleScript makes the task significantly harder. AppleScript is an awful language: it’s too different from other languages, lacks several features, and is badly documented. That in turn makes it that few people want to use it, meaning there’s less people to help you and less people making resources for you to learn from. AppleScript falls flat on its goal of being a language for people who don’t know how to program. It’s sole redeeming quality is that it can talk to GUI apps in a programatic way built into the system. But I advise you to use it for that alone, and get out and use something else as soon as possible. If you want to learn to program, do not start with AppleScript. It’s weighing you down. At the very least, as @deanishe mentioned in the thread you linked to, use JXA (JavaScript for Automation), which gives you the only good part of AppleScript in a better (yet still not good) language. AppleScript doesn’t understand JSON, you have to build it by hand and that’s not a good situation to be in. You want to use a language that can build the JSON for you from a simple list you give it. JavaScript (works with Alfred’s /usr/bin/osascript (JS)): const my_list = ['Red', 'Green', 'Blue'] // Your example list let script_filter_items = [] // We will build this array with the elements for the Script Filter my_list.forEach(element => { // For each item in your list script_filter_items.push({ 'title': element, 'subtitle': element, 'arg': element }) // Add them to the empty array }); JSON.stringify({ 'items': script_filter_items }) // Transform it into JSON Alfred understands Ruby require 'json' # We need the JSON gem, to be able to use JSON functions my_list = ['Red', 'Green', 'Blue'] # Your example list script_filter_items = [] # We will build this array with the elements for the Script Filter my_list.each do |element| # For each item in your list script_filter_items.push(title: element, subtitle: element, arg: element) # Add them to the empty array end puts({ items: script_filter_items }.to_json) # Transform it into JSON Alfred understands
  21. 1 point
    Sure, but it might take me a week or two before I can get it written up. Feel free to nag me.
  22. 1 point
    Benzi

    (faster) Menu Search

    I have re-implemented ctwise's excellent implementation of the Menu Search workflow in Swift. This version is ever so slightly faster (at least on my machine ) - YMMV. Requires OSX 10.7+ Download Setup Accessibility must be enabled for Alfred in order for this to work properly. For example, in macOS Sierra, this is configured using the Security and Privacy preference pane, under the Privacy tab with the Accessibility section selected. Alfred must be included in the list of apps allowed to control your computer. This step is required for the workflow to generate the list of menu items, and also click on a specific menu item. Here's a snapshot of what the preference pane might look like in macOS Sierra. Usage Type m in Alfred to list menu bar items for front most application You can filter menu items by name, or do a fuzzy search. E.g m new tab will match the menu item New Tab m cw will match the menu item Close Window Settings You can change the workflow environment variables to fine tune menu listings -show-disabled true/false controls if diabled menu items should be shown (default is false) - change this setting if certain items are not displayed, even though active -show-apple-menu true/false if true, menus items under the apple menu will be shown (default is false) -max-children number how many sub-menu items to load for each menu item (default is 30) -max-depth number how many nested levels if sub menus should be listed (default is 10) v1.6 and above You can also have customised settings per app. Typing ms into Alfred will give you a list of options to configure your settings.txt config file. The workflow comes bundled with a sample configuration file for reference. Your app settings will override any workflow level variable settings you may have specified. Here's the settings file I use for reference: # always show disabled menu items appFilters { app: "BibDesk" showDisabledMenuItems: true } # for Safari, ignore the History and Bookmarks # menus since loading it take a lot of time appFilters { app: "Safari" ignoreMenuPaths { path: "History" } ignoreMenuPaths { path: "Bookmarks" } } # For Finder alone, show the Apple menu entries, # and ignore any recent entries listed in the # Apple > Recent Items menu appFilters { app: "Finder" showAppleMenu: true ignoreMenuPaths { path: "Apple" path: "Recent Items" } } Change log 1.0 - Initial Release 1.1 - Added Fuzzy Text Matching for Menus If you have a menu item New Tab, then typing m nt in Alfred will match New Tab, since n and t matches the first letters of the menu text. 1.1.1 - Changed run behaviour to terminate previous script, this makes the experience slightly more faster 1.2 - Completely native menu clicking, removed reliance on AppleScript 1.2.1 - Performance improvements when generating menus using direct JSON encoding 1.2.2 - More performance improvements while filtering menu items 1.3 - Added -async flag to allow threaded scanning and populating of menus 1.4 - Added -cache setting to enable menu result caching and also set a timeout for cache invalidation 1.4.1 - Invalidate cache (if present) after actioning a menu press 1.4.2 - Slide the cache invalidation window forward in case we get invalidated by a near miss 1.4.3 - Speed improvements to caching, text search and fuzzy matching 1.4.4 - Added -no-apple-menu flag that will skip the apple menu items 1.4.5 - Tuned fuzzy matcher, allows non-continuous anchor token search 1.5 - Faster caching using protocol buffers 1.5.1 - Reduced file creation for cache storage 1.5.2 - Better support for command line apps that create menu bar owning applications 1.5.3 - Protocol buffer everything - microscopic speed improvements, but hey... 1.5.4 - Added various environment variables to fine tune menu listings 1.5.5 - Tweaked ranking of search results for better menu listings 1.6 - Per app customization via the `settings.txt` configuration file
  23. 1 point
    Mine shows search suggestions. This one scrapes the actual search results from the webpage. That's the reason it breaks quite often.
  24. 1 point
    @vitor - Searchio! is great, but the main difference was, as far as I can tell, actioning the searchio 'results' takes you to the google results page, whereas actioning this workflow's results actually took you to the result's URL. aviaryan's workflow's results: Searchio's results: So, the original workflow from this thread is 'better' if you know what you're looking for - it saves you the step of going to the google page.
  25. 1 point
    I found this answer from Alfred. This behavior is deliberate. Many users told us that Typinator made unwanted replacements in this situation and asked NOT to expand abbreviations in Alfred's search window. For this reason, we have made this the default behavior in Typinator 8.0. However, you can revert to the previous behavior with a hidden setting. To do so, execute the following command in Terminal: defaults write com.macility.typinator2 expandInAlfred 1
  26. 1 point
    @cebroski in addition to what @deanishe said, I would recommand to remove also the last part of the scipt so it doesn't close an already opened tab. I mean, remove: -- close the first default tab tell application "System Events" keystroke tab using control down delay 0.2 keystroke "w" using command down end tell However, if I understand well what you want, I think it would be better/easier/faster to use the Alfred's builtin 'Open URL' object. The idea is to have a Keyword object (or another trigger) that connect to 2 'Open URL' objects that send your specific URLs to Firefox. Here is an example workflow that should do what you want: https://d.pr/f/jsvmIY Make sure to check the "Open links in tabs instead of new windows" in the Firefox Preferences.
  27. 1 point
    Thanks guys for the help! fyi: https://github.com/Acidham/search-alfred-workflows is now supporting keyboard shortcuts!
  28. 1 point
    see keyword hot in
  29. 1 point
    @jayhlee These are two different modes; In Alfred's default results, Cmd + number actions the result (e.g. if it's an app, it'll launch the app, if it's a folder, it opens the folder, and if it's a custom search, it performs the search in your default browser) In File Navigation mode (which is the mode you enter with the Previous Path hotkey), Enter navigates into the folder As such, the preferences under File Search > Navigation only apply to the File Navigation mode. If you want to navigate into a folder from Default Results, you can use Cmd + down to enter File Navigation mode and browse the contents of a folder. Cheers, Vero
  30. 1 point
    luckman212

    Can I Save Screenshots to Clipboard?

    ... or Cmd+Shift+4 and then hold the CTRL key while snapping, which also makes the output go to the clipboard
  31. 1 point
    @Andrew 4.0.7 fixed the problem! I don't really see any noticeable delay (but I am on a 6-core i7 Mac Mini 2018 so it's possible older machines might). I'm happy with this fix!
  32. 1 point
    @luckman212 this should now be sorted in the 4.0.7 pre-release
  33. 1 point
    biati

    Calculate Anything

    Hi @vitor I've added OneUpdater, did some tests and it seems to work without problems, it's now available in version 1.0.5 with some changes and bug fixes and a new way to configure the workflow. Thank you for OneUpdater it is really simple to use.
  34. 1 point
    deanishe

    Offline Unit Conversion Workflow

    Alfred is (being a native application), but it doesn't share that information with workflows. You can use the command defaults read -globalDomain AppleMetricUnits to ask whether the OS is set to use metric.
  35. 1 point
    Hi @vitor is there a difference between setting "download_type" to "github_release" and setting the download type to direct and in the workflow_url setting the url to the latest release for example "https://github.com/user/repo/releases/latest/download/weorkflowname.alfredworkflow"? Also after implementing the updater I did a test and it notified me about and update (it downloaded the workflow from GitHub correctly and asked me to update, everything good here) except that there was no update, the thing is that I forgot to push the updated "info.plist" to GitHub (the one in GitHub said 1.0.0) while my workflow was in version 1.0.4, so it appears that the updater only does a simple comparison like $v1 !== $v2 instead of actually checking if the release version is bigger than the current version. So my question is do you think this could cause an issue (not now and not in my case) in the future with any workflow where the author forgets to change the version or something happens? or am I just dumb for making such mistake? Anyways, I think this is awesome, it's really simple to implement and it could basically be implemented in any workflow. As a new Alfred user I spent a few weeks looking and testing workflows you can find 3 or 4 different versions of the same workflow, outdated information, outdated links, etc. and it appears that there's not a single source where everyone could look for workflows (apart from the forum and I'm not sure this is the best way) I hope OneUpdater could become the standard for handling updates. Thank you for sharing.
  36. 1 point
    Andrew

    Kernel Panics?

    A few things of note here: Alfred runs as a user level process, and doesn't install any lower level OS based extensions, so isn't even capable of creating a kernel panic. This is unless one of the macOS APIs Alfred is using is bugged or corrupted, more likely the latter as this is the first mention of this I've heard. There is no underlying rendering differences between 4.0.5 and 4.0.6, so I'm certain that the behaviour difference is purely coincidental. A few users have seen graphics bugs in Catalina in both the Alfred window and the macOS dropdown and popup menus (where Alfred isn't installed) based around the window blur. If you select the Alfred Classic theme (or create a custom theme and set the window blur to 0), then this will rule out the blur causing a GPU issue. Have you tried running on a new user account to rule out another underlying app (which you may not even know is installed) interfering with your Mac's operation. Kernel panics are unusual, but Catalina is new and notoriously buggy still. If you upgraded via an old OS, or via the macOS Beta path, there may be an underlying OS corruption or misconfiguration. Are there other quirks you are experiencing on your Mac? Cheers, Andrew
  37. 1 point
    Welcome @Terminal, You can do this with a Workflow. Connect a Hotkey Trigger to a Copy to Clipboard Output. On the Hotkey Trigger, set Argument to Selection in macOS; on the Copy to Clipboard Output, check Automatically paste to frontmost app and on the text box write: {clipboard} {query} Here’s a ready-made Workflow.
  38. 1 point
    deanishe

    Not focusing correct Excel window

    Contexts isn't doing the same thing. It's telling the OS to focus a window. Alfred is telling the OS to open a file. Exactly the same thing happens if you open an Excel file from Finder and exactly the same thing would happen if you could open a file via Contexts because the problem is with the way Excel handles open-file commands. Alfred (and every other application that opens files) aren't going to add window-management logic just to work around a bug in Excel.
  39. 1 point
    Andrew

    Duplicate apps in results (10.15 and V4)

    @unitof Alfred is showing the actual location of the apps as passed back to him by macOS when searching. I'm going to be adding a bit of logic to be able to show the virtual locations of the apps (/Applications/.../) in a future release. Cheers, Andrew
  40. 1 point
    GuiB

    Removing keywords in fallback searches?

    @cabsuwepa, here it is: https://d.pr/f/X5kfAF
  41. 1 point
    Hello everyone, Here is a full collection of themes to embrace macOS Mojave's new Dark and Light themes and their respective accent colors! Each one hase been carefully designed with a pinch of the accent color's hue in each element. I've chosen to respect the low contrast Yellow Accent color shipped by Apple in macOS, despite not being fond of it. It comes in Blue, Purple, Pink, Red, Orange, Yellow, Green & Gray, each with a Dark and Light variant. You can have the color you want, as long as it's not black! There is now a workflow made for this themes collection, which allows you to switch easily between Dark & Light mode, and select your Alfred theme's accent color. Here is a quick demo: TL;DR: How to Install ? You can find all the previews in High Res and link to each theme on Alfred's website on my repo: https://github.com/AlexMartinFR/mojave-alfred-accented-themes Enjoy
  42. 1 point
    It would be great if one could exclude from all search results files with a specific extension. There are files in my Documents folder that I never want to look for, e.g., compiled files such as byte code for Python classes (.pyc), Java libraries (.jar), Java compiled classes (.class), automatically generated web pages (.html files) and so on. I guess adding an option that hides files with some user-specified extension from Alfred search results should not be hard to implement (also in a second step, i.e., it is not necessary to exclude them from Alfred index, but just hide them a posteriori in the search results if specified). I think users could benefit from this, having personalized search results.
  43. 1 point
    surrealroad

    Reminders

    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.
  44. 1 point
    I believe this is a problem with iOS 12 Shortcuts and Dropbox. See https://talk.automators.fm/t/shortcuts-and-dropbox/1917 If you have TextExpander and TE Touch (last non-subscription versions) it's possible to use Hazel and AppleScript to do a one-way sync of snippets from Alfred to TE on the Mac and then use TE Touch on iOS. At least it works for me - I can provide docs and scripts if there's interest.
  45. 1 point
    Andrew

    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
  46. 1 point
    Now that I think about it, they’re probably “smart” quotes. IIRC, you press ALT+[ and ALT+SHIFT+[ to get them. Maybe ]. I can’t remember which is double and which is single quotes.
  47. 1 point
    Find and paste unicode symbols. I included a lot of them, like really a lot, over 20k I think, but for me workflow works pretty fast. Symbol can be pasted as symbol (mh...), in html encoding, as python string and as unicode code point. Download: https://github.com/bevesce/unicode-symbols-search/raw/master/Symbols.alfredworkflow Source: https://github.com/bevesce/unicode-symbols-search
  48. 1 point
    Since you are new to Alfred 2, let me explain the difference in case it wasn't already obvious. A run script (with the language set to bash) is the same as running the command from the terminal except it runs it in the background with no new windows popping up. Terminal command will launch a terminal window and run the command in that new window. If a command works normally in a Terminal Command item, then it should work normally as a Run Script with the language set accordingly as long as the script isn't reliant upon something in your profile settings or environment variables. Alfred doesn't import your environment so, if you have environment variables set that the script would need access to, these would need to be brought into Alfred. Also, paths in Alfred are relative to the folder that the workflow is stored in. So if you needed to access something in your documents folder, you wouldn't just use "cd Documents" assuming that you started in your home directory, you would have to specify full path to your Documents folder.
  49. 1 point
    I have the same problem. I already rebuilt the Spotlight cache and did a reload and all the other fairy dust things that get recommended. However, they are only temporary fixes or don't work at all, depending on today's weather or some other unknown variable. Spotlight finds my items immediately, Launchbar finds my items immediately, Alfred 2 worked perfect until maybe two weeks ago (I don't have a good event log, but I'd wager that problems started with the newest version). Now, while I can resort to rebuilding my Spotlight cache, it may or may not help and if I have to do that every day then Alfred starts to look not as attractive anymore. Also, restarting is often not possible as this machine is running complex multi-day calculations frequently.
  50. 1 point
    lbergnehr

    Insert (Unicode) Character

    Before I saw that bevesce had already created this (with more features), I finished one of my own. Anyway, it makes it easy to search and insert Unicode characters by their name in the current text (if it's supported). Here's the download Here's the source Technical details: For the technically interested, the difference between this and bevesce's is that this is written in ruby as opposed to Python and has the characters hard coded in this script. It makes it slightly faster with the expense of including only a subset of all possible characters. There is a limit to how big the script, or the array in it, can be it seems or it will crash when being loaded by Alfred. Keep up the good work!
×
×
  • Create New...