Jump to content

vitor

Staff
  • Posts

    8,572
  • Joined

  • Last visited

  • Days Won

    715

Posts posted by vitor

  1. 16 minutes ago, Alan He said:

    I think because of ~/Library is hidden folder. 

     

    So the question now becomes how to search for files in hidden folders.


    You’re jumping to conclusions. Hidden directories simply have a set attribute to make them invisible in the Finder, it affects nothing else.

     

    While it is possible the hidden flag could play a role—e.g. if Alfred deliberately chose to ignore those—you can’t extrapolate from a single data point.

     

    The next step isn’t to figure out how to search in hidden directories, but if hidden directories play a role at all. Try it: chflags hidden PATH_HERE (do the same command with nohidden to revert). If Alfred finds files inside that directory (which it should, I just tried it), then that’s not the problem.

  2. Making Keywords context sensitive is trickier than for Hotkeys. Invoking Alfred and typing only not to see some results could be confusing and lead to unnecessary bug reports. Prioritising Keywords depending on context might be best, but may not fit with Alfred’s learning.


    Right now, there’s two ways to achieve what you want:


    The first is to have multiple Keywords with the same text. At the time, you chose the relevant one (a good icon will help there).


    The other requires a couple of objects:

    1. Make a Keyword Input.
    2. Connect it to a Run Script Action with Language set to /bin/bash and Script set to osascript -e 'tell application "System Events" to return name of first process whose frontmost is true' | tr -d '\n'. This will return the name of the frontmost app.
    3. Connect that to a Conditional Utility and set is equal to to the names of the apps you want to affect.
    4. Then connect those to the appropriate actions.


    If your Keyword takes input, you may have to add an Argument and Variables Utility in there to save it.

  3. 4 hours ago, Zenn said:

    I don't think line-height should be considered an intrinsic property of the font, as it is part of CSS as well as iOS font styling.

     

    I should’ve used the correct terminology before. Line height is formally known as leading. It controls the distance between lines, not the font’s height (which is what influences the caret). That you shouldn’t touch and you can’t mess with it with CSS unless you use scale to distort the characters. Font height is the purview of the typeface designer and has been an intrinsic part of typography from the times we manually arranged metal blocks and rolled them with ink.

     

    But I agree your caret looks abnormally large. You’re using the System font, right? I tested it on my machine and the caret doesn’t look as tall as yours. Could you share your theme?

  4. Welcome @Ahess97,

     

    In bash you access variables with ${var}, not {var}. Also, you’re calling bc but doing nothing with it, as if you were calling it interactively in a Terminal. This being a script, you need to give your data as the input to bc. Use <<< to feed data, or < to feed a file. Meaning what you want is:


    bc -l <<< "(((${nps11}+${nps10})-(${nps7}+${nps6}+${nps5}+${nps4}+${nps3}+${nps2}+${nps1}))/(${nps11}+${nps10}+${nps9}+${nps8}+${nps7}+${nps6}+${nps5}+${nps4}+${nps3}+${nps2}+${nps1}))*100"
    

  5. 1 hour ago, deanishe said:

    If macOS can't contact the server to check the hash, it just lets the app run.

     

    I’m thinking something like (from the linked article):

     

    Quote

    When an Apple device can't connect to the network but you want to launch an app anyway, the notarization validation is supposed to "soft fail"—that is, your Apple device is supposed to recognize you're not online and allow the app to launch anyway. However, due to the nature of whatever happened today, calls to the server appeared to simply hang instead of soft-failing. This is possibly because everyone's device could still do a DNS lookup on ocsp.apple.com without any problems, leading the devices to believe that if they could do a DNS lookup, they should be able to connect to the OCSP service. So they tried—and timed out.

     

    Maybe Little Snitch isn’t outright blocking it, but leaving it “on hold” (like when asking you to approve or deny).

     

    2 hours ago, deanishe said:

    Then again, my info is Catalina vintage. It's possible they've made it even more stupid since then. 

     

    I think they have changed it, but I haven’t checked what’s the new behaviour.

  6. 10 hours ago, maxp said:

    I've tried eliminating the ones that are easy to quit (ie, not Little Snitch)


    Last year there was a global macOS app launch slowness caused by trouble accessing the notarization servers, so any app that can mess with network requests is what I’d check first.

     

    It being intermittent could be explained by the times it does the network check or not. It would also explain why a reboot doesn’t fix it but a new user account does.

  7. 32 minutes ago, maxp said:

    both in Alfred and generally.

     

    Then it is not caused by Alfred. What Alfred does in the situations you described is essentially tell macOS “hey, open this” and then it’s out of its hands. In other words, if launching things is slow in general they will also be slow to launch via Alfred because it’s the same mechanism.

     

    What other tools do you have running in the background (e.g. BetterTouchTool)?

     

    Have you tried creating a new user account and see if the slowness is there? If it is, the issue will be either with your macOS installation or the physical machine. But if the new user account behaves correctly, you’ll know the cause is something specific in your setup. Then you just start disabling things until it no longer happens (meaning you found the cause).

  8. Because it’s a frequently asked question, I’ll cover at the top that the workflow will not show windows which are hidden, minimised, or in another Desktop space. Those cannot be retrieved with current macOS APIs without a significant hit in performance, losing useful stacking order information, or showing a ton of irrelevant non-app windows. The workflow specifically moved away from those tradeoffs.

     

    The workflow continues to be maintained and will get relevant tweaks, but it should be considered feature complete.

     

    When reporting issues, please include your exact installed versions of:

    • The Workflow.
    • Alfred.
    • macOS.

    In addition to:

    • The debugger output. Perform the failing action, click “Copy” on the top right and paste it here.
    • Details on what you did, what happened, and what you expected to happen. A short video of the steps with the debugger open may help to find the problem faster.

    Thank you. Accurate and thorough information is crucial for a proper diagnosis which allows me to help you better.

  9. The debugger message you just posted explains the issue in plain English. The top post expands:
     

    On 4/17/2013 at 12:26 AM, vitor said:

    You will have to install yt-dlp yourself because it has dependencies which are impractical to fulfil on a clean macOS installation. The simplest way is to install Homebrew and brew install yt-dlp.


    Those instructions are also in the About section of the Workflow itself. It’s important to read those.

  10. 10 hours ago, eh5 said:

    is this an Apple AppleScript issue moving forward, Alfred interaction with macOS or something I don't understand?


    There’s nothing preventing future interaction between Alfred and AppleScript, no.

     

    10 hours ago, eh5 said:

    I saw a prompt saying this featured would be disabled and I need to contact the developer. I didn't capture the warning message, sorry.


    Screenshot it if it comes up again. Seeing the exact prompt or knowing the exact message it’s important to understand it.

×
×
  • Create New...