Jump to content

deanishe

Member
  • Posts

    8,759
  • Joined

  • Last visited

  • Days Won

    522

Everything posted by deanishe

  1. Not using Universal Actions, no. They only support plaintext input. You'll have to read the rich text from the clipboard yourself, and perhaps trigger the copy as well, depending on how you want it to work. I'm not sure how well modifying rich text with JavaScript will work, though. I'm not super familiar with the format, but it has some encoding quirks that might lead to errors if you're not careful, and a blank line in a rendered rich text file isn't a blank line in the source.
  2. Hi @nesdroc, welcome to the forum. In a word, no. Alfred uses the same system metadata index as Spotlight. If it isn't indexed by macOS, Alfred's search won't see it. That said, navigation mode still works on non-indexed files, and you can search the drive easily enough with a workflow. I think @vitor's Google Drive workflow can index and search any volume, not only your Google Drive.
  3. See here: https://www.alfredapp.com/help/workflows/inputs/file-filter/ Also, check out the example workflows built into Alfred.
  4. Mice are for humans, not computers. Do not try to make the computer use the user interface. What is the actual task without all the Excel nonsense? What goes in and what comes out?
  5. That's a ridiculous number. It's not surprising you have difficulty managing them.
  6. ObjC.import('AppKit'); function run(argv) { let pboard = $.NSPasteboard.generalPasteboard, path = argv[0], image = $.NSImage.alloc.initWithContentsOfFile(path); pboard.clearContents; if (!pboard.setDataForType(image.TIFFRepresentation, $.NSPasteboardTypeTIFF)) { throw new Error('failed to put image on pasteboard'); } }
  7. https://www.alfredforum.com/forum/5-alfred-feature-suggestions/ I'm not sure I'd bother, though. It's not a new suggestion.
  8. Hi @Bo A, welcome to the forum. It's not directly possible, no. Alfred's built-in batch select-then-open feature (the File Buffer) only works with files, not URLs, so you would have to either use a workflow to search & open your bookmarks, or export your bookmarks to .webloc or .url files, which will work with Alfred's File Buffer.
  9. No, it isn't. Those stats include Windows. They are utterly meaningless as far as Alfred users go. Everything you have said has already been addressed at length in this thread, so please read it.
  10. What odd way of formatting? Look, you need to be specific about what you're doing and what is/isn't happening. I can't tell you why something isn't pasting properly in an application when I have no idea what you're copying or which application you're pasting it into. It's a file path, not image data. They're not the same thing. If pasting an image into some graphics program is what you're trying to do, then you should have said so.
  11. No, it's perfectly possible. Google just keep making it more and more difficult to do. At this points, it's so much hassle to get a workflow connected to Google in the first place, it's no wonder hardly anybody writes them.
  12. You need to put a file:/// URL on the clipboard with data type public.file-url. Here is a script (Language = "/usr/bin/osascript (JavaScript)") that will put the first file passed in on the clipboard: ObjC.import('AppKit'); function run(argv) { const pboard = $.NSPasteboard.generalPasteboard; // convert first command-line argument to file:/// URL let url = $.NSURL.fileURLWithPath(argv[0]); // put URL on clipboard as "public.file-url" pboard.clearContents; if (!pboard.setStringForType(url.absoluteString, $.NSPasteboardTypeFileURL)) { throw new Error('failed to put URL on pasteboard'); } } Could you stop posting screenshots of Alfred and your workflows all the time? It's pointless.
  13. Provide a better description than "broken". If you just mean that you can't find anything, it can take several hours to rebuild the metadata database.
  14. That doesn't make much sense on the face of it. Alfred remembers your choices. You can easily train Alfred to trigger Play/Pause on "p".
  15. Wrong URL. You need the URL of search results that includes the search query. That's explained in the instructions in the Open URL dialog.
  16. No, it wouldn't. Custom searches work precisely the same way as the built-in ones. You just need to configure your Fallbacks properly under Features > Default Results.
  17. No. Two keywords require two Keyword elements. If you can’t remember your Keyword, you can enter ?play into Alfred and it should find the "Play/Pause" item and show the correct keyword.
  18. You enter the variable name in the box, not the value. The default is "focusedapp" You can get the variable in AppleScript with set _appname to (system attribute "focusedapp")
  19. No, this is how you're supposed to do it. Alfred's warnings about duplicate hotkeys aren't particularly smart and don't consider when or if they're active. Just because it's orange doesn't mean there's an actual problem. You have to check manually, I'm afraid. Not so. Alfred can set an environment variable to the bundle ID of the active application. You can use the variable in your script to run different code for different applications. Also, don't use Run NSAppleScript. Use Run Script with Language = "/usr/bin/osascript (AppleScript)" instead. Run NSAppleScript behaves weirdly, and nobody really knows why. It's best to avoid it if possible.
  20. I can't. Alfred doesn't show music by default. You have changed your configuration to include it, and I have no idea how. Perhaps you should turn off "Search all file types", or perhaps you added MP3 files to your extra types and should remove it again. Perhaps you need to remove the folder containing your music from your Search Scope. Perhaps you should turn off "Folders in Home". I don't know how you've configured Alfred, and I can't tell you how best to remove music without messing up your other settings.
  21. You are still seeing music because you're changing the wrong settings. That is File Search. These results are configured under File Search in Alfred Preferences. These are the settings you have been changing. That is Alfred’s default search. These results are configured under Default Results in Alfred Preferences. You have not changed these settings and that is why the results you’re seeing haven’t changed, either.
  22. Hi @dbrandt6, welcome to the forum. File Search is only triggered when you start your query with ' or (apostrophe or space). It sounds like you're performing a normal search. Those results are configured in Alfred Preferences > Features > Default Results, not in File Search.
  23. Most languages are pretty similar at the end of the day. bash/zsh and especially AppleScript are weird, but the others are all general-purpose languages and tend to work quite similarly to each other. Python is considered an excellent first language. You can write almost anything in it, and it's extremely popular with non-programmers (scientists, engineers), so there are a lot of docs and tutorials for beginners. Ruby is very similar to Python. Those would be the best two choices, imo. bash/zsh and JavaScript are kinda unavoidable because of their special roles. I'd generally recommend against learning JS first. It's super important to know, but the language and community are both a bit out there. JS also doesn't have a standard library, which is what gives a language most of its capabilities.
×
×
  • Create New...