Jump to content

deanishe

Member
  • Posts

    8,759
  • Joined

  • Last visited

  • Days Won

    522

Everything posted by deanishe

  1. It's not really Spotlight's fault. Spotlight doesn't index ~/Library by default because that's where application's keep their private data. It's up to the individual application to tell macOS which of their data it should index. Similarly, it's up to virtual drives like WD MyCloud to make the data available for indexing. Spotlight doesn't work (properly) with Google Drive or WD MyCloud because Google and WD have half-arsed the Mac implementations of their clients.
  2. Yeah, this happens sometimes. Unfortunately, there's no proper API to ask macOS which program has turned on secure text entry, so Alfred tries to figure it out based on other clues, but this isn't always reliable. When it can't reliably identify the problematic app, all you can do is log out and back in, or reboot. Secure text entry is an important security API, and macOS will only allow it to be turned off by the program that turned it on. As such, problems with secure entry can only be properly solved by the developers of the app that's not turning it off when it should.
  3. You can, but it seems a bit excessive to make Alfred a dependency to run such a short AppleScript.
  4. Hi @aryan9600, welcome to the forum. It sounds like you may not have actually configured Alfred to search where those files are. Please see the documentation: https://www.alfredapp.com/help/features/default-results/ https://www.alfredapp.com/help/features/file-search/
  5. This script returns a Markdown link to the selected email: (* Returns a Markdown link to the first selected Apple Mail message *) tell application "Mail" set _msgs to selected messages of message viewer 0 if (_msgs is not equal to missing value) then set _msg to first item of _msgs set _subject to subject of _msg set _msgID to do shell script "/usr/bin/python -c 'import sys, urllib; print urllib.quote(sys.argv[1])' " & (message id of _msg) set _url to "message://%3C" & (_msgID) & "%3E" return "[" & _subject & "](" & _url & ")" end if end tell You can see the commands and objects Mail's AppleScript API understands in Script Editor. Open Script Editor, then under File > Open Dictionary…, select Mail. The documentation seems clear enough to me. What are you having difficulty with?
  6. In any normal case, no. But nobody else can say how it will perform with your Google Drive.
  7. It isn't that Spotlight doesn't look in ~/Library, it's that the folder isn't indexed by macOS to begin with. As Alfred uses the same index as Spotlight, it can't find anything in there, either. Your Search Scope defines where Alfred looks, but it doesn't change what gets indexed in the first place. The purpose of Vítor's workflow is to index and search directories that the system doesn't. It doesn't care about your Search Scope because anything that belongs in there is, by definition, out of scope. You have to configure the workflow's search paths separately. It's all in the instructions. Don't make it index more folders than strictly necessary.
  8. Yes. It uses Word to do the conversion. Have you looked at Automator, then? You can't run workflows from a context menu.
  9. If it's only a couple of snippets, using Snippet Triggers as Chris suggests would work well. If it's a lot of snippets, you'll probably find it easier to change the keywords to something that isn't so easy to get wrong.
  10. This workflow lists/filters all PDFs in ~/Downloads. The script can easily be edited to search a different directory or for a different file extension. Note: This isn't the same as a File Filter. It only finds files that are children of the target folder. It doesn't search subdirectories.
  11. There’s a space in the path, which means you have to quote it. You have probably been writing to /Users/MYUSERNAME/Library/Mobile The correct command would be: echo -n "example" >> "/Users/MYUSERNAME/Library/Mobile Documents/com~apple~CloudDocs/Wordlist/EN.txt" Note that those are regular quotes, not smart quotes, like in your post. You can't quote with smart quotes in a shell. The workflow's kinda broken. Can you describe in more detail what you want to happen? You want to add what to a file? Current selection? Clipboard contents? And you want a Hotkey to add the text followed by a tab, and another Hotkey to add the text followed by a newline?
  12. There's nothing wrong with the files. How exactly are you downloading and importing them?
  13. That's the normal way to do it. You store the result of the first Script Filter in a variable for later. Look at the "Simple To-Do List" example workflow included with Alfred.
  14. You're gonna need to tell us which one if you want an answer instead of a guess.
  15. Use echo -n "this is the text" >> /path/to/the/file.txt in bash or zsh. -n tells echo not to add a newline, and >> means “add to the end of the file” (> means “replace contents of file”). Yes. It is absolutely standard behaviour to add a newline in such situations. Pretty much everything works that way by default. The idea is that the next task can just go right ahead and add to the file without having to check its contents first. You also want to end every line with a newline; you just don't want to insert the whole line at once. Personally, I'd consider re-working your workflow so it does insert the whole line at once. That way you won't be able to accidentally insert "word<tab>word<tab>" and screw up the file. Please don't use screenshots as a way to show us a workflow. Upload the workflow somewhere (iCloud?) and post a link to it instead.
  16. I'm glad Alfred's working for you now. I find it a bit worrisome that turning compatibility mode on worked for one of you, while turning it off worked for the other.
  17. Does anyone even know what this "CPS" is? I've found some similar reports for other apps, but no solutions The other affected applications also seem to use non-focusing windows. Has anyone tried setting Alfred's Focusing to "Compatibility Mode" in Alfred Preferences > Appearance > Options?
  18. Hotkeys natively support per-app activation. You could use the focused-app variable to fire an empty snippet when the wrong app is focused. Using Snippet Triggers instead of regular snippets quickly becomes very tedious, however. Then why don't you choose a better snippet keyword that you don't keep typing by mistake?
  19. That's normal macOS behaviour. The focussed widget stays focussed until you click on (or otherwise activate) a different widget that can take focus.
  20. You can make Alfred's default search faster and more stable by removing some items and putting them behind a keyword instead. If you're trying to access a workflow's results, give it a unique keyword that won't match anything else. Starting keywords with a full stop or comma is a good trick.
  21. No, sorry. I've been using my own custom config for a decade. Anything I say regarding default shortcuts is very likely to be wrong. Intermittent issues are a nightmare to figure out. Sorry, I don't know what else to suggest. Perhaps @Vero has an idea?
  22. Just typing in a keyword doesn't restrict search results to that workflow. It's impossible to say without any actual data, but the most likely explanation is that the files do indeed match your search query. As far as Alfred is concerned, the "correct" result is the one you keep actioning for that search query. Whenever you choose the wrong result, you're teaching Alfred to prefer it. Sounds like normal behaviour, tbh. The "workaround" is to check the right thing is selected before you action it.
×
×
  • Create New...