Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 09/24/2021 in all areas

  1. Yeah, this keeps biting me, too, and it's rather irritating. The Universal Action list just doesn't behave like Alfred is supposed to (in my mind). I'm not sure there's a lot of value in manual ordering. Re-ordering results based on your usage is kinda Alfred's thing, and it makes a manually-ordered list somewhat pointless. To my mind, the issue is rather that the algorithm Alfred currently uses to sort Actions is different to the way normal search works. We all train ourselves to consistently use the same search terms for the same items, and in return Alfred consistently ensures that the same item is always the top result for a given query. But the Actions list deviates from that behaviour, making it inherently somewhat tricky to use.
    2 points
  2. This works perfectly. Thank you so much! Beer on the way!
    2 points
  3. Andrew’s suggestion won’t get you the result you’re after; they’re different things. You can’t have the Clipboard History meshed with the default results—they’re different windows with different goals—mixing them would be a mess. You can either make your two Hotkeys more obvious (e.g. if invoking Alfred is ⌥+Space, make Clipboard History ⌥+C) or invoke Alfred → type c → scroll down to Show the Clipboard / Snippet Viewer → Press ↵. Do that a few times in a row and you’ll train Alfred to put that option at the top. Then you’ll just have to open the default Alfred window and press c↵ to get to the Clipboard History.
    2 points
  4. You have yourself to thank for an exemplary request for help. It was clear, polite, complete (provided the Workflow), and revealed effort. With reports like this, it’s a pleasure to try to help.
    2 points
  5. Hi, Is there a way to sort universal actions list? I don't like using the option "sort actions by last used per type". Cheers, Andre
    1 point
  6. An interim Workflow to bridge the gap until (if) Google Drives fixes the situation of files not being indexable by Spotlight (and thus Alfred). Before your first use, run :gdlaunchd and wait for the notification. The more files you have, the longer the wait. It can take several minutes to finish building the cache. A macOS launchd agent will be loaded to do it daily (running :gdlaunchd again removes it). To rebuild the cache on demand, do :gdrebuildcache. When done, call gd and type to filter the contents of your Google Drive. The Workflow Environment Variables have defaults which will work for most. You only have to mess with them if you have an atypical setup. google_drive_path: The location of Google Drive on your file system. Can take multiple paths separated by commas.ignore_list: A comma-separated list of keywords to ignore. If any appears in a path, it will not be saved to your cache.result_limit: How many entries to show in Alfred. Download | Source
    1 point
  7. Thanks a lot for clarifying, and also for the new release. I installed everything on the mac of my colleague and after a while the index was built up and everything works fine for him. For me, on my mac, after 24h it was not working, the index seems not to built up correctly. But now I get it to work, this is how I did it: Make sure the index agent is disabled Deleted your workflow Restarted by Mac Reinstalled your workflow new enabled the index agent after a while the index was built up, everything works 🎉 Thanks a lot for your work @vitor!!
    1 point
  8. @p3av8r Welcome to the forum Could you please test text expansion in TextEdit specifically? When you try to expand your snippets in TextEdit, what behaviour do you see exactly? Does the issue of partial expansion / pasting the current clipboard happen only in a particular app, browser window, etc? If you can narrow down the exact scenario where the issue happens, you may find that it's in a non-native app or browser that's being weighted down by plugins that slow it down. You can try slowing down key events: https://www.alfredapp.com/help/troubleshooting/snippets/#partial Let me know how you get on. Cheers, Vero
    1 point
  9. Yes. You’re running the commands multiple times and making them trample each other.
    1 point
  10. vitor

    Packal is down

    Welcome @LSDog, Packal’s development ceased years ago and has been officially recommended against for just as long (and for that reason). Note that website was always a third-party resource. The official venue to share Workflows is these forums. Alfred itself is alive and well and under active development. Similarly, new Workflows are created and released all the time. Further yet, there are plenty of other third-party venues to share Workflows, such as Alfred’s subreddit and Pacmax. If you need any of Packal’s Workflows, they should still be accessible from the GitHub repo it used. Though I’ll reinforce these forums are the official place to share Workflows.
    1 point
  11. (Just a quick note in case anyone's experiencing a similar problem) The latest update to the Adguard app (2.6.0.1041) seems to be affecting search suggestions. I'm getting the error 'certificate signed by unknown authority' for both Google and Wikipedia searches (haven't tried others). Worked around this by adding an exception for Alfred in Adguard preferences (Preferences > Network > Applications... > uncheck Alfred from the 'Filtered Applications' list).
    1 point
  12. Im using Alfred to display a bunch of context sensitive modal menus. My Alfred mode remaps keypad numbers to include the command modifier, so I can execute Alfred list items with a single keystroke. I also temporarily remap some close-by keys to page down and page up so I can quickly move through any longer Alfred modals
    1 point
  13. Hi currently I toggle alfred through menu bar, one needs to click the menu bar Alfred icon, move mouse down and then click "toggle alfred". This is three steps. Would it be possible to have an option to make it one step. So the option would be click the menu bar Alfred icon, which toggle Alfred. Spotlight have this one-step behaviour. Further, it is be nice to allow configuration, for example, configure the click to toggle clipboard. I use clipboard extensively, and some clipboard manager have a menu bar icon, once clicked, will toggle the clipboard manager float window. Alfred by far have the best clipboard manager, so I would really hope Alfred can have this function. Note: I understand I can toggle default window/clipboard through keyboard shortcut. I am an IT professional, throughout the years, I thought I only need keyboard and terminal. But then I start to develop Carpal tunnel syndrome. That's when I start to diversify my input method, mouse/trackpad/dictation. So it would be nice I can toggle alfred default window/clipboard within one menu bar click. Thank you!
    1 point
  14. @teottdel Are you aware that the Clipboard History has its own hotkey combo? If you use Cmd + Alt + C, you can pop up the Clipboard Viewer, choose your clipboard item either by using the down arrow to find the right recent one, or by typing a few letters of the clip you're looking for. When you press Enter, Alfred will paste it to the frontmost app. That's the most efficient way to use Clipboard History Cheers, Vero
    1 point
  15. @Mr Pennyworth might have some ideas: he's written a couple of applications that need to know what Alfred's doing. You might be able to use the notification API Andrew added for him, which would be absolutely ideal. The only thing I can think of is an AppleScript that launches Alfred, then waits for it to close: -- Do stuff here to enter "Alfred mode" -- Open Alfred tell application id "com.runningwithcrayons.Alfred" to search "" tell application "System Events" tell application process "Alfred" -- Wait for Alfred window to appear repeat while (count windows) = 0 delay 0.1 end repeat log "Alfred open" -- Wait for Alfred window to disappear repeat while (count windows) > 0 delay 0.1 end repeat -- Exit "Alfred mode" here log "Alfred closed" end tell end tell You could do your setup and teardown in the script or before it runs and after it exits.
    1 point
  16. Alan He

    keyword alias

    Sometimes I want to invoke multiple different keywords, but the execution processing logic is exactly the same at present. I have to copy it. If logic modify, I have to modify twice. It's better if Alfred support keyword alias. To be honest, this requirement may not be used much, but I still want to mention it and see your opinions.
    1 point
  17. Alfred uses word-starts-with semantics: my or file should also match this is my file.doc. To search within words, prepend an asterisk to the search term: *his will match this as well as history.
    1 point
  18. If you post your workflow I will take a look for you.
    1 point
  19. Making angular searches via javascript was an interesting problem to solve with javascript so I made a workflow for you @Jasondm007 that searches the board decisions site. You can download the workflow if you want. It's a modified version of the one @vitor made earlier in this thread.
    1 point
  20. Hi @maindoor, welcome to the forum. That can't be done with a Custom Web Search, I'm afraid: they don't allow you to edit the query. You need to create a workflow and use a Replace utility to alter the query. Here's an example. It's not very useful because it does exactly what you said (searches mywebsite.com).
    1 point
  21. Thanks for this. It was about 25 mins to index 1.33 TB, comprised of 111467 files.
    1 point
  22. Doing so would require a tradeoff, like a larger cache or slower cache build. Not worth it to make the Workflow worse for everyone for a niche request.
    1 point
  23. They are. To automate macOS, you need to be able to call its automation APIs. Apple has added official support for doing that to AppleScript and JXA, while very few non-Apple languages are able to call those APIs.
    1 point
  24. Apple created AppleScript; they’re the only ones who support it. Its purpose is to allow the automation of macOS apps, which have to implement a dictionary of what’s possible. AppleScript is a weird language and dissimilar to most. It tries to be English with the goal of being easy for non-programmers to use. It fails miserably because it’s just as unforgiving of wrong syntax as other programming languages. AppleScript was neither adopted by non-programmers nor is it easy to pick up by programmers. Enter JavaScript, a very popular language, as a way to try to bring more programmers to use these features. It is more pleasant to use but is incomplete and Apple gutted its automation division so either is unlikely to ever be updated. We’re left with two languages with access to the same interfaces, mostly overlapping in features but with a few idiosyncrasies in each. There is nothing special about these languages. It’s the access they’re given that matters. It’s not “JavaScript”, it’s “JavaScript for Automation” (“JXA” for short). So no, you can’t use Bash to do the same these can but it has nothing to do with the language. You should avoid them unless you’re trying to do something only they can.
    1 point
  25. No. Quotes are used to insert string (text) literals into source code. Without quotes, it's not text, it's code, and the interpreter will try (and fail) to execute it.
    1 point
  26. There are a couple of problems I can see. Firstly, you're setting your workflow variable incorrectly: That's the raw value. Don't use quotation marks in there unless the value includes quotation marks. The major problem is that AppleScript doesn’t let you use a variable in a tell clause the way you’re doing. The variable’s only available at runtime, but AS needs to know the name of the application before then at compile time to look up any app-specific terms you’re using (e.g. DoScript). AFAIK, there's no way to use app-specific terms in AppleScript without hardcoding the application name in the script somewhere. You should either rewrite your script in JXA (where Application(someVar) works perfectly well) or insert the application name into the AppleScript some other way (i.e. “generate” the AppleScript).
    1 point
  27. deanishe

    Alfred Markdown Notes

    Might be worth talking to Notebooks' developers about that. There's no real consensus, but many Markdown parsers require headings to have a space after the # sign, so #this is rendered as normal text and # this is a heading.
    1 point
  28. This is the thread for the workflow itself, which links to Vitor's Github, so you'll always find the latest there
    1 point
  29. Done, but I added sort_recent flag in Workflow settings. If set to True search results will be sorted based on recent visits otherwise on number of visits.
    1 point
  30. You’re looking at the File Buffer.
    1 point
  31. Hello, I use the dictionary feature a lot, and I think it would be great to have the option to view the full definition right in Alfred, instead of a single line which rarely ever provides useful insights. This makes me open the Dictionary app every time, which is very inefficient. This is the default Spotlight behavior (phrases using the word and etymology are also included, and it's really useful) and it works well. Lacona does this too. Thanks!
    1 point
  32. I don't think you're getting that far. The way you're trying to join the URL is all wrong. It needs to be: set myVariable to "some string" & someVariable & "another string" You forgot the & signs. As regards URL-encoding: AppleScript can't do it. Unless you can find a function someone has written, you'll need to use a different language for that.
    1 point
  33. You’re looking for File Filters.
    1 point
  34. 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!
    1 point
  35. 1 point
  36. I spent the weekend making eight Monterey-inspired themes that are designed to be used with the system Accent Colors based on this request from @hootle. 👔 Download here My intention is to fork @AlexMartinFR's Mojave Alfred Accented Themes workflow to make it possible to change Alfred's theme from command palette. I looked into this process and it's more involved than I had hoped due to the obscurity of Apple's APIs for changing both the system appearance (easier) and the AppleHighlightColor (hard). If anyone wants to help me with this, let me know! Preview: Here's a quick video with instructions for syncing your Alfred theme with your System Appearance:
    1 point
  37. Have you installed the workflow using npm or directly on Alfred with .workflow file? If it was the latest you might have to open the workflow folder on terminal and run `npm install` Let me know if that helps, so then I can update the instructions on github - otherwise we might need some more details.
    1 point
  38. @toughToes Welcome to the forum You can save a clipboard entry as a snippet by showing the Clipboard Viewer, selecting the clipboard item you want and pressing Cmd + S. Cheers, Vero
    1 point
  39. @agilefalcon If you've never synced your preferences, and use Time Machine, it should be very straightforward First pop Time Machine open, and go to the following location in your user directory: ~/Library/Application Support/Alfredl/ Within this folder, you'll find the Alfred.alfredpreferences file. Quit Alfred and restore this file. When you relaunch Alfred, you may need to re-enter your Powerpack license details (drop us an email if you need help finding your Powerpack license details - though it sounds like you've got that in hand) and your preferences will be reinstated. With regards to your Powerpack being disabled, did you use an App Cleaner / uninstaller / app zapper or any other app that claims to clear caches and make your Mac faster? These apps can be overzealous and remove files that are essential. If that's the case, please make sure that you don't allow these to touch Alfred's files, as it could have been the source of the issue. Let me know how you get on
    1 point
  40. Thanks for sharing this. I hope that a new API for automation (including note open, exporting etc) will come out to enable this workflow again..
    1 point
  41. Things for Alfred Interact with Things 3 using Alfred. Download and Installation Download the workflow file from GitHub releases and install it by double-clicking on Things.alfredworklow. Usage Use the keyword todo to show Things lists and action any of them for displaying the corresponding to-dos. Action a to-do to display it in the Things UI. Try the modifier keys either in lists or in to-dos to know other actions. Contribute To report a bug or request a feature, please create an issue or submit a pull request on GitHub. Credits This workflow relies on qWorkflow library by Ursan Razvan and OneUpdater by Vítor Galvão. The to-do icon is created by Jason Zigrino and released under the Creative Commons BY-NC-ND 3.0 license. License Things workflow code is released under the MIT License.
    1 point
  42. To everyone who still has interest in this workflow: I am sorry that it no longer works. I no longer need or use the workflow. I developed it when I was in graduate school and writing all the time. I have since left academia and haven't really needed this (or my other workflows) in years. However, I do still love this little workflow and would love to get it healthy again, but it has been years since I've fiddled with Alfred workflows. If anyone wants to become the new maintainer, I would be happy to spend a weekend afternoon or an evening pairing with someone to get it updated and fixed and then hand over the Github repo. Let me know if you are interested.
    1 point
  43. Hi @fncll, Just updated the workflow on GitHub: https://github.com/raguay/MyAlfred/blob/master/Alfred 3/TextSoapCleaners.alfredworkflow It's now future proofed for Alfred and TextSoap. Just set the TextSoap application name in the environment variables and the scripts will call the right application. I changed all the AppleScripts to JXA (JavaScript for Automation). Seems to be working for me. Let me know.
    1 point
  44. +1. This is the way most similar software works, and makes more sense in terms of any potential downsides of a large history. A significantly higher limit for plain text items than for images also seems reasonable and useful.
    1 point
  45. If I'm not mistaken, the raw snippets themselves are in synclocation/Alfred/Alfred.alfredpreferences/snippets/ cf. https://github.com/derickfay/import-alfred-snippets Presumably the .alfdb file is generated from those for purposes of speed etc.
    1 point
  46. ~/Library/Application Support/Alfred 3/Databases/snippets.alfdb
    1 point
  47. Instead of setting up snippets, you could setup a workflow which simply has keywords linked to clipboard outputs, then you have full control over what is typed and what is output... i.e. you could have 'foo' which pastes some text. Cheers, Andrew
    1 point
  48. If you go to Alfred Preferences, click on the Workflows icon, then at the bottom of the list of workflows, click the "+" sign, then choose Templates > Clipboard > Paste as plain text from hotkey
    1 point
  49. Alfred can do on its own this if you're prepared to treat percentages as the fractions they are. Type 295 * 0.0235 and Alfred will do the business. The default in Alfred's calculator is to use the OS X locale-specific separator, so if your user account is set to German language and formats, 295 * 0,0235 should give you the desired result.
    1 point
  50. I found my workflows stored in ~/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/ They will be randomly-named folders, not files You may also want to copy these folders to your new system: ~/Library/Application Support/Alfred 2/Workflow Data ~/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data These are, respectively, the cache and data folders used by your workflows. Cheers
    1 point
×
×
  • Create New...