Jump to content

OmarKN

Member
  • Posts

    100
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by OmarKN

  1. Excellent!

    Long time ago I had set up 'sn' as Snippet Keyword, but never used it. Alfred has so much more…
     

    >Using Cmd + S will open the snippet, ready to edit, in the Snippets preferences.

    For me this is CMD + ENTER.


    thank you. /
    with best regards,
    Omar KN, Stockholm, Sweden

  2. Sorry, but this is not satisfactory.

    I have 15 Collections of snippets with about 15 snippets each (yes I'm an avid user of snippets 🙂) ≈ 220 snippets.

    This would be be my feature request: **Search all snippets from a search window.**

     

    The viewer is just opening the list of collections.

  3. Hey and good day, 2 points

    1.
    I have npm installed

    bash-3.2$ npm -v

    10.2.4

    but then it can't be found:

    bash-3.2$ npm install --global alfred-search-omnifocus

    bash: npm: command not found

    v

    Earlier at the end of the homebrew installation, I could do the first recommended command

    ==> Next steps:

    - Run these two commands in your terminal to add Homebrew to your PATH:

        (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/okn/.zprofile

        eval "$(/opt/homebrew/bin/brew shellenv)"

    v

    this one ok: 

    echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"'

    v

    but did not know what to do/ how to write/ with this command:

     

    >> /Users/okn/.zprofile

        eval "$(/opt/homebrew/bin/brew shellenv)"

    v

    No .zprofile, they are 2 steps?

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    2.
    macos Ventura 13.4 
    Search OmniFocus from Alfred - V2.1.3

    Unsuccessful to open "Open in Terminal"

     

    /okn
    - - Still struggling --

  4. On 1/17/2024 at 12:17 PM, Vero said:


    Just now reinstalled the workflow. Behaving exactly as before, I’m curious what the problem is.

    Including 3 screenshots + the debug log.

    [10:22:30.100] Save 'ur note[Keyword] Processing complete
    [10:22:30.100] Save 'ur note[Keyword] Passing output 'text1 after reinstall' to Automation Task
    [10:22:30.100] Save 'ur note[Automation Task] Running task 'Trim Line Whitespace' with arguments (
        "text1 after reinstall"
    )
    [10:22:30.146] Save 'ur note[Automation Task] Processing complete
    [10:22:30.147] Save 'ur note[Automation Task] Passing output 'text1 after reinstall' to Arg and Vars
    [10:22:30.148] Save 'ur note[Arg and Vars] Processing complete
    [10:22:30.148] Save 'ur note[Arg and Vars] Passing output 'text1 after reinstall' to Automation Task
    [10:22:30.148] Save 'ur note[Automation Task] Running task 'Does Path Exist?' with arguments (
        "text1 after reinstall"
    )
    [10:22:30.155] Save 'ur note[Automation Task] Processing complete
    [10:22:30.155] Save 'ur note[Automation Task] Passing output 'false' to Conditional
    [10:22:30.155] Save 'ur note[Conditional] Processing complete
    [10:22:30.155] Save 'ur note[Conditional] Passing output 'false' to Write Text File
    [10:22:30.156] Save 'ur note[Write Text File] Processing complete
    [10:22:30.156] Save 'ur note[Write Text File] Passing output '/Users/okn/Documents/Quick Notes/QuickNote.txt' to Post Notification
    [10:22:43.941] Save 'ur note[Keyword] Processing complete
    [10:22:43.941] Save 'ur note[Keyword] Passing output '' to Arg and Vars
    [10:22:43.941] Save 'ur note[Arg and Vars] Processing complete
    [10:22:43.942] Save 'ur note[Arg and Vars] Passing output '' to Automation Task
    [10:22:43.945] Save 'ur note[Automation Task] Running task 'Does Path Exist?' with arguments (
        ""
    )
    [10:22:43.955] Save 'ur note[Automation Task] Processing complete
    [10:22:43.956] Save 'ur note[Automation Task] Passing output 'true' to Conditional
    [10:22:43.956] Save 'ur note[Conditional] Processing complete
    [10:22:43.956] Save 'ur note[Conditional] Passing output 'true' to Run Script
    [10:23:39.374] Save 'ur note[Keyword] Processing complete
    [10:23:39.375] Save 'ur note[Keyword] Passing output 'text2 time 10.23LT' to Automation Task
    [10:23:39.376] Save 'ur note[Automation Task] Running task 'Trim Line Whitespace' with arguments (
        "text2 time 10.23LT"
    )
    [10:23:39.443] Save 'ur note[Automation Task] Processing complete
    [10:23:39.444] Save 'ur note[Automation Task] Passing output 'text2 time 10.23LT' to Arg and Vars
    [10:23:39.444] Save 'ur note[Arg and Vars] Processing complete
    [10:23:39.444] Save 'ur note[Arg and Vars] Passing output 'text2 time 10.23LT' to Automation Task
    [10:23:39.444] Save 'ur note[Automation Task] Running task 'Does Path Exist?' with arguments (
        "text2 time 10.23LT"
    )
    [10:23:39.447] Save 'ur note[Automation Task] Processing complete
    [10:23:39.447] Save 'ur note[Automation Task] Passing output 'false' to Conditional
    [10:23:39.447] Save 'ur note[Conditional] Processing complete
    [10:23:39.447] Save 'ur note[Conditional] Passing output 'false' to Write Text File
    [10:23:39.448] Save 'ur note[Write Text File] Processing complete
    [10:23:39.448] Save 'ur note[Write Text File] Passing output '/Users/okn/Documents/Quick Notes/QuickNote.txt' to Post Notification
    [10:25:26.464] Save 'ur note[Keyword] Processing complete
    [10:25:26.464] Save 'ur note[Keyword] Passing output '' to Arg and Vars
    [10:25:26.465] Save 'ur note[Arg and Vars] Processing complete
    [10:25:26.465] Save 'ur note[Arg and Vars] Passing output '' to Automation Task
    [10:25:26.467] Save 'ur note[Automation Task] Running task 'Does Path Exist?' with arguments (
        ""
    )
    [10:25:26.477] Save 'ur note[Automation Task] Processing complete
    [10:25:26.478] Save 'ur note[Automation Task] Passing output 'true' to Conditional
    [10:25:26.478] Save 'ur note[Conditional] Processing complete
    [10:25:26.478] Save 'ur note[Conditional] Passing output 'true' to Run Script
    [10:26:11.878] Save 'ur note[Keyword] Processing complete
    [10:26:11.879] Save 'ur note[Keyword] Passing output 'text3 10.26' to Automation Task
    [10:26:11.880] Save 'ur note[Automation Task] Running task 'Trim Line Whitespace' with arguments (
        "text3 10.26"
    )
    [10:26:11.914] Save 'ur note[Automation Task] Processing complete
    [10:26:11.914] Save 'ur note[Automation Task] Passing output 'text3 10.26' to Arg and Vars
    [10:26:11.914] Save 'ur note[Arg and Vars] Processing complete
    [10:26:11.914] Save 'ur note[Arg and Vars] Passing output 'text3 10.26' to Automation Task
    [10:26:11.915] Save 'ur note[Automation Task] Running task 'Does Path Exist?' with arguments (
        "text3 10.26"
    )
    [10:26:11.918] Save 'ur note[Automation Task] Processing complete
    [10:26:11.918] Save 'ur note[Automation Task] Passing output 'false' to Conditional
    [10:26:11.918] Save 'ur note[Conditional] Processing complete
    [10:26:11.918] Save 'ur note[Conditional] Passing output 'false' to Write Text File
    [10:26:11.919] Save 'ur note[Write Text File] Processing complete
    [10:26:11.919] Save 'ur note[Write Text File] Passing output '/Users/okn/Documents/Quick Notes/QuickNote.txt' to Post Notification
    [10:26:21.722] Save 'ur note[Keyword] Processing complete
    [10:26:21.723] Save 'ur note[Keyword] Passing output '' to Arg and Vars
    [10:26:21.723] Save 'ur note[Arg and Vars] Processing complete
    [10:26:21.723] Save 'ur note[Arg and Vars] Passing output '' to Automation Task
    [10:26:21.727] Save 'ur note[Automation Task] Running task 'Does Path Exist?' with arguments (
        ""
    )
    [10:26:21.739] Save 'ur note[Automation Task] Processing complete
    [10:26:21.739] Save 'ur note[Automation Task] Passing output 'true' to Conditional
    [10:26:21.740] Save 'ur note[Conditional] Processing complete
    [10:26:21.740] Save 'ur note[Conditional] Passing output 'true' to Run Script

     

    Screenshot 2024-01-19 at 10.28.24.jpg

  5. 1 hour ago, Stephen_C said:

    Hey and good day/ evening Stephen,

     

    >Sorry for the delay responding.

     

    Nema problema 🙂

     

    >Have you changed my original workflow in any way since downloading it? The only reason I ask is because the screenshot in your first post does not look like my workflow.

     

    Not changed anything big*, the screenshot was only an artistic representation of me not knowing what to do. Later I found out.

     

    >If you don't mind I think it would be helpful to see your workflow. …

     

    OK I 'll send it,

    *I only tinkered with the Automation Task: Does Path Exist? and added the Debugger,

     

    https://www.dropbox.com/scl/fi/se07vqgqgf2c7l699oh7e/Save-ur-note-okn.alfredworkflow

     

    /

    with best regards,

    Omar KN, Stockholm, Sweden

    On 1/17/2024 at 12:17 PM, Vero said:

    @OmarKN The first thing that jumps at me is that your Automation Tasks are missing. Double-click that object and install or update the Automation Tasks.

     

    https://www.alfredapp.com/help/workflows/automations/automation-task/#colours

     

  6. 6 hours ago, Stephen_C said:

    Hey and good day Stephen,

    Here is the logg:

     

    The 'Trim Line Whitespace', was this my choice or?

     

    [12:41:40.551] Logging Started...

    [12:42:25.835] Save 'ur note[Keyword] Processing complete

    [12:42:25.839] Save 'ur note[Keyword] Passing output 'text4' to Automation Task

    [12:42:25.842] Save 'ur note[Automation Task] Running task 'Trim Line Whitespace' with arguments (

        text4

    )

    [12:42:25.910] Save 'ur note[Automation Task] Processing complete

    [12:42:25.913] Save 'ur note[Automation Task] Passing output 'text4' to Arg and Vars

    [12:42:25.914] Save 'ur note[Arg and Vars] Processing complete

    [12:42:25.914] Save 'ur note[Arg and Vars] Passing output 'text4' to Automation Task

    [12:42:25.915] Save 'ur note[Automation Task] Running task 'Does Path Exist?' with arguments (

        text4

    )

    [12:42:25.920] Save 'ur note[Automation Task] Processing complete

    [12:42:25.921] Save 'ur note[Automation Task] Passing output 'false' to Conditional

    [12:42:25.922] Save 'ur note[Conditional] Processing complete

    [12:42:25.922] Save 'ur note[Conditional] Passing output 'false' to Write Text File

    [12:42:25.928] Save 'ur note[Write Text File] Processing complete

    [12:42:25.929] Save 'ur note[Write Text File] Passing output '/Users/okn/Documents/Quick Notes/QuickNote.txt' to Post Notification

    [12:43:58.521] Save 'ur note[Keyword] Processing complete

    [12:43:58.534] Save 'ur note[Keyword] Passing output '' to Arg and Vars

    [12:43:58.535] Save 'ur note[Arg and Vars] Processing complete

    [12:43:58.536] Save 'ur note[Arg and Vars] Passing output '' to Automation Task

    [12:43:58.536] Save 'ur note[Automation Task] Running task 'Does Path Exist?' with arguments (

        ""

    )

    [12:43:58.537] Save 'ur note[Automation Task] Processing complete

    [12:43:58.538] Save 'ur note[Automation Task] Passing output 'true' to Conditional

    [12:43:58.538] Save 'ur note[Conditional] Processing complete

    [12:43:58.539] Save 'ur note[Conditional] Passing output 'true' to Run Script

    [12:45:37.919] Save 'ur note[Keyword] Processing complete

    [12:45:37.921] Save 'ur note[Keyword] Passing output ' text5, was it added to text4?' to Automation Task

    [12:45:37.931] Save 'ur note[Automation Task] Running task 'Trim Line Whitespace' with arguments (

        " text5, was it added to text4?"

    )

    [12:45:37.971] Save 'ur note[Automation Task] Processing complete

    [12:45:37.984] Save 'ur note[Automation Task] Passing output 'text5, was it added to text4?' to Arg and Vars

    [12:45:37.985] Save 'ur note[Arg and Vars] Processing complete

    [12:45:37.987] Save 'ur note[Arg and Vars] Passing output 'text5, was it added to text4?' to Automation Task

    [12:45:37.988] Save 'ur note[Automation Task] Running task 'Does Path Exist?' with arguments (

        "text5, was it added to text4?"

    )

    [12:45:37.989] Save 'ur note[Automation Task] Processing complete

    [12:45:37.989] Save 'ur note[Automation Task] Passing output 'false' to Conditional

    [12:45:37.990] Save 'ur note[Conditional] Processing complete

    [12:45:37.991] Save 'ur note[Conditional] Passing output 'false' to Write Text File

    [12:45:37.991] Save 'ur note[Write Text File] Processing complete

    [12:45:37.992] Save 'ur note[Write Text File] Passing output '/Users/okn/Documents/Quick Notes/QuickNote.txt' to Post Notification

    [12:46:07.942] Save 'ur note[Keyword] Processing complete

    [12:46:07.944] Save 'ur note[Keyword] Passing output '' to Arg and Vars

    [12:46:07.944] Save 'ur note[Arg and Vars] Processing complete

    [12:46:07.945] Save 'ur note[Arg and Vars] Passing output '' to Automation Task

    [12:46:07.961] Save 'ur note[Automation Task] Running task 'Does Path Exist?' with arguments (

        ""

    )

    [12:46:07.962] Save 'ur note[Automation Task] Processing complete

    [12:46:07.963] Save 'ur note[Automation Task] Passing output 'true' to Conditional

    [12:46:07.963] Save 'ur note[Conditional] Processing complete

    [12:46:07.964] Save 'ur note[Conditional] Passing output 'true' to Run Script

    [12:52:19.068] Save 'ur note[Keyword] Processing complete

    [12:52:19.088] Save 'ur note[Keyword] Passing output 'text6, QN has now TEdit as default app.' to Automation Task

    [12:52:19.089] Save 'ur note[Automation Task] Running task 'Trim Line Whitespace' with arguments (

        "text6, QN has now TEdit as default app."

    )

    [12:52:19.121] Save 'ur note[Automation Task] Processing complete

    [12:52:19.123] Save 'ur note[Automation Task] Passing output 'text6, QN has now TEdit as default app.' to Arg and Vars

    [12:52:19.124] Save 'ur note[Arg and Vars] Processing complete

    [12:52:19.124] Save 'ur note[Arg and Vars] Passing output 'text6, QN has now TEdit as default app.' to Automation Task

    [12:52:19.125] Save 'ur note[Automation Task] Running task 'Does Path Exist?' with arguments (

        "text6, QN has now TEdit as default app."

    )

    [12:52:19.126] Save 'ur note[Automation Task] Processing complete

    [12:52:19.126] Save 'ur note[Automation Task] Passing output 'false' to Conditional

    [12:52:19.127] Save 'ur note[Conditional] Processing complete

    [12:52:19.128] Save 'ur note[Conditional] Passing output 'false' to Write Text File

    [12:52:19.128] Save 'ur note[Write Text File] Processing complete

    [12:52:19.129] Save 'ur note[Write Text File] Passing output '/Users/okn/Documents/Quick Notes/QuickNote.txt' to Post Notification

    [12:52:36.588] Save 'ur note[Keyword] Processing complete

    [12:52:36.609] Save 'ur note[Keyword] Passing output '' to Automation Task

    [12:52:36.610] Save 'ur note[Automation Task] Running task 'Does Path Exist?' with arguments (

        ""

    )

    [12:52:36.611] Save 'ur note[Automation Task] Processing complete

    [12:52:36.611] Save 'ur note[Automation Task] Passing output 'true' to Conditional

    [12:52:36.612] Save 'ur note[Conditional] Processing complete

    [12:52:36.612] Save 'ur note[Conditional] Passing output 'true' to Open File

    [12:53:22.925] Logging Stopped.

     

     

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

     

    A while later I set after Prompt for note text: Date Manipulation > Current Time

     

    [12:56:26.707] Logging Started...

    [12:57:10.925] Save 'ur note[Keyword] Processing complete

    [12:57:10.927] Save 'ur note[Keyword] Passing output 'text7 12.57 LT' to Automation Task

    [12:57:10.951] Save 'ur note[Automation Task] Running task 'Current Time' with no arguments

    [12:57:10.952] Save 'ur note[Automation Task] Processing complete

    [12:57:10.952] Save 'ur note[Automation Task] Passing output '1705579030' to Arg and Vars

    [12:57:10.953] Save 'ur note[Arg and Vars] Processing complete

    [12:57:10.953] Save 'ur note[Arg and Vars] Passing output '1705579030' to Automation Task

    [12:57:10.954] Save 'ur note[Automation Task] Running task 'Does Path Exist?' with arguments (

        1705579030

    )

    [12:57:10.954] Save 'ur note[Automation Task] Processing complete

    [12:57:10.954] Save 'ur note[Automation Task] Passing output 'false' to Conditional

    [12:57:10.955] Save 'ur note[Conditional] Processing complete

    [12:57:10.955] Save 'ur note[Conditional] Passing output 'false' to Write Text File

    [12:57:10.956] Save 'ur note[Write Text File] Processing complete

    [12:57:10.957] Save 'ur note[Write Text File] Passing output '/Users/okn/Documents/Quick Notes/QuickNote.txt' to Post Notification

    [12:57:23.835] Save 'ur note[Keyword] Processing complete

    [12:57:23.864] Save 'ur note[Keyword] Passing output '' to Arg and Vars

    [12:57:23.864] Save 'ur note[Arg and Vars] Processing complete

    [12:57:23.865] Save 'ur note[Arg and Vars] Passing output '' to Automation Task

    [12:57:23.865] Save 'ur note[Automation Task] Running task 'Does Path Exist?' with arguments (

        ""

    )

    [12:57:23.865] Save 'ur note[Automation Task] Processing complete

    [12:57:23.866] Save 'ur note[Automation Task] Passing output 'true' to Conditional

    [12:57:23.866] Save 'ur note[Conditional] Processing complete

    [12:57:23.867] Save 'ur note[Conditional] Passing output 'true' to Run Script

     

    and got this:

     

    Quick notes

     

    1705579030

     

    (Added on {isodate: EEEE dd MMMM YYYY} at {isotime: HH:mm:ss})

     

     

     

    The action doesn't seem to understand that there already exists a file, and instead of appending anything just creates a new file on top of the existing (?!)

     

    Hope you can find the culprit!

     

    /

    with best regards,

    Omar KN, Stockholm, Sweden

     

    On 1/17/2024 at 12:17 PM, Vero said:

    @OmarKN The first thing that jumps at me is that your Automation Tasks are missing. Double-click that object and install or update the Automation Tasks.

     

    https://www.alfredapp.com/help/workflows/automations/automation-task/#colours

     

    QuickNote_2024-01-18_at_13.11.50.webp

  7. 10 hours ago, Vero said:

     

     

    2 Questions please:

     

    1.

    qn is to create a new QuickNote each time, but is it possible to add a line of text to the existing QuickNote.txt file?

     

     ⇢ Even better would be to add the new line of text at top of the file, so newest is at top.
     

    2.

    Where to set the date so that it is correct?

     

     

    /

    with best regards,

    Omar KN, Stockholm, Sweden

    Screenshot 2024-01-17 at 22.32.03.jpg

  8. I'm using Alfred snippets with keywords, everything is fine.

     

    Except on WhatsApp.

     

    The snippet seems to resolve some milliseconds late, but will leave the first part of the keyword in the WhatsApp message, so there is part of the snippet, and at the end of the text letters are deleted. 

     

    So here an example with an HTML tag. The keyword is pp3

     

    How could this be avoided?

     

    /

    with best regards,

    Omar KN, Stockholm, Sweden

    screenshot-2024-01-16-at-21.15.webp

  9. Hi kpw,

    This looks great.

    Do I have to download python3 first, I guess-via Homebrew?

    Then when I have Python, should I install the script into /usr/bin/env ?

     

    Maybe I need to read up on it to get the basic idea?

    Sorry, many questions.

    /
    with best regards,
    Omar KN, Stockholm, Sweden

×
×
  • Create New...