Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 08/18/2021 in Posts

  1. armenaton

    Obsidian Toolkit

    Over last couple of weeks, I compiled a bunch of features related to Obsidian. It's already been tested by a bunch of people from the Obsidian Community, so should be rather stable. Noticed at some point that I only shared it in the Obsidian Forum and not the Alfred Forum, so here it is. 😅 (I know that there are other Obsidian workflows, but they mostly focus on stuff like daily notes and after all have a very different feature set.) Full Feature List - Search your Vault (Open note, append clipboard, open in new pane, copy hook, ...) - Fully browse your vault folder structure via Alfred - Open Starred Files/Searches - Open Recent Files - OCR Screenshots (see image below) - Search the Obsidian Documentation - Search Community Plugins and directly open them in Obsidian or GitHub - Search & Preview Community Themes - Create Backups of your Vault - Enter Dual Mode (Edit + Preview) - Create a new note - Open various folders in .obsidian - Open the Obsidian settings - Toggle a CSS Snippet - One-Click-Convert a font file to base64-CSS - Open your current theme CSS file - Access your themes and snippets via Alfred - Quickly create a new CSS snippet from clipboard content - Display a list of Obsidian's default variables ➡️ Download the latest release at GitHub ➡️ Documentation of all the Features and Settings
    2 points
  2. 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, px, em, rem, percentage, and more. Why? There are several conversion workflows out there but I wanted a workflow that worked naturally. For example, you can open Alfred, type `100 + 9` and get a result. No need for keywords or hotkeys -- it just works. With Calculate Anything you can do the same, simply type `100 + 16%`, `100 euros to usd`, `100km to cm` or `100 years to hours` and many more. Features - Natural language - type 100 euros to dollars, 100 euros in usd, 100€ to $, 100eur usd, 100 euros a dolares -- it does not matter, the same result will be displayed - Currency - Up to 168 currencies - Cryptocurrency - Support for 100 cryptocurrencies - Units - 100 kilometers to meters or 100 km to m or simply 100km m - Data Storage - 100 gigabytes in megabytes, 2 gb to mb, 400MiB to kib, 2tb gb, etc. - Percentages - 100 + 16%, 100 - 16%, 40 as a % of 50, 20 is what % of 50, etc. - PX,Em,Rem,Pt - 12px or 12px to em or 12px pt - Time - time +15 years, time now plus 6 hours or 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 Important You will always find the latest version, changelog and updated documentation on Github as is difficult to use the forum to keep track of updates and support. Download Download directly from Github releases page, make sure to download the latest release. Download here Base Configuration There's only one global setting and that's the language. This setting will allow you to type in Alfred using your own language and also will change the notifications and texts. View the Translations section for the available languages. Configure it with: - In Alfred type `ca`, select **Set base language** and choose the language you want to use. You can also type in Alfred `ca lang` Currency You can use natural language or a few characters -- that's all! For example: 100 us dollars in mexican pesos 100 canadian dollars in argentinian peso 100 euros to dollars 100 euros in dollars 100 euros as dollars 100 euros a dolares (you can also write it in your own language) 100 usd to mxn 100 usd mxn 100usd yen 100€ to $ 100 ¥ in € 100¥ € 100eur (if no target the currency will be converted to the base currencies that you configured) You can set a base currencies so if you type for example 120 euros it will be automatically converted to the currencies that you configured. All these examples just work. You can add spaces between the value and the currency or not. If by any chance you don't remember the currency symbol or abbreviation simply type in Alfred ca list and select "List Available Currencies" Currency Modifiers When a result is displayed you can use action modifiers to copy the value in different formats: Return - Press Return to copy the value with format, for example 2,376.54 Command + Return - Press Command + Return to copy the value without formatting, for example 2376.54 Option + Return - Press Option + Return to copy the value of a single unit, for example 23.76 Currency Options By default the workflow will use exchangeratehost api to make the conversion. exchangeratehost only support 32 currencies; if you need support for additional currencies supported by Calculate Anything, 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 ca and select any of the options below. Add base currency - This will become your base currency, if you type `100eur` it will automatically be converted to the currencies you define here. You can define multiple currencies by repeting the process. Delete base currency - If you no longer want a base currency you can select this option to list all configured base currencies, you can delete a currency by simply pressing Return Set currency format - Used to format the converted amount, you will see a list of formats to choose from, simply press return to select a format. Set Fixer API - Set your fixer API Key for support more currencies, after you select this option just copy paste your Key and press Return to save it. 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 Cryptocurrency Calculate Anything can convert between 100 cryptocurrencies and 168 currencies. Again, you can use natural language or simply pass the currency symbol. 2 bitcoin to dollars 0.1 bitcoin in dollars 5 bitcoins in ethereum 1 ethereum to ¥ 10 ethereum in mxn 1eth btc 1btc (If no target the currency will be converted to the base currency that you configured) Cryptocurrency Modifiers When a result is displayed you can use action modifiers to copy the value in different formats: Return - Press Return to copy the value with format, for example 2,376.54 Command + Return - Press Command + Return to copy the value without formatting, for example 2376.54 Option + Return - Press Option + Return to copy the value of a single unit, for example 23.76 Cryptocurrency Options You need to get a FREE API Key from https://coinmarketcap.com/api/pricing/ it takes less than a minute. The following options are available for cryptocurrency. Simply launch Alfred and type ca and select any of the options below. View the configuration section for more info Set Coinmarketcap API - Select this option and paste your API key and press enter to save it. Units You can write your query using natural language or just a few characters. Either way works! 100 kilometers to meters 100 km in meters 100 km m 100km m 100 miles as meters 100miles in meters 100 miles to m 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 launch Alfred and type ca 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 Modifiers When a result is displayed you can use action modifiers to copy the value in different formats: Return - Press Return to copy the value with format, for example 2,376.54 Command + Return - Press Command + Return to copy the value without formatting, for example 2376.54 Option + Return - Press Option + Return to copy the value of a single unit, for example 23.76 Units Options There are no options available for now. Data Storage You can write your query using natural language or just a few characters. Either way works! 100 gigabytes in megabytes 100 gigas in megas 100 Mebibytes in Kibibytes 100 gb to mb 100gb to kb 100gb mb 400MiB in kib 2tb gb 1b kb Please note, this workflow follows the IEC Standard (International Electrotechnical Commission) as it had been adopted by the IEEE, EU, and NIST. That means that if you type `1MB in KB` you will get `1000 KB` but if you type `1MiB in KiB` you will get `1024 KB`, you can read more about it here https://en.wikipedia.org/wiki/Byte#Multiple-byte_units Do you prefer 1 MB = 1024 KB? No problem, you can configure it, checkout Data Storage Options. Data Storage Modifiers When a result is displayed you can use action modifiers to copy the value in different formats: Return - Press Return to copy the value with format, for example 2,376.54 Command + Return - Press Command + Return to copy the value without formatting, for example 2376.54 Data Storage Options There's no exactly "options" it's more of a way for people to overwrite the conversion and use always the Binary mode so `1 MB = 1024 KB`. To enable this you need to [Set a Workflow Environment Variables](https://www.alfredapp.com/help/workflows/advanced/variables/). The name should be datastorage_force_binary and the value should be true. 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 PX, EM, REM, PT Open Alfred, type `12px` and you'll see the value converted to em, rem and pt. It's that simple. Check the examples below. 12px 12px to em 2 rem 2rem 2rem to pt 12px in em base 17px (use a custom px base or configure it in the workflow) PX, EM, REM, PT Options The following options are available. Simply launch Alfred and type ca and select any of the options below. View the configuration section for more info Set base pixels - custom px base for conversions Time Given its less frequently used, time conversions require the use of the keyword 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 ca and select any of the options below. Set base time zone - Base time zone used to calculate dates in your time zone, search and select your zone from the list and press Return to save it. 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 more information about available values for date https://www.php.net/manual/en/function.date.php Delete date format - It will show you a list of configured date formats, simply select the one you want to delete and press Return to remove it VAT (value added tax) With this you can calculate the VAT for a given amount. Like time, VAT is also triggered with a keyword. By default, the keyword is "vat" but you can change the keyword in the workflow. Given the following query vat of 400 (with a 16% VAT configured, a percentage you can configure) Calculate Anything will provide the following conversions: VAT of 400 = 64 (the VAT amount) 400 plus VAT = 464 (the Amount plus VAT) 400 minus VAT = 344.82 (the Amount minus VAT, useful if you have a final amount and want to know the VAT applied) VAT Options The following options are available. Simply launch Alfred and type ca and select any of the options below. Set VAT percentage - for example 21% Configuration You can easily configure the Calculate Anything workflow. Simply open Alfred, type `ca` and you will see a list of all the available options to configure the workflow. You can also filter the options for example launch Alfred and start typing `ca fixer` and you will automatically see the options filtered. To select an option just press Return. 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. Cache The workflow stores some data about currency in the workflow data folder. You can delete the cache by opening Alfred and typing `ca clear`. You can decide between deleting the cache, delete stored settings or both. Updates The workflow will check for updates in the background every 15 days and will notify you when a new update is available. If you want to check for updates manually, launch opening Alfred and type `ca update`.
    2 points
  3. Just released version 2.0! This is something that I realized maybe a year ago that I wanted to do eventually, to rewrite all the PHP and Python (which is almost all of what this workflow used to be) in a way that will make it work without external dependencies when Apple stops providing PHP and Python with the OS (which has been know for a while that they will eventually stop doing) With macOS 12 Monterey, which will be released possibly as soon as the coming week (but more likely next month), PHP will be gone, which means that this workflow would not function if you did not manually install PHP yourself, and while I did some changes in version 1.7 recently to make the workflow function with a version of PHP that you have installed yourself, I do really not like the idea of requiring PHP to be manually installed for my workflow to function, and it is also just a matter of time before Python goes away as well. Likely next year. So I have rewritten everything that was written in PHP and Python in Go instead. Which means that almost everything is entirely rewritten (there is just a bit of AppleScript that has only changed a little) Go is a compiled programming language, and it does not require any runtime to be installed to function once the code is compiled. This means that the workflow is not dependent on Apple to provide support for something like PHP or Python in macOS anymore, and Go also has the added benefit of being faster than a scripting language like PHP. Version 2.0 does not really look or behave as different as the version bump might indicate, but almost everything has changed underneath to make this a better workflow. Rewritten in Go, so no dependency on PHP or Python anymore. This is important, as Apple is removing PHP from macOS 12 Monterey, and will also remove Python from macOS in the future. It's faster! Running the backend of the workflow as a compiled binary (Go) instead of a script (PHP) makes it faster, and it is also compiled as a universal binary, so it's running natively on both Apple Silicon and Intel Macs, but there are also some other changes that helps to make it faster and you will probably notice the difference if you used the old version before. Less risk for unexpected behavior that leads to bugs, both because it can't behave different depending on which PHP or Python version you have anymore, but also because it now for example uses more reliable ways to keep track of information while navigating through the different parts of the workflow. Adding bookmarks from Firefox is now more reliable, and if things still occasionally go wrong, the workflow is better at communication that in a useful way. (I switched from Safari to Firefox myself, so it got some more attention than before) Ability to add a bookmark by copying the address, rather than getting it from the currently active browser window. To use this feature for adding a bookmark from an unsupported browser (or somewhere else), just copy the address and go to the bookmark adding feature of this workflow. It will just work, without you having to do anything more than that! Get it from GitHub!
    2 points
  4. I want to thank deanishe for his ONGOING support of an Alfred workflow for Zotero, -a tool he doesn't use at all-. He redeveloped an abandoned Alfred/Zotero workflow 4 years ago to make ZotHero. His generosity to the academic Alfred community is astonishing. I encourage everyone to buy him a beer
    2 points
  5. Just as a quick update on this, when I release the next version, the bin error dialog now gives a few more useful options allowing for workflow to be opened or disabled so you don't see the issue again: Alfred will also search for alternative paths when the macOS standard bin path is missing, e.g. for php Alfred will also look in: /opt/homebrew/bin/php /usr/local/bin/php I have some more changes I want to implement for the next release, however, there is a good chance I'll do an interim build in the next few days which will contain this change, allowing for macOS 12 users to use php workflows if they have an alternative php installed (e.g. via homebrew). Cheers, Andrew
    2 points
  6. They’re wasting so many resources to do damage control (and failing) that I wonder if the alleged gains will compensate the loss. They did take VC money, which is a kiss of death. They’ll either run themselves to the ground or become a corporate husk of their former selves, all in the pursuit of growth. They’ve decided making more money was more important than continuing to provide users with the polished experience they’ve been accustomed to (and supporting them for) for years. That is their choice to make, and they should own it. This situation where people keep telling them what they don’t want and they deflect is getting embarrassing. It’s not like there aren’t real and well-know reasons to distrust Electron and node, especially on a security-minded application.
    2 points
  7. dfay

    support iOS shortcuts

    I think he means triggering a shortcut on an iOS device to control Alfred Remote, not running them on a Mac.
    2 points
  8. Here are 18 new themes inspired by Twitter's new typeface, Chirp! Download Chirp Themes You'll need to obtain Chirp yourself, since I can't distribute the font. I, did, however, include variants of the themes that will use the GT America Trial font (which is what Chirp is based on) if it's installed. You can download GT America Trial here.
    2 points
  9. I just released version 2.0.4 with a bug fix for an issue that would occur if you had at least one collection in Raindrop.io that did not have an icon manually set for it, so if you happened to turn into this problem you should now be able to have everything working by downloading the updated version here: https://github.com/westerlind/alfred-raindrop-search/releases
    1 point
  10. I create a workflow for web search based on your work. @dfay https://github.com/yellowsoar/alfred_web_search_with_fuzzy_list
    1 point
  11. There's already a Popclip extension for Alfred. Wouldn't take much editing to make it work with Universal Actions.
    1 point
  12. funkymonkey

    Obsidian Toolkit

    Thanks for this workflow! It's pretty incredible and very comprehensive! Wow!
    1 point
  13. Extra mile. hehehe nah, just really got into Alfred the last year and thought if I can help then why not. It makes no difference how it laid out at all. I just put it there and coloured it to make it obvious what I had done. Glad it is working for you and good luck and enjoy Alfred and all it has to offer.
    1 point
  14. Updated August 3, 2021 to work with Alfred 4.5 beta Now featuring Universal Action triggers and hotkeys for the following five actions: Uppercase Lowercase Capitalize - capitalizes all words (e.g. Posting A New Topic In Share Your Workflows) Title Case - capitalizes word except for "the", "in", "of" etc. according to American English title conventions (e.g. Posting a New Topic in Share Your Workflows) Sentence Case - capitalizes only the first letter of the first word & converts the rest to lower case All of these are set to Copy to Clipboard and Paste by default. There's also a script filter cc which lets you view the query converted and select your choice (like the Code Case workflow). You can also connect a hot key directly to the cc script filter directly to view the output options without typing the cc command and pasting your text. Download: https://www.dropbox.com/s/3k2lh21g5wnqrkp/Case Converter 2.alfredworkflow?dl=0 2018-02-09: updated link and updated workflow with fix to python workflow library The old version is described below and still available, if anyone prefers it. Workflow Version: This workflow converts the case of the text on the clipboard. http://dfay.fastmail.fm/alfred/Case%20Converter.alfredworkflow There are two workflows which display the following five options: Uppercase Lowercase Capitalize - capitalizes all words (e.g. Posting A New Topic In Share Your Workflows) Title Case - capitalizes word except for "the", "in", "of" etc. according to American English title conventions (e.g. Posting a New Topic in Share Your Workflows) Sentence Case - capitalizes only the first letter of the first word & converts the rest to lower case The keyword case will transform the text on the clipboard without pasting the result. The keyword casep will transform the text on the clipboard and paste (using Applescript System Events) Hotkey Version: Here is a version for use with hotkeys which will operate on the active selection in OS X and paste it with the converted text. These all have a half second delay prior to pasting, which is necessary for Applescript to be able to paste. http://dfay.fastmail.fm/alfred/Case%20Hotkeys.alfredworkflow Notes and Revision History: These use the Title Case perl script found at https://raw.github.com/ap/titlecase/master/titlecase . If you manage academic citations with BibDesk, Zotero, Papers, Mendeley, etc., Title Case conversion is especially useful for cleaning up downloaded citations. Updated May 3, 2013 with nicer colored icon thanks to mjv ( http://www.alfredforum.com/user/4384-mjv/ ) Updated February 5, 2014 to handle Sentence Case and to add a second keyword to paste after conversion. Updated May 20, 2014 with hotkeys
    1 point
  15. Link was broken, with %C2%A0 in the place of the space. Fixed now.
    1 point
  16. You can run Automator workflows with the /usr/bin/automator command-line program: /usr/bin/automator -i /path/to/input/file /path/to/workflow.workflow
    1 point
  17. Thank you! After I tried the script there indeed was no result and then it occurred to me: For some reason I do not understand, there were no cite keys in the user1 field even though I was sure that I checked "create cite key when importing" in Bookends' setting. Ticked it again, manually created citekeys using CMD+Shift+K, now everything is working as expected. Thank you!
    1 point
  18. @Mschuiling Just in case you were trying to reply to the Evernote topic @deanishe provided and accidentally created another topic, use the "Reply to this topic" button in the Evernote topic instead of Create Topic.
    1 point
  19. It’s generally easier to write the script in Script Editor then move it over to Alfred once it’s working. Also, when you do, use a Run Script with Language = /usr/bin/osascript (AS), not Run NSAppleScript.
    1 point
  20. @xattr You will be able to get most of the way there with a simple workflow in Alfred. Add a Hotkey or Keyword object to a workflow, then connect this to a Run Script object set to osascript (AppleScript), then paste in the following: on run argv tell application "Audio MIDI Setup" to activate tell application "System Events" to tell process "Audio MIDI Setup" try click menu item "Show MIDI Studio" of menu 1 of menu bar item "Window" of menu bar 1 end try delay 0.2 click menu item "Open Bluetooth Configuration…" of menu 1 of menu bar item "MIDI Studio" of menu bar 1 end tell end run This will take you to the midi bluetooth connection screen. I don't have any bluetooth midi devices, so can't actually see a connect button. For a bit of an explanation of the above script, it opens the Audio Midi setup, then clicks the "Show Midi Studio" item in the menu. This is wrapped in a try block because the menu item is "Hide Midi Studio" if it's already showing. The following delay allows time for this window to show, and the new menu item of "Midi Studio" to be added to the top of macOS. Finally, click the "Open Bluetooth Configuration…" button of the Midi Studio menu. Hope this helps, Andrew
    1 point
  21. The thread above refers to an older version of Alfred, before there were multiple content types Alfred could save to clipboard for you. In Alfred 4, go to Alfred's Preferences > Features > Clipboard History, you'll see three checkboxes. Uncheck these boxes and, optionally, select the Clipboard Viewer hotkey field and press backspace to clear the hotkey. Cheers, Vero
    1 point
  22. Can be confusing at first, but those shown(when you typed "flick") are actually fallback results and not your web search to say. Have a look here: https://www.alfredapp.com/help/features/default-results/fallback-searches/
    1 point
  23. Update. Set correct pasteboard type for HTML. To update, download the latest version (same URL) or wait a few days and it’ll prompt you to on next usage, since it uses OneUpdater.
    1 point
  24. There seems to be a Workflow for everything. Works great for me, thank you very much!
    1 point
  25. Hmm - this is happening because you likely have the option to show the latest query again: ... which is automatically running the workflow again when you re-show Alfred. The popup you see was never really intended to be seen unless there was a really bad issue, and now that php is missing, this "really bad issue" is actually happening. I am in the process of working through the best solution to this which should also prevent you from getting blocked by this dialog.
    1 point
  26. Clever, and brute force, but I'll take it! Thanks. Would be thrilled if @Andrew would consider a UI-accessible way to bulk enable/disable workflows too!
    1 point
  27. @sloth Could you tell me a bit more about your setup? Is this a new Mac or a longstanding one? If it's a new Mac, you'll need to ensure Dropbox has enough time to download all of your files first. Otherwise, if you're on a longstanding Mac, if you manually navigate to your Dropbox, do you see your Alfred folder? Could you have moved Dropbox to a new location (intentionally or accidentally)? Dropbox generally is pretty good at keeping files locally, but also offers Smart Sync, which only keeps the files online to save space on your Mac. If that's enabled, could it be that the Alfred folder has been set to only be stored in the cloud? Cheers, Vero
    1 point
  28. It’s possible, but there’s no good way to avoid that, the list needs to be built. Though I can change the cache saving to happen less often—let’s say once a day instead. You’ll need to :gdlaunchd once to remove the old one and then do it again to install the new one. Note that removing it deletes the cache and adding it builds it.
    1 point
  29. iApple

    Snippet Date format

    Enter in snippet {date:MMddyy}
    1 point
  30. @J_H There you go. Invoke Alfred and press ' (or press the space bar, which will add that character) and type to pick your app. Press ↵ to open it. No Spotlight indexing needed.
    1 point
  31. If you want to do the link extraction in Alfred, you'll have to implement your own "get current selection", as Alfred will not give you rich text or HTML. I can point you at the code to for that if you like, but I think injecting JavaScript into the webpage is probably a better idea. Chrome and Safari have APIs for that.
    1 point
  32. iTerence

    Native QRCode Generator

    Awesome workflow. Thanks
    1 point
  33. It would be awesome to have Alfred appear on all displays at the same time always. I currently have three displays and many times I need something from Alfred while looking at info from an "inactive" screen, after one second of thinking alfred didn't work, I realize that I have to look for it in my other monitors. Sure, if I open a file or website, it would open it in the active screen, but still, I would always see alfred appear in front of me.
    1 point
  34. Nice info @vitor — and you're right of course. I switched to a different theme and the dancing colon was gone. Always interesting to learn about obscure features like this. I suppose it'd be easy to change fonts by duplicating the theme in Alfred, but now that I know why this is happening it doesn't bother me anymore! Reminds me of this funny stand up comedy bit—can't remember who now (Ray Romano?) but goes something like..... "when you start getting older, you might notice a lump one day on one side and start panicking... until you feel the same lump on the other side and breathe a sigh of relief. Whew! It's symmetrical. It's supposed to be there!"
    1 point
  35. I think you must have turned it on using defaults on the command line. There’s no GUI option or documentation because it’s experimental. The feature is something Andrew added to support one of Mr Pennyworth's workflows (perhaps the one linked below). Alfred emits notifications ("selected result #1", "selected result #2", etc.) that other apps can subscribe to, so the preview window from Mr Pennyworth's workflow knows what to show. It's perfectly harmless: Alfred only broadcasts the index of the selected result, not any of its contents.
    1 point
  36. those are not real units.
    1 point
  37. vitor

    Simple Messages workflow?

    Shortcuts will have a command line tool and be scriptable via AppleScript, so there’s nothing that Alfred needs to do to integrate with it. Realistically, how many contacts do you want to do that for? You could set them up yourself in a List Filter Input, then open sms:<contact_phone_number_OR_imessage_email>&body=<url_encoded_message>. That’ll open the message to the correct person with your prepopulated message. Example: sms:+46771793336&body=Hello%20random%20Swede!&. Tip: Always end the body with a &, to keep the punctuation marks.
    1 point
  38. harvey

    Flush DNS 10.6 -> 12.0

    Look at me! I'm early this year 🤪 Based on early searches, macOS 12 Monterey seems to use the same commands as macOS 11. Update the code to more clearly identify new OS' going forward and add support for macOS 12. New Packal Link: https://www.packal.org/workflow/flush-dns-106-120 Enjoy!
    1 point
  39. Morinehtar

    LastPass Accelerator

    Hi @manishie@gordonswaby Answer is in a bug in Lastpass CLI Here is basically the Github thread with the fix : https://github.com/lastpass/lastpass-cli/issues/604#issuecomment-844210600 Long story short : A workaround is to: 1. Open `Account Settings` in your browser (`Open My Vault` → `Account Settings`) 2. Press `Show Advanced Settings` 3. Set `General → Security → Password Iterations` to *exactly* `100100` LastPass will ask for your Master password and re-encrypt your vault. After that using `lpass` *should* work again. It helped me, hopefully it will help you (and others) too
    1 point
  40. Andrew

    Hotkey support

    I've just added in a ⇧⌘F shortcut in preferences which will highlight the Workflows filter field. I've actually made this global within the preferences too, so if you're not in the workflow tab, the shortcut will switch to the workflows tab, then focus the field. This will be in the next release.
    1 point
  41. @Ben Hull Take a look at the Script Filter workflow object which is designed for this purpose: https://www.alfredapp.com/help/workflows/inputs/script-filter/ The JSON format to show items in Alfred is defined here: https://www.alfredapp.com/help/workflows/inputs/script-filter/json/ Your script would be responsible for caching the data from your website, but you could select the option to have Alfred filter the results, which would leave you with simply loading the JSON, saving it locally, and then returning it to Alfred. Cheers, Andrew
    1 point
  42. katie

    Skimmer: PDF actions for Skim

    Thank you for the working script for exporting to markdown, @dfay. I'm wondering how difficult it would be to change this script for my own workflow. My goal is the following: Export into separate markdown files for each annotation. Ideally, these would be named automatically, for e.g., using the first 5 words of the contents, and placed in a folder named by the pdf name. Include the name of the colour of the highlight from Skim in each file (so it can be used to filter/process them). Edit: ✓ I couldn't figure out how to capture and name colours, but, I've managed the important part of indicating the colour of the highlight. As a plus, it should work with any used colour, not just set values. Include the link back to the PDF in each file. I know it was mentioned that this could be done by adding back in that functionality, but I could not figure this out. This one is just a perk though. Edit: ✓ Essentially, I am in this situation because my original workflow relied on a script that did exactly this. It would take a Skim pdf, export all annotations as separate files to DevonThink (but to .rtf, not markdown). I cannot find it anywhere - all links to it are broken (e.g. https://wippp.com/home/writing-workflows-processing-annotations-all-roads-lead-to-skim). My workflow was based around the idea the zettelkasten information management - so preparing little chunks of information that can be further processed and filtered and summarized, etc. From what I can tell, this could potentially be accomplished in two ways: (1) starting with this script for exporting to markdown, but instead parsing the clipboard to create different files and adding colour information (2) using a Skim export template, which can apparently identify colour (https://sourceforge.net/p/skim-app/feature-requests/1417/) and include a link to specific annotations in the pdf (https://sourceforge.net/p/skim-app/feature-requests/1520/). I found a template that exports to markdown (https://github.com/semicolonsnet/skim-templates), but I'm really new to this and couldn't get it to function. It's not clear to me whether separate files can be created. For those of you who are experts in coding - would you be familiar enough with this to know which approach (applescript or template) I should attempt? And how future-proof would it be? I'm kicking myself for getting used to this workflow. Once it broke, I procrastinated on trying to fix it and now I have a bunch of read pdf's that are just stuck. I'm not sure if I should give up on this entirely and just figure out a new academic workflow. I'm definitely not expecting or asking anyone to do this for me. I'm just hoping that someone might have an opinion on which approach would be more sustainable and a worthwhile use of my time to pursue. Or if there's another simpler approach that would work best. I've also found that it is surprisingly difficult to try to change my method of reading/highlighting, so I'm open to hearing about other people's academic workflows! Thank you for reading! Katie Edit: I forgot to mention that I found a similar script (https://github.com/achamess/skim_to_md_script) but it relies on the user having Papers3.app and I use BibDesk. Update (2021-01-09): You can add a link back to the specific page in Skim, by adding the following in the appropriate sections of the script: set tURL to "<$skimURL?><$skimURL/></$skimURL?>" -- not sure if only the middle tag is necessary but it works like this set skimURL to format n using template tURL -- convert template text to actual url -- Then add " [" & correctedPage & "](" & skimURL & ")" to format as a markdown link under each type of supported highlight Update (2021-03-06 ): You can add the colour of the highlight, by adding the following in the appropriate sections of the script: set tColour to "<$color.hexString?><$color.hexString/></$color.hexString?>" -- then add this to the export part: set noteString to noteString & "> " & "<mark style=\"background-color: " & noteColour & "\">" & formattedNote & "</mark>" & " (p. [" & correctedPage & "](" & skimURL & "))" & LF & LF
    1 point
  43. @Stephen_C in some cases, Alfred is correctly listed in the macOS Accessibility preferences, but the underlying permission isn't set. If you quit Alfred and remove him from macOS Prefs > Security & Privacy > Privacy > Accessibility, then re-add him, then restart, this should allow him to simulate key combos again.
    1 point
  44. Here’s a simple Workflow to do what you want. It’s pretty bare, in that it doesn’t show the volume’s name or size (it’s a quick semi-hackish solution which parses the human-readable output of diskutil instead of the plist), but unless you have a ton of external disks connected at once, it should fulfil your immediate needs.
    1 point
  45. Overview Workflow to display recent Finder files and folders featuring: 5 default categories 2 custom categories Favorites, including a file action Keywords and hotkeys for Favorites and all categories apart Interaction with Open/Save dialogs and Finder Go To Folder Preview, reveal, open or use Alfred file actions Usage Show Alfred and type the keyword rec: You can also use the category keyword if you prefer to access the recent files directly, without an initial menu: Now: keyword now Folders: keyword fol Applications: keyword apps Documents: keyword docs Downloads: keyword dow Custom Category 1: keyword c1 Custom Category 2: keyword c2 Favorites: keyword fav In addition, there is a hotkey for the keyword rec, Favorites and all categories apart. Note that all keywords, as well as the hotkeys, can be changed (go to Alfred Preferences > Workflows). Finally, once inside a category you have the following actions: Return key: open the file or folder Command key: reveal the file or folder in Finder Option key: pass the file/older path to an open/save dialog or Finder window Control key: add/remove an item to/from Favorites Shift key: preview (Quick Look) the file or folder Custom Categories You can set up to two custom categories: Show Alfred and type the keyword recpref Select a category to configure and press return key Type an unique category name with at least 3 characters Type one or more (separated by comma) file types e.g.: com.adobe.pdf,public.plain-text To find a file type you can use Alfred Metadata Analyzer. To remove a custom category press command key while highlighting one of them in recpref. Favorites All files or folders set as a favorite item will remain in the list no matter how old they are. To add an item to Favorites just highlight a file or folder, hold control key and press return key. To remove an item go to Favorites, highlight an item, hold control key and press return key. You can also add items utilizing Alfred File Action (accepts multiple files). Note that Favorites has also its own keyword (fav) and hotkey. Interacting with Open/Save Dialog or Finder You can pass a recent file or folder path, or an item in Favorites, to an open/save dialog or even the current Finder window to go to that folder: when an open/save dialog is displayed type the keyword rec or any other category keyword find an item (a file or folder or an item from Favorites), highlight it, hold option key and press return key wait a bit so the workflow can load and paste the item path Default Folder The workflow remembers the last path used per application. To use the feature just type the keyword df when an open/save dialog is displayed. If the workflow was never used for the application, or the path does not exist anymore, then the keyword rec will be automatically triggered so you can select a path from a file or folder. There is also a hotkey to make things even faster. Make sure to give the feature time to process because e.g. if you hold keyboard keys way too long then the feature may not work as expected. What’s new 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.3 beta 2 (removed Alfred 3 references) Release date: 12 Jul 2020 Requires Alfred 4 Download Version 4.2 Release date: 19 Jun 2016 Requires Alfred 3 Download
    1 point
  46. Github: https://github.com/bmunoz89/alfred-wf-bluetooth-manager 🚨 Supports Alfred 3 & 4 🚨 💻 Installation 👾 Run this command on a terminal: brew install blueutil Now download ⏬ the last release and open it 😎. That's all!! 📸 Screenshots 🔑 Keywords bset: Set the default device bc: Connect the default device bd: Disconnect the default device bcs: Select the device you would like to connect to bds: Select the device you would like to disconnect to bm: Allows to turn bluetooth on and off, and the same for updates of the workflow Besides that, you can add shortcuts into the preferences 👌🏽
    1 point
  47. That’s a nice stopgap solution, but I think I’d still like to see it embedded as an option right in the list filter action. Alfred obviously has fuzzy matching capabilities that are highly performant, hopefully it wouldn’t be too difficult to extend it into List Filters. Thanks for pointing this workflow out, though; I’ll probably use it for a couple lists until there’s some sort of resolution to this request.
    1 point
  48. Good job deanishe! This is a good help and would be cool to see as an info in Alfred like the script editor itself(maybe in gray or so). Maybe its even possible that Alfred handles this itself, even tho i know it just runs the script. Like it would check for vars and use the associated call to get the var. However, now its documented and can be done this way! Good job
    1 point
  49. DrLulz

    Skimmer: PDF actions for Skim

    Sure thing. The default favorite colors in Skim, after a fresh install, are equal to the colors shown above (in smarg19's 2.0 update post), so if you like those colors then there is nothing that needs to be done to use this script. However, some might find Skim's default highlight colors too strong, where the color distracts from the text. If the user chooses to change these colors (shown below), then the script I posted will use these colors instead (no Applescript changes needed unless you want to change a bullet style, or the orange and red text for favorite colors 5 and 6; see below). The leftmost color is the main bullet, The 2nd color is the first indented bullet, The 3rd color is the second indentation, The 4th color is text under said bullets The 5th color I use for Pharmacology, so I have a pill as a bullet, and have colored the text orange The 6th color I use for lecture tips, so there is a red exclamation point for a bullet, and red text after export. (see my earlier post) These are the favorite colors: If you don't see this color bar then: If you want to change these Favorite Colors then: If you want to change the exported text color seen in Evernote (Has nothing to do with Skim's favorite colors) then change this line in the script: (Note: This is what I use for Pharmacology) --Highlight Note HTML FAV5 property highlight5_prefix : "<p>" property highlight5_title_wrap_front : "<strong>" property highlight5_title_wrap_back : "</strong>" property highlight5_body_wrap_front : "<font color=\"" property highlight5_body_text_color : "#CC7A29" ---------------- CHANGE THIS property highlight5_end_quote : "\">" property highlight5_body_wrap_back : "</font> " property highlight5_page_wrap_front : "" property highlight5_page_abbr : "" property highlight5_page_wrap_back : "" If you want to change the bullets then change these in the script: hope that clarifies. I've said it before, and probably will again, but thank you x1000 smarg19 for this amazing utility. EDIT: I just remembered that if a person is reading this then they're more than likely using Alfred (duh!), so if a person wishes to speed up the switching between favorite colors then set up a workflow with 6 hotkeys (I use ⌥+1, ⌥+2, ⌥+3, ⌥+Q, ⌥+W, ⌥+E; ⌥ = Option) linked to 6 run scripts (osascript). The Applescript is below. Applescript: tell application "Skim" activate set rgba to favorite colors set theColor to item 1 of rgba ------ CHANGE THE 1 TO 2 FOR THE SECOND FAVORITE COLOR, ETC, ETC if (count of documents) is 0 then return end if set theTool to the tool of the front document if theTool is highlight note tool then set default note colors to {highlight note color:theColor} else beep end if end tell
    1 point
×
×
  • Create New...