Jump to content

Search the Community

Showing results for tags 'run script'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Alfred 3
  • Make the Most of Alfred
    • Discussion & Help
    • Bug Reports
    • Alfred Feature Suggestions
    • Themes
  • Alfred Workflows
    • Share your Workflows
    • Workflow Help & Questions
  • Alfred v2 Themes
  • Alfred Remote for iOS
    • Alfred Remote Discussion & Help
    • Remote Connection Troubleshooting

Categories

  • Articles
    • Forum Integration
    • Frontpage
  • Pages
  • Miscellaneous
    • Databases
    • Templates
    • Media

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Twitter


Website URL


Jabber


Location


Interests

Found 12 results

  1. Hello. I'm trying to open Zoom meeting URL that is in my iCalendar using 'Run Script' in Workflow. I am using ical-buddy for the purpose. I wrote the code below to select my "School" calendar, get some URL in it (which is either Zoom or Discord in my case so apologies for a lazy regex), and open it with Chrome. url=$(icalbuddy -ic 'School' eventsToday | egrep -o 'https:\/\/.*') && open -a "Google Chrome" $url If I paste this straight to terminal, it works perfectly. However, once I put this in 'Run Script' object in the Workflow that I am working on, it would not open the d
  2. Hello, I'm trying to create a simple workflow that saves to disk the image that is in the clipboard. I found pngpaste a library to do just that. Now I created the workflow with a keyword trigger named pasteimage and an action "Run Script" query=$1 pngpaste $query I get this error: Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Scripts/546DD210-2D7D-4CED-AA58-DAB4B0F6EE89:3: command not found: pngpaste How can I run this command from Run Script? Thank you
  3. Short version Is there an equivalent to terminal's compgen autocomplete in runscript? Long version I work in an office with a shared NAS drive. All our clients take a very specific folder structure. It's kind of a pain in the ass to jump to a particular clients folder as we multi-task a lot. All our client folders start with the first four letters of the client name as a client code. So Super Dooper Client would be SUPE_Super Dooper Client - which is cool for autocompletion as it always knows where to go, since no two are the same (by chance to be fair, we've
  4. The Run Script action, particularly relevant to osascript, appears to return the result of the script as text that is terminated with a line break character. This causes problems when the script returns a file path, which gets fed into the subsequent node of the workflow that is expecting to receive a file path that points to an existing file, but instead receives a file path that points to a non-existent file because of the extra character in its name. https://transfer.sh/LEmG3/Bug Report.alfredworkflow The workflow demonstrates the phenomenon. It simply displays an
  5. Hey All! Long time listener, first time caller. QUESTIONS Is there a way to set an Alfred variable from within a Run Script (bin/bash) command? For reference I'm calling a python script (i.e., python my_script "{query}") If not, how can I store the output of the Python script when it is a complex data type like a dictionary? CONTEXT I'm trying to write a workflow that utilizes an API, grabs some values, and then opens a URL. The user will enter an ID, the python Run Script will retrieve information about this via the API call, and then using the
  6. Hi I think this should be a very simple task. 1. I have a folder: eg ~/manuals/ where I store all the different notes and manuals I write for my self. All the files ends with .man 2. I often need to check the contents of these files. eg. the usage of mask with python, etc The workflow I want is like below: 1. I want to use the keyword ??, and run sth like "?? mask" 2. and then I want to run a command line: grep -A 4 mask ~/manuals/*.man 3. I want the result to be returned to alfred and shown in the window However, I could not figure out the retu
  7. Hello, I am trying to run a terminal command "terminus site:list" but keep getting error when trying to use the Run Script action. I've read in other articles it's because the terminal doesn't load the user profile but I can not figure out how to set the $PATH variable in the workflow to make this command accessible. I installed Terminus using composer so I created an alias in my .bash_profile that is "alias composer='php ~/composer.phar'" . I've also listed the rest of my .bash_profile below for reference. How do I get this to work with Run Script? How
  8. Hi, I am trying to create a workflow that would append some text content I select on Google Chrome. Here are the steps: I select some content on a website (no copy to the clipboard, just a selection) I hit a keyboard shortcut Alfred runs a command that would add the selected text in a specific file. I created a workflow with a "hotkey" and a "run script" actions. It is not working the way I want as every time I use workflow it appends the selection and the command (.i.e: "echo "{query}" >
  9. So I have a workflow set up with a script filter triggering a "run script" action. The (/bin/bash) script action is set to escape backquotes / dollar signs, run instances sequentially and contains this: echo entered alfred.workflow.action.script >&2 ./process_command.sh {query} When the script action gets executed, the Debug pane (set to log all information) shows this: [iNFO: alfred.workflow.input.scriptfilter] Processing output 'alfred.workflow.action.script' with arg 'restore sa ' At first, I thought I just screwed something up, so i set up a hotkey trigger to go directly i
  10. It would be great to see "javascript" in the list of languages for "Run script" under action and output in the workflows, so that we can have these executed with nodejs.
  11. Currently there are some issues with Run Script when using /usr/bin/php, /usr/bin/perl, /usr/bin/python, etc... Those processes are launched from the shell using certain environment variables (such as LANG=C or another non-unicode supporting environment) which disable features or environments we may need to run our scripts correctly. Currently the only solution to this would be to use /bin/bash or /bin/zsh and set things ourselves and then launch our script from there. Doing so means we sacrifice the convenience of having scripts right in the workflow visual themselves AND we can no l
  12. Bug reproduced at both home and work. Configs : @home: OSX: 10.7 Alfred: v2.0.1 build 173 @work: OSX: 10.6 Alfred: v2.0.1 build 173 Origin This topic Step to reproduce NB: I did a brand new workflow to be sure it was clean of any extra hidden space or carriage return. Basically it looks like this: A keyword object with arg to pass the {query} Run Script object uses /bin/bash and simply does an echo "foobar" Output 1 displays the {query} Output 2 displays display the text in the text field (e.g. foobar) Output 3 displays the {query} passed by the script. Whe
×
×
  • Create New...