Jump to content

kpw

Member
  • Posts

    4
  • Joined

  • Last visited

Reputation Activity

  1. Like
    kpw reacted to vitor in Programmable Calculator   
    Welcome @Patrick Graf,
     
    Seems like you’re looking for the Script Filter Input. You’ll be able to take whatever is input in Alfred, then do your calculations and return some JSON which will show up in Alfred.
  2. Like
    kpw reacted to vitor in Run Command — Run commands using your shell configuration   
    Usage

    Run shell commands without opening a terminal via the cmd keyword. Your shell’s configuration files will be loaded, making your custom aliases, functions, and more available to the environment. Commands execute relative to the frontmost Finder window to allow quick changes on the current working folder. Exit status is shown as a notification and output in a Text View.


    ↩ Run the command. ⌘↩ Run command but do not open output in Text View. ⌥↩ Show command history to rerun a command.
    Use the Universal Action to send files and text as arguments to a command. If the placeholder from the Workflow’s Configuration is present in the text, it will be replaced with your arguments, otherwise they are appended to the end.





    The same modifiers apply. Separate command histories are created for commands ran with the Keyword or the Universal Action.


    ↩ Run command. ⌘↩ Delete all command histories and saved outputs. ⌘Y (or tap ⇧) Quick Look saved output.
    ⤓ Install on the Alfred Gallery | Source
  3. Like
    kpw got a reaction from vitor in How export snippets as text   
    1) homebrew python would be fine.
    2) give script executable permission in terminal with “chmod +x scriptfilename.py”
    3) can be run from any location with “path-to-script/scriptname.py”
     
  4. Like
    kpw reacted to vitor in How export snippets as text   
    As soon as you run the command, macOS should offer to install the Developer Tools which will include python3.
     
     
    No, /usr/bin/env is not a directory. Just download the script anywhere and run it with /usr/bin/python3 /PATH/TO/THE/SCRIPT.
  5. Like
    kpw reacted to giovanni in Increment a number by one   
    @Benoulis try this
     
    set the default starting value in workflow configuration
    ++1 (or hotkey) to trigger the snippet
    plusone::reset to reset the counter to the default value
     
  6. Like
    kpw reacted to andy4222 in Trying to decide to buy Lifetime or current version   
    Just buy the lifetime version, it's totally worth it. No brainer basically. I bought it like 5 years ago and the team has released so amazing features consistently. It's the best investment I have made. Saves me so much times in doing menial (and sometimes complicated) things. Plus, Alfred is not subscription based despite releasing new features.
  7. Like
    kpw got a reaction from zeitlings in How to show user input form?   
    zeitlings dialog works great.  Thanks!
  8. Thanks
    kpw reacted to zeitlings in How to show user input form?   
    Hey @andy4222, there is no way to do this with Alfred as far as I know. However, you can build it yourself from scratch.
    I just finished an experiment that raises a graphical prompt that passes the values you enter to Alfred. This works by wrapping the GUI, i.e. SwiftUI components, in an  NSWindow instance.
     
    To make it work for your needs, you will need to customize the SwiftUI view and its components.
    I think the results are quite promising though. 😄
     
    You can download the experiment here



     
  9. Like
    kpw reacted to Stephen_C in Script Filter question handling PDF   
    Part of your script seems to be missing something crucial. The complete script should look like this:
    on run argv set theQuery to item 1 of argv tell application "Preview" activate set theFile to POSIX file "~/Downloads/Fire.pdf" open theFile tell application "System Events" keystroke "g" using {command down, option down} delay 0.5 keystroke theQuery keystroke return end tell end tell end run Note carefully the first and last lines—and also ensure the Run Script action is set, at the top, with input as argv.
     
    Edit: When you use the Run Script action set to AppleScript you'll find those missing lines are inserted for you. You usually put your script between them—at least if you are importing a variable (as you are: the number of pages).
     
    Stephen
  10. Like
    kpw reacted to Stephen_C in Appreciation for work…   
    I really appreciate the amount of work that has gone into the 5.1 pre-release: there are some very significant improvements and, although I don't believe it's specifically mentioned, I think, under Ventura, I may have been able to revert to Alfred default search scope setttings—which means that I no longer receive cluttered search results as a result of having had to set the default to \.
     
    Many thanks to @Andrew (and to @vitor for what I suspect may have been supporting work on Gallery related issues).
     
    Easter joy all round here..!
     
    Stephen
  11. Like
    kpw reacted to vitor in Multiple keywords support   
    Starting from Alfred 5.1 (currently in pre-release), multiple keywords are supported.
  12. Like
    kpw reacted to Vero in Why not iCloud sync for Alfred preferences?   
    @Nuno iCloud isn't currently recommended due to being slower at syncing (sometimes not syncing at all for a long period of time), being less reliable and doing a poor job of file conflict resolution.
     
    In our internal testing and when supporting users who chose to use iCloud, we saw preferences being lost, especially due to file conflicts where iCloud loses files or reverts to old versions when it's unable to resolve them.
     
    We're very keen to improve the sync options and already have a broad plan for this. There are quite a few aspects to doing this well, such as adding an automatic local backup option, ensuring that if syncing goes wrong, you have a recent backup you can go back to, so we'll be looking into this further once Alfred 5 is out and settled.
     
    Having said that, if you'd like to experiment with using iCloud, you can do it; Just make sure you keep your preferences backed up using Time Machine or another regular backup service of your choice.
  13. Like
    kpw reacted to luckman212 in ClipSaver - save & convert images from clipboard history in various formats   
    Latest release: v2.3.5
     
    Hey guys,
     
    Thought I'd share this little workflow. I found myself often needing to dump out the last N clipboard images from Alfred's history to disk. It was tedious before, find the right item, copy it back to the pasteboard, paste into Preview, save as PNG, give it a non-overlapping name, etc. So I created this to make it semi-automatic. Shouldn't need anything special, but please let me know if you run into any trouble.
     
    Feedback welcome! One thing for sure I would like some advice on is whether the Script Filter (Python) could be turned back into a List Comprehension which from what I've read is more efficient. I couldn't figure out how to do that and also dynamically update the database rows (e.g. converting "/" to " / " so that Alfred's word matching would match correctly, picking a nicer generic icon when app name==null etc). @deanishe if you have time I'm sure you know the answer to this...  
     
     

     
    GitHub
    https://github.com/luckman212/alfred_clipsaver_workflow
     
    Download Latest Release:
    https://github.com/luckman212/alfred_clipsaver_workflow/releases/latest/
     
     
×
×
  • Create New...