Jump to content

xgo

Member
  • Posts

    24
  • Joined

  • Last visited

Posts posted by xgo

  1. Thanks for sharing! This is great

    I added this customization on my own version to have a cmd modifier and allow to open the HN discussion instead of the article news, for follow up.

     

        const items = {
          title: response.title,
          subtitle: [response.id, response.by, response.score].join(", "),
          arg: 'url' in response? response.url: HACKERNEWS_URL + response.id,
          mods: {
            cmd: {
                valid: true,
                arg: HACKERNEWS_URL + response.id,
                subtitle: 'Open HN link; ID = ' + response.id
            }
          }
        };

     

  2. On 3/22/2022 at 4:06 PM, giovanni said:

    yes I also looked into this a while ago and was not able to find a way to to interact programmatically with OneDrive.

    Adding my "I looked into it" +1 - there's some PowerAutomate automations that can be run in the cloud that can generate sharing links but those don't really map well to macOS's finder integration of OneDrive localized files. 

     

    Microsoft is doing a lot of changes to OneDrive for mac right now (with their migration to Files On-Demand) so I'm guessing any flexible and stable API implementation that can be run locally through Alfred would be a long ways away.

  3. Microsoft's OneDrive recently changed their sync location, now making this obligatory through a user's library vs. directly in a home directory:

    Inside the new Files On-Demand Experience on macOS 

     

    The new path to "get started" in OneDrive's personal directory is:

    ~/Library/CloudStorage/OneDrive-Personal

     

    Even worse, for corporate synched shared libraries, 

    ~/CloudStorage/OneDrive-SharedLibraries-<CompanyName>

     

    These paths are super long and prevent to see the "meat" of paths when searching for files in Alfred:

    1537409327_Xnip2022-01-27_10-47-26.jpg2022-01-2710-51-52.png.c6fb310981e02344843ed283ead2bf89.png

     

    It would be great to be able to set an alias or shortcut in the returned path to abstract that absolute "start point" of ~/Library/CloudStorage to allow for more visibility into the relevant path information for the search results.

     

    For example, an Alfred setting that replaces a user-configurable path (e.g."~/CloudStorage/OneDrive-SharedLibraries-<CompanyName>") with a user configurable text (e.g. "Sharepoint Shared"). This would not modify actions like 'copy path' but simply the navigation through files. 

     

    Another potential solution to this problem would be to have a setting or a keyboard modifier to switch from showing "start of path" to "end of path" while displaying Alfred file search results ie. instead of 

    ~/Library/CloudStorage/OneDrive-SharedLibraries-<CompanyName>/Folder1/... (last part can't be seen)

    show

    (first part is hidden) .../Folder1/<Rest of path>

  4. I have a lot of static data structures at work that I often need to refer to. One of which is a hierarchy (similar to a file tree) that I have in spreadsheet form. High level abstraction:

    Xnip2022-01-24_14-39-24.jpg.3465949ff5123f17f39d2ffe5af9a60e.jpg

     

    I'd like to use Alfred to fuzzy search anywhere along that tree and get the capacity to navigate up or down, similar to File Search's navigation mode. Mostly to get the information, maybe copy the final path. Eg. Search for Release2, navigate one level down, select Attribute4 and copy the full path (Product1>Release2>Attribute4) to clipboard.

     

    I'm first trying to see if there's an easy way to do this "out there" or a recommend path for implementing this - before I start using the few tools I have and do something inefficient and inelegant. Is Alfred set up in a good way to take action on relatively simple data sets?

  5. @Mingwei thanks for the quick turnaround. Can confirm that 1.0.2 works as expected. If I trump it back with latest (w/ blocklist feature) I get back into the problems.

     

    Here's the output from my -af call - it's probably a decent test case since I have so many things connected to my work laptop (monitor w/ speakers, USB speakers, Jabra headset)

    {"name": "USB2.0 Device", "type": "input", "id": "95", "uid": "AppleUSBAudioEngine:Generic:USB2.0 Device:20170726905959:2"}
    {"name": "ThinkPad Thunderbolt 3 Dock USB Audio", "type": "input", "id": "86", "uid": "AppleUSBAudioEngine:Lenovo:ThinkPad Thunderbolt 3 Dock USB Audio:000000000000:1"}
    {"name": "Jabra Link 370", "type": "input", "id": "111", "uid": "AppleUSBAudioEngine:Unknown Manufacturer:Jabra Link 370:70BF9247FC7A:2"}
    {"name": "Logitech BRIO", "type": "input", "id": "103", "uid": "AppleUSBAudioEngine:Unknown Manufacturer:Logitech BRIO:A34C02B9:4"}
    {"name": "MacBook Pro Microphone", "type": "input", "id": "81", "uid": "BuiltInMicrophoneDevice"}
    {"name": "PHL 346B1C", "type": "output", "id": "115", "uid": "AppleGFXHDAEngineOutputDP:f803:0:{0C41-093E-000070EB}"}
    {"name": "USB2.0 Device", "type": "output", "id": "99", "uid": "AppleUSBAudioEngine:Generic:USB2.0 Device:20170726905959:1"}
    {"name": "ThinkPad Thunderbolt 3 Dock USB Audio", "type": "output", "id": "90", "uid": "AppleUSBAudioEngine:Lenovo:ThinkPad Thunderbolt 3 Dock USB Audio:000000000000:2"}
    {"name": "Jabra Link 370", "type": "output", "id": "107", "uid": "AppleUSBAudioEngine:Unknown Manufacturer:Jabra Link 370:70BF9247FC7A:1"}
    {"name": "MacBook Pro Speakers", "type": "output", "id": "74", "uid": "BuiltInSpeakerDevice"}
    

     

    By the way, Github release says 1.1.0 but Alfred lists as 1.0.3 - might be worth aligning those!

     

    Lastly, switchaudio doesn't seem to support airplay outputs, but there's been a few discussions on how to enable it, even on another Alfred workflow. I personally would not use this, but might be worth keeping in a backlog

    https://github.com/deweller/switchaudio-osx/issues/9

  6. This looks super useful, I just found myself needing a workflow like this and thought of your recent post and installed.

    I do have switchaudio installed (today, v1.1.0 for Monterey) and this workflow "disappears" a split second after the Loading prompt appear. Debugging shows an empty error without much context - any thoughts?

     

    See screenshot of the erroring Script Filter:

    image.png.ab55136f84027b785417dad3c2cc52d0.png

     

    I tried looking into the sound_filter cpp source but I have no clue what I'm doing and can't get anything to compile.

  7. can you access ffprobe or ffmpeg from terminal normally? I remember running into this a while back, but it's not a workflow issue mostly a way that the library isn't able to being loaded. Was getting a similar error from terminal under a default session.

     

    might be a full homebrew issue:

    https://stackoverflow.com/questions/50657490/ffmpeg-macos-install-reason-image-not-found/50657591

  8. On 11/19/2020 at 11:03 AM, matthew.nyc said:

    I have a suspicion that this Alfred + Big Sur fail might be somehow related to Apple's Spotlight search service.

     

    After manually removing all traces and prefs and completely reinstalling it worked fine yesterday. This morning, after boot Alfred was once again dead on launch and "not responding" in the Activity Monitor.

     

    • When Alfred is failing on launch, I noticed that Spotlight is also failing (not auto-completing or listing results). It's the 'fallback launch solution" when Alfred is not around 😉.
    • I disabled the auto-launch of Alfred to see if Spotlight would at least work.
    • After reboot, Spotlight was not working. Turns out it was re-indexing.(not sure why).
    • Once Spotlight was done indexing I was able to start Alfred and it seems to be working ok.

    I just experienced a crash (so rare these days) on Big Sur 11.2 (20D64), and upon restarting Alfred could not launch without 'not responding' in Activity Monitor. Spotlight was also not able to display results.

     

    Thanks for this suggestion, I ended up similarly solving through

    1. force quitting Alfred (through Activity Monitor)

    2. change some of the Spotlight 'privacy' settings (I removed a folder I had recently added to the list of 'things I don't want Alfred to index')

    3. wait for Spotlight to finish re-indexing (i.e. wait until Spotlight actually returns results)

    4. launch Alfred. Things work

  9. I get this error when attempting to use sf > login 

    Quote

     

    My guess is my company's sfdc admin is not allowing local connections through OAUTH, which is a shame. I'm escalating internally but wanted to at least write this down in the thread in case anyone else receives similar errors. Workaround is a 'dumb' search not through alfred by leveraging another SFDC worflow: 

     

  10. On 9/15/2020 at 3:25 PM, KD987 said:

    This is simple, but, a workflow that opens links to your most commonly used Microsoft teams meetings is useful. It is not dynamic, unfortunately, but it does help so save a few seconds for your regular recurring meetings. You can pull those links from the teams meeting invites.

    Interesting workaround. Are the blacked out options your meeting 'names' that you can use alfred to parse? 

     

    I have installed Meeter (https://trymeeter.com/) and it works perfectly - my hotkey just makes me join whatever meeting I have at the moment, directly in Teams (the prompt asking about devices and 'click to join'). I've seen a few conflicts with all day events 'hiding' normal meetings, but for 90% of my usecases it works well.

     

  11. 38 minutes ago, dfay said:

    ummm it might be the spelling of your query term...

    see my post edit; appears we basically posted at the same time. I think what I'm looking for is 'mid-string' matching. E.g. "Colombia", "lomb", "Ec", "uador" would all match to "1906 Ecuador–Colombia earthquake"

     

    edit: ahh Colombia, yes. :D same issue!

  12. I spent about 2 days a few months back creating effectively a (crappier) version of this to search databases of my company's part numbers and attributes, as that saves me >1min every time I need to find anything. That was before discovering this workflow, which could have saved me so much time! 

     

    One note: the Packal version is not the latest (0.2.2 vs. GitHub's 0.3.2). This confused me when I was reading this thread about 'MATCH' after downloading the workflow from Packal. 

     

    One question, and I will look into it and try to answer it myself. The search/matching doesn't work on words that are following a "-". For example, if I search for 'Columbia' (edit) 'Colombia' in the earthquake demo, the workflow doesn't return the "1906 Ecuador–Colombia earthquake" item. Only if I search for Ecuador will it show up.

     

    I think this has to do with the MATCH format, I'll read into it and edit my post if I find the answer

    edit: it's not just dash, it's basically any matching that isn't from the start of the word. The workflow I initially leveraged to create my custom solution was deanishe's Excel Demo, which leverages fuzzy matching and that just works out of the box. I am not sure if there's an easy way to set up that kind of midstring matching with the format. My usecase would require e.g. for me to type "cuad" and Alfred to return "1906 Ecuador–Colombia earthquake"

  13. I'm bumping this because I had this exact same thought yesterday and started thinking about implementation options. Amazing to see this has been done before

     

    e.g. in Chrome, all PDFs that I want to download have a save prompt with default location "downloads" – using this shortcut I can now easily download into the needed directory without having to open a finder window and drag-and-drop its icon into the save prompt. "sheet" trigger works flawlessly.

     

    6y thanks, @Tyler Eich!

     

    EDIT: sometimes I seem to get a double entry i.e. the filepath is entered in the cmd-shift-g prompt then entered as file name then saved immediately. I bruteforce fixed this by adding a slight delay before the 'return' key is captured

    tell sheet 1
    	keystroke parentFolder
    	delay 0.1
    	keystroke return
    end tell

     

  14. I just started leveraging file actions more seriously (a lot of value in using 'move to' on selected files using a hotkey). I am irked by the constant notifications showing me moved files:

    image.png.dfb1aa28f7f966bb1977a0264f180835.png

     

    Now, I do have some notifications that I need (or leverage for debug) in some custom workflows, so the solution isn't as easy as 'just disable notifications entirely' as suggested/solved here. Is there any way to implement a customization of notification per category? For instance, I'd like to remove all file action notifications, but retain OS-level notifs for workflows installed.

     

    Thanks,

    Xavier

×
×
  • Create New...