Jump to content

vitor

Staff
  • Posts

    8,572
  • Joined

  • Last visited

  • Days Won

    715

Posts posted by vitor

  1. 8 hours ago, Marfa said:

    But there is a common problem I found from the existing similar extensions: they only suppport replacing the selected text with new text.

     

    There’s a simple reason for that—doing it another way is more trouble than it’s worth. You can’t simply select text arbitrarily in any app. You can press the keyboard shortcuts necessary to reselect the text, but those will depend on the pasted text itself so then you also need to keep a reference to what was pasted before.

     

    8 hours ago, Marfa said:

    Therefore users can keep type the shortcut until they got the text what they want.

     

    Why not instead use a Workflow which gives you a preview of the text before it’s pasted? Like Change Case.

  2. Welcome @mattB1,

     

    When asking for help with a Workflow, please upload it somewhere as we can’t properly help you without access to it. Debugging can already be hard with access to the code, and guessing from descriptions and screenshots is even harder.

     

    Luckily, in this case the issue is evident: you’re not giving an arg to the items in the Script Filter. That’s what gets passed down.

  3. Those stopped working because they rely on GUI automation and Apple has since changed the Notification Centre. At the time I looked into it (and likely still the case) there wasn’t a good alternative to doing so.

     

    Your best bet is to learn to live with those notifications, instead of trying to clear them. Note they won’t go on forever, they only go back seven days and anything older disappears, so there’s no need for manually clean them up.

  4. 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.

  5. 24 minutes ago, lehcar3 said:

    can you help me understand why it's on that updated list if it's still not working?

     

    I just tried it and it is working. Not sure why it’s not working for you. You said in the other post you tried “too many python fixing solutions and broke stuff”. Without knowing what you did, it’s going to be hard to help.


    You can remove everything and try again, though that only undoes what the original instructions did; if you followed other guides on top of that, those might still be there.


    Also, as I mentioned, the footnotes take care of the special cases. It’s still useful to have those on the list because:

    • There’s very few of them.
    • They can still be fixed by following the footnotes.
    • People may create duplicate requests otherwise.

    Try the reinstalling fix, and if that doesn’t work, give specifics:

    • Alfred version.
    • macOS version.
    • Workflow version.
    • The command you’re running.

  6. 3 hours ago, xilopaint said:

    I can see you're the workflow creator. Where's this API documented?

     

    The Workflows were modified from David’s PHP originals. Everything about the code (and some of the behaviour) changed, but I kept the API call. It’s clearly official, but all documentation I found is outdated or dead. Still, it works.

  7. 51 minutes ago, jeremycherfas said:

    I pass the clipboard to Run Script bin/zsh containing mv "{var:filename}" "{clipboard}"

     

    There’s your problem. Variables are fed into Zsh as environment variables. The working equivalent would be mv "${filename}" "$(pbpaste)".

     

    1 hour ago, jeremycherfas said:

    I'm not sure how to share the actual workflow.

     

    You can use a temporary file hosting service like https://transfer.sh.

  8. 9 hours ago, jierme said:

    How could I convert the AppleScript to JavaScript for a specific application?

     

    Apps with AppleScript support have dictionaries. You can access them via the Script Editor app (File → Open Dictionary…) or the AppleScript Dictionaries Workflow. You can change the language on the top right.


    For this case, it might be something like Application("Moom").listofSnapshots().

     

    2 hours ago, jierme said:

    I tried to adjust his code for my use, and I found it works!

     

    Glad it’s sorted!

  9. I can’t reproduce, but Spotify also doesn’t run properly on a Virtual Machine (and I don’t trust them to install it on my main one) so no idea what the heck they’re doing. All the Workflow does is ask (not tell) apps to quit.


    You haven’t posted the result of the command you quoted. Does Spotify show up as Spotify or something else?

×
×
  • Create New...