Jump to content

sepulchra

Member
  • Posts

    390
  • Joined

  • Last visited

  • Days Won

    25

Posts posted by sepulchra

  1. oh yeah that is a very easy solution!!!

     

    I'm curious though -- is there a simple way to take that very simple shell script that will output multiple lines and have them in a script filter and output multiple lines within the alfred window? Just for learning purposes.

  2. 2 hours ago, vitor said:

    You don’t need the export PATHAlfred already includes those. You also shouldn’t need those variable assignments, they don’t look like they’re doing anything. In short, the last line should be enough for everything.

     

    I didn't realize that. I learn something new everyday! And even just a few years ago I don't think I would have been able to build something like this thanks in part to this forum.

     

    2 hours ago, vitor said:


    I’m wondering why you split the flow of objects into a new line halfway, as opposed to just continuing to the right. Doesn’t make a difference, I’m just curious if it was to make the screenshot easier to understand see or if there’s another reason.

     

    Not for the screen shot, but I like to be able to see the entire flow at a glance if possible. I have 2 x 27" displays and I like to see it all on one. If don't have to scroll, I choose not to scroll!!!!

     

  3. It is a little slow as I have some delays from debugging that I want to play with removing but this is the back end if you are curious:


    image.thumb.png.40301e013f57404e05add4b8c57ea0f3.png

     

    image.thumb.png.1559945abd3e4d23b3af7044ddf7af72.png

     

    na is the CLI tool that brett terpstra wrote to write to taskpaper files but i also mirrored it in plain text files using alfred's write to text file -- which is also useful

  4. Thanks. I think that is above my brute force and limited skillset but happy to learn if you have the time.

     

    I managed to get a little further down the road yesterday but it is not an efficient solution. I thought it would also help me clarify what I’m up to. Pro Tools, the digital audio workstation I use, opens a marker window on the timeline by typing (all on the number pad)

     

    decimal point

    marker number

    enter key

     

    so typing

    . 10 enter

    opens up marker number ten.

     

    I have a separate script that runs after the marker window is open and copies two text fields, saves them to variables, and then writes them to a taskpaper file or text file.

     

    My less than efficient solution last night was using snippets to replace the actual number with the numpad key code, separate them with commas, pass them through the split utility and then pass them as arguments to an osacript:

    on run argv
      set number1 to item 1 of argv
      set number2 to item 2 of argv
      set number3 to item 3 of argv
    tell application "System Events"
       key code 65
       key code number1
       key code number2
       key code number3
       key code 76
    end tell
    end run

     

    As you can see I tried this with numerical values that were 3 digits. I couldn’t figure out how to get it working with digits that could be 1 digit up to 5 digits in length. the above script fails unless the number is 3 digits long.

     

  5. @vitor i hope you can forgive me pinging you and for reopening this, but I remember why I asked this question in the first place. I’ve been puzzling over building a workflow where I need to be able send keys from the numpad. but in this workflow the user has to have the option of inputting a numerical value from 0 - 32000. I was inspired by your Tapback Message workflow where the key combo gets overwritten by the input but as far as I can tell, there is no way to have the number in the variable be a numpad number.

     

    My workaround for this might be having an osascript send key codes, but I would have to have the user type and string of numbers 0 - 32000 and have them replaced by their respective keycodes. There is where I’m getting a little stuck. I could build a list filter where 0 - 9, and replaced with their respective key codes as their argument. I guess I don’t know how to account for the possibility of the input possibly being a 1 digit number, 2 digit number, 3 digit number, 4 digit number, or 5 digit number.  I guess I would have to build the list filter with all 32000 permutations and have them be comma separated and use the split argument utility?

     

    Is there a way to send them as multiple arguments where as a script could just send a keycode for 1 key all the way up to 5 keys? My lack of experience is halting me here but maybe not my imagination I guess.

     

    And for context — i have a shell script with multiple variables that would run right after these keycodes are sent.

     

    I hope i’m making sense.

  6. I often search the universal action list -- I commonly use the Email action -- but my brain fails me and often types mail instead of email. Is there a way to implement a fuzzy search function that will find "mail" or say the parts of a phrase of a universal action? If I type "tex" it does find actions that have Text in the name and if I type "Mark" it will find "Markdown" but not if I type "down"

     

     

     

  7. I use "?" to search workflow hotkeys often but suddenly "?" no longer finds any keywords or hotkeys related to workflows. It is still searches all the other preferences, snippets and themes but is no longer finding workflows. Is there a setting I may have disabled?

     

    I'm on alfred 5.1.4 and 13.6.3

     

     

×
×
  • Create New...