Jump to content

luckman212

Member
  • Posts

    412
  • Joined

  • Last visited

  • Days Won

    16

Posts posted by luckman212

  1. @gmile When you run those commands from your shell, the PATH will have been inherited from whatever environment / rc / profile scripts were sourced. This could be things like .bashrc, .bash_profile, etc. Not sure what fish uses but you get the idea. Alfred won't run those, so either manually set a PATH environment variable that includes /usr/local/bin or adjust your script's shebang to point to the absolute path to elixir instead of relying on env... 
    #!/usr/local/bin/elixir

     

  2. Has anything changed since 2016?

     

    I recently learned about globally adding to launchd's PATH using e.g.

     

    sudo launchctl config user path "$(brew --prefix)/bin:${PATH}"

     

    But Alfred as of 4.6.1-1274 still seems to ignore this?

    Any way to get him to honor the custom PATH env var?

     

    edit: gets a bit weirder... actually Alfred DOES honor this, but not upon first launch after login (auto-start). Only after you quit Alfred and then re-launch him, will he then inherit the new PATH. Strange, I guess maybe there's some race condition happening during login where Alfred launches somehow before launchd has a chance to update things?

  3. 24 minutes ago, Vero said:

    @luckman212 What do you have listed in your browser list? Is that Launcher included as a possible browser by macOS?

     

    Here's a screenshot (no, FS-UAE is not in the list)

    image.png.e086922a470d092874d674a225d7e7e4.png

     

    24 minutes ago, Vero said:

     

    If you add a new Default Web Search object, does it show a specific browser icon or not?

     

    Yes, I tried in a fresh new workflow, it shows that same erroneous icon...

     

    24 minutes ago, Vero said:

    Could you pop an email to info@ with your workflow, and include your Diagnostics file?

     

    Surely, I just did that. (btw: the workflow is just the default "Google Suggest" workflow from Examples, v1.4)

     

    • macOS 12.0.1
    • Alfred 4.6.1 [1273]

     

    I noticed this harmless little bug:

     

    In the workflow editor, a random(?) icon is shown to represent the default system browser. Here it is picking up the icon from an app called "FS-UAE Launcher" on my system:

    image.png.b5a858b9992e1380c4109579ab9290a3.png

     

    image.thumb.png.10cd18123be8a00c69e0943a03761b7e.png

     

    If you double click the object, the correct browser/icon is shown:

    image.png.cec50cff91d741a9745368e662e9874f.png

     

    I tried re-setting my Default Browser prefs in System Preferences > General, quitting & relaunching Alfred but it didn't change. Regardless, the correct browser does actually open, so this is purely cosmetic.

     

  4. @Vero Thanks for you help on this. I eventually tracked this down to what appears to be a macOS bug. I was setting the Finder comment (and they were appearing in the Get Info box, as shown in my earlier screenshots!) but somehow, the metadata was not actually being populated. Your tip on using the Alfred Metadata Tool was really helpful in identifying this. I ended up using osxmetadata to set the comment (combined with sudo), and that seemed to work.

     

    sudo osxmetadata --set com.apple.metadata:kMDItemFinderComment 'alfred:ignore' -- "/Applications/Utilities/Adobe Creative Cloud/ACC/Creative Cloud Helper.app"

     

    Once I sorted that, all working fine now! ☺️

  5. Thanks @Vero for looking at it. Yes these particular apps are in /Applications/Utilities/xxx and in actuality the "real" path may be /System/Volumes/Data/Applications/Utilities/xxx because of APFS obfuscation. Regardless, the "alfred:ignore" trick DOES work for me on files in /Applications proper. Just not this Utilities subfolder for some odd reason. That's the mysterious part, and why I thought it might belong in /Bugs.

  6. Hi,

     

    • macOS Monterey 12.0.1
    • Alfred 4.6.1 [1272]

     

    I have a problem with some apps like Adobe that litter the disk with dozens of useless "apps", cluttering my search results. If I type "creative" in Alfred for example, here's what it looks like:

     

    screen.thumb.png.d1fe64ae63415b65302daf6e1924f951.png

     

    I'm trying to hide everything there except "Creative Cloud.app". The simplest way I know of is to add "alfred:ignore" to the Finder comments. This has worked for me in the past, but does not seem to work here.

     

    11081475_screen1.thumb.png.5f0b62186a3999806a7fab2662f21e44.png

     

    I've tried:

    • quitting/relaunching Alfred
    • using the "reload" keyword
    • clicking the "Clear Application Cache" button in Settings > Advanced

     

    I know about adding the folder to Spotlight's ignore list, but I'd like to know why the alfred:ignore method isn't working. Any tips?

     

  7. It annoyed me that LiveText activated when I didn't want it (e.g. when trying to draw a marquee in Preview.app) so I came up with this quick little toggler for the feature. Only tested on macOS 12.0.1 on an M1 Mac Mini. Please report any problems!

     

    https://github.com/luckman212/alfredworkflows/blob/master/LiveText.alfredworkflow

     

    image.thumb.png.1400d68474c82959c70dde05d66077ee.png

     

    image.thumb.png.a5738f2624d7dc96c2f8c705b1ddf457.png

  8. 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!"

     

  9. I'm having a problem on ONE of my Macs (M1 Mini) where results are showing up that I don't want (from ~/Library subfolders, see example screenshot).

     

    • I've tried rebuilding Alfred's metadata cache but it didn't resolve this.
    • Strangely, on my Intel Macbook Air this problem doesn't manifest.
    • Both systems are running the same version of MacOS (11.5.1) and Alfred (4.5.1252) and are sharing synced preferences.

     

    image.thumb.png.e20842d78020247560b9893c8e77c518.png

     

    image.thumb.png.71c0a4f538316a830d8a827ebf3d62aa.png

  10. I was surprised this wasn't possible, but today I wanted to drag 2 items I had collected in Alfred's buffer to another app that can receive file drops. I found out that it only seems to allow dragging 1 file at a time from the buffer area. 

     

    Am I missing something or is there any way to do this?  Yes I know about "actioning all items" to send buffer contents to a workflow but I specifically need to drag them in this case.

     

    image.png.639c76f16daf373cca43132e47b1fc63.png

     

    (Alfred 4.5 b1252 by the way...)

  11. This is great. Glad to see so much discussion and careful thought around this issue. Thanks @deanishe for your explanation of the subprocess / PATH issue. And thanks to @vitor and of course @Andrew as well.

     

    I agree with the concept of a per-workflow: [x] Enable Homebrew support checkbox that sets  PATH  and  HOMEBREW_PREFIX . That seems like a really low-impact way to provide this functionality without affecting anything for existing users or people who chose not to use it.

     

    2 hours ago, deanishe said:

    Alfred doesn’t stop you from adding a PATH variable, but I think it ignores anything you set.

     

    Actually it doesn't ignore it—I've run into trouble once or twice by overriding  PATH  and forgetting to include a necessary dir.

     

    Example:

    image.png.43b17e3f32b2668b300a8b479d523ff3.png

    image.png.d2e05662860cf559b1a5cfcc858ca5ff.png

     

    (Script:   echo $PATH )

     

    image.thumb.png.351b8ce536232122c80bad67757e8b46.png

     

×
×
  • Create New...