Jump to content

Floating.Point

Member
  • Posts

    124
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Floating.Point

  1. I also hate Pinterest pollution in my search results and use a great little TamperMonkey script to block it (along with any other domain) from search results. Although not specifically Alfred related (hopefully thats's okay?), I just thought I'd share it as another option that I find pretty useful. https://github.com/shosatojp/google_search_blocker
  2. When browsing in Alfred, if I come across a folder that has a custom icon assigned to it in Finder, Alfred shows the hidden icon file within the structure. Hoping you might consider tuning Alfred such that he doesn't show these files?
  3. yeah that's a shame, well thank you anyway guys– I appreciate your taking the time to have a look
  4. Hey guys, hoping someone might know some wizardry to get this working. I'm trying to build an Alfred Universal Action to open an image into MacOS's built-in Markup tool. This proves to be kind of tricky as the markup tool isn't a normal app. I really thought I'd gotten there by assigning a system shortcut to "Markup" inside System Preferences / Keyboard / Shortcuts / App Shortcuts. But sadly this only works if the right click menu is open when the shortcut key is pressed. Does anyone have any ideas about how this might be achieved?
  5. Hoping to add a bit of friendly pressure to this ancient feature request, would be really nice if Alfred knew how to drag multiple files from the buffer, please
  6. Hey guys, I tried using this today but there is a HUGE delay between evoking the command and returning any results. It sits there with "KpassLoader - Please loading database…" for about 10 seconds before showing anything, should I expect it to be faster?
  7. I work around this with the following method: (this is admittedly a bit advanced, and I have not upgraded to Big Sur as yet, so can't comment on compatibility) https://apple.stackexchange.com/a/388201 Stick with MacOS for a while… like anything new, it takes a while getting used to it. Once I got used to it and learned to "speak its language", we have been best friends! (Although Alfred is essential in that relationship.)
  8. This workflow includes browsing recent documents of frontmost app, which you can assign a hotkey: https://github.com/mpco/AlfredWorkflow-Recent-Documents Edit... oh it just occurred to me that you probably want this functionality from within your initial Alfred search for the app in question, rather than when the app is already open, in which case sorry my solution is not helpful, sorry
  9. Thanks @deanishe for the heads up with NSAppleScript. I went through my Workflows and replaced any existing NSAppleScript actions to Run Script. and @Andrew Oh dear... how silly I feel right now 🤦‍♂️. Of course there is a shortcut for this extremely handy function.
  10. dfay, thank you so much! "AppleScript Dictionaries" the missing link
  11. Novice disclaimer: I'm very new to this so apologies if I misunderstand concepts or use incorrect terms Hello Today I used some AppleScript to interface back into Alfred. I've built a hotkey workflow to quickly launch the "Browse Previous Path" feature: on alfred_script(q) tell application "Alfred" to search "Previous" end alfred_script I have a feeling the Key Combo output is not required, and that I could tell Alfred to action the search via the AppleScript. But I don't really understand how AppleScript interfaces with Alfred… Basically, where can I find out what can be done to Alfred via AppleScript? All my search results are mostly about what Alfred does for AppleScript, rather than what AppleScript does for Alfred. If anyone could give me a little primer about how this works? or nudge me in the right direction?
  12. Hello, I've been using Alfred for many years, to launch apps and trigger a handful of useful workflows, it's so great! I've only recently embraced Alfred's true power and started using it to actually navigate and manage all my files – I imagine in some time Alfred could replace Finder (almost) completely. Anyway, one thing I can't seem to work out (and I'm hoping is possible) is to get Alfred to show me a recent list of files or folders that have been opened or otherwise actioned through Alfred. My intuition is that I've somehow missed this and it will be a facepalm moment discovering how to do so. Or maybe this just isn't in there by default? in which case does anyone know how this might be achieved? Any help would be lovely Thanks
  13. Ok wow, thank you deanishe. It's no wonder you're carrying the badge "community hero"! This works perfectly. Thank you so much for taking the time to not only put this together, but to also make it so clear as to what needs to be edited to get it working. The inclusion of the warning after the settings is great I hope you have a great day
  14. Hi deanishe, Thanks for jumping in, I appreciate your help. I just tested and unfortunately Obsidian app doesn't work when the the obsidian.css file is symlinked Would you be willing to help work this out?
  15. Oh wait, I'm an idiot 🤦‍♂️ Seems I hacked away an important part of the script: cat So now I've got this: on alfred_script(q) try do shell script "cd '/Users/nathan/Dropbox/Maintenance/Notes/'; cat obsidian1.css > obsidian.css" on error do shell script "cd '/Users/nathan/Dropbox/Maintenance/Notes/'; cat obsidian2.css > obsidian.css" end try end alfred_script So this is doing something now. But it's not toggling between the 2 states. It will successfully copy the contents of obsidian1.css into obsidian.css, but once it's in that state, the workflow won't change it to the contents of obsidian2.css
  16. Hi dfay, Thanks for volunteering some time to help me out with this, I really appreciate it. The original workflow from the thread you linked is no longer available, so I wasn't 100% sure where to plug in your code. I've stripped out the unnecessary features from your code ( (hopefully correctly?) and plugged this into a Run NSAppleScript node like so: on alfred_script(q) try do shell script "cd '/Users/nathan/Dropbox/Maintenance/Notes/'; obsidian1.css > obsidian.css" on error do shell script "cd '/Users/nathan/Dropbox/Maintenance/Notes/'; obsidian2.css > obsidian.css" end try end alfred_script Unfortunately this throws an error. Here's the debug console: [14:47:51.984] Toggle Obsidian's .css[Hotkey] Processing complete [14:47:51.986] Toggle Obsidian's .css[Hotkey] Passing output '' to Run NSAppleScript [14:47:52.012] ERROR: Toggle Obsidian's .css[Run NSAppleScript] { NSAppleScriptErrorAppName = "Alfred 4"; NSAppleScriptErrorBriefMessage = "sh: obsidian2.css: command not found"; NSAppleScriptErrorMessage = "sh: obsidian2.css: command not found"; NSAppleScriptErrorNumber = 127; NSAppleScriptErrorRange = "NSRange: {124, 101}"; } Would you mind taking a look?
  17. Oh wow I just did this for a few of my shortcuts and hooley dooley do those precious saved milliseconds feel good! Thanks for the intel!
  18. What I need help building: Ok so I have a .css file on disk and I'd like to toggle the value of a specific class through an Alfred workflow. Basically I want Alfred to toggle between these 2 states: .markdown-source-view { font-family: 'Space Mono', monospace; } .markdown-source-view { font-family: 'Inter', Sans-Serif; } Hoping someone could help out, I have no idea how best to tackle such a thing? What I will use it for (if you're interested): I recently started using Obsidian for knowledge management (it's amazing). It allows for theming through custom css. I like to switch on monospace editing sometimes and have been manually switching between obsidian.css files to achieve this. An Alfred workflow would save so much time here.
  19. This is a great workflow. Thanks for all the work, I will use this daily!
  20. Hi there, I'm Wondering if it would be possible to extend this workflow to paste the raw data of a selected gist into the frontmost application? Thanks, Nathan.
×
×
  • Create New...