Jump to content

fncll

Member
  • Posts

    26
  • Joined

  • Last visited

Posts posted by fncll

  1. Thanks, @vitor, but your workflow exhibits the same issue. If I run the test.sh script embedded from the workflow from the command line like this:

     

    ./test.sh 5 "foo bar"

     

    Then the result is written to the file as intended, like this:

     

    19:52 [[🧠]] [[🔷🔷🔷🔷🔷]] foo bar

     

    The issue is that when I use the same input in Alfred:

     

    m 5 "foo bar"

     

    using your revised workflow (or my original), this is written:

     

    19:53 [[🧠]] [[]]

     

    Sorry if I'm being obtuse. I'm (obviously) not a programmer!

  2. My apologies. The code I posted IS the workflow, but for the Keyword action that leads into it with argument required. I assumed the greyed out arguments area in my screenshot was because it didn't have an option to choose between argument types, not that it takes no arguments at all.

     

    Based on information here, I'd already tried your approach (using bash, not zsh), and have now tried using zsh as you suggest with the same (lack of) result. I've shared the workflow, using zsh here: https://www.dropbox.com/s/mbcpkzfp2vwqq7z/mood.alfredworkflow?dl=0

     

    I'm running Alfred 4.3.4 on OSX 11.4 with no system changes. As noted, test.sh works fine from the command line.

     

  3. I am trying to create a workflow that work with two arguments. I am calling an external script (using the "run script" action; see screenshot) with the code below. It works fine from the command line but appears to pass no arguments to the script in Alfred..the workflow completes but nothing is added to the file. What am I doing wrong?

     

    #!/usr/local/bin/bash
    
    SCALE=$1
    DESCRIPTION=$2
    UPDATE=""
    
    CURRENTDATE=`date +"%Y_%m_%d"`
    CURRENTTIME=`date +"%H:%M"`
    
    UPDATE+="$CURRENTTIME [[🧠]] [["
    
    for (( i = 1; i <= SCALE; ++i )); do
            UPDATE+="🔷"
    done
    
    UPDATE+="]] $DESCRIPTION"
    
    
    printf "\n- $UPDATE" >> "/Users/chris/Library/Mobile Documents/iCloud~md~obsidian/Documents/bujo/journals/${CURRENTDATE}.md"

     

    CleanShot 2021-06-29 at 13.46.16@2x.png

  4. I figured out the problem: it is a bug/problem with this Pinboard workflow: http://www.packal.org/workflow/pinboard

     

    The description says it works with Firefox but the README, and an issue report on GitHub, indicates a problem with these symptoms...though it appears there should be a workaround, that doesn't seem to be the case currently.

     

    All that said, it would be nice to be able to disable Large Text so this keyboard shortcut wasn't monopolized (or have an option to choose another key combo in Alfred)...

  5. I'll try the 2nd user account test. In the meantime:

     

    • It only happens when Firefox is the active window when I invoke Alfred
    • It only happens when certain text is entered, particularly the letter p or, if type fast enough to get more characters in before large text is triggered, any word starting with p

     

    Even stranger, once it happens, the next time I invoke alfred, it seems that *any* text I enter has this happen ... and then the next time I invoke Alfred, all is fine (except the dreaded letter p :)

  6. I have a strange problem. If Firefox is the active window when I invoke Alfred, then entering the letter p and waiting a fraction of a second causes the large text feature to activate and then get dismissed (along with Alfred). This happens with no other apps running, it happens consistently with Firefox in the foreground, and it happens even with Firefox in "safe mode" with all add-ons, etc. disabled.

     

    I am running OS X Mojave 10.14.3, Alfred v3.8 [959] and Firefox 65.0  

     

    Any thoughts on how I can troubleshoot this?

  7. I am using Alfred 2.7.1, Evernote 6.0.11, and workflow 8.991. When I type the search keyword, for example,  "ens" or "ent" or "enu", as soon as I type the last letter it opens Evernote. I'm not able to actually enter a search term. What am I doing wrong?

     

    Same setup and this is happening *sometimes* to me as well.

  8. How can I assign a hotkey to an existing workflow? What I mean is, I have a pocket workflow that takes an argument of a URL and drops it into pocket. I'd like to be able to highlight a URL, press the hotkey, and have it drop that URL into pocket using (I think this is what I want!) the existing workflow.

  9. How difficult is it to create a workflow that wouyld allow me to search and select from the clipboard history and then perform the specified action? The nice thing about the other method was that the action was abstract and could be performed on any history item. I'm assuming it can be done, but it doesn't look easy (to me). I'll have to dig around in it.

     

    I still think it would be nice to have an actions option built into the clipboard :)

  10. Another feature I miss from ClipMenu: the ability to define custom actions. In ClipMenu I could use Javascript---and perhaps different languages, I never tried---to manipulate a snippet before posting. For example, I had actions to convert a snippet to a comma separate list, to convert case, etc. When pasting with a specific keypress or key/mouse combo I could select the action to be performed on the text before it was pasted. That would be great to have in Alfred!

     

    c

×
×
  • Create New...