Jump to content

Search the Community

Showing results for tags 'Terminal'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • 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


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


  • New Features
  • Other

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start




Website URL




Found 82 results

  1. I want to update a directory on my Raspberry PI and I want to use scp for this. I've got a keyword which initiates a Run NSAppleScript action. This applescript launches Terminal and it should enter a command. But it won't open Terminal. on alfred_script(q) tell application "Terminal" do script "scp -r /path/to/folder pi@" activate end tell end alfred_script This Applescript action works flawlessly when used with a normal ssh command like "ssh user@server.com". But it does not work with scp. Any ideas?
  2. Hey All, Looking for a solution on a very minor annoyance, I usually run a lot of shell commands from Alfred using the > prefix, which is great! Love it! However, when it executes the command it pops open terminal and runs the command and leaves another lingering window around which I find annoying. Does anyone know of a way to force Alfred to close the window it opens after the command is executed? Very rarely do I need the returned command's output. It's usually for firing off quick things like docker pulls, file moves, git commits and such. If I need to do this through an AppleScript I'm open to that as well, just wanted to find some way around my terminal windows popping up everywhere like mushrooms. Thanks!
  3. I'm trying create a workflow to utilize the MacOS Say command. With this command, I'd like to queue up several paragraphs for it to speak and highlight the spoken paragraph. I'm close, but I'm running into issue with the clipboard management. It was my understanding that the /bin/bash scripts can queue commands up in sequence. In which case the below code should execute like this; 1. Copy the query (which in my workflow is the selected text). 2. Open find in Safari 3. Paste the clipboard contents. 4. Say the selected text. It looks like the LAST copied text ends up being pasted, instead of in sequence. The say command adheres to the sequence properly. The other commands do not, what am I missing? screenshot of the workflow is attached. pbcopy < "{query}" osascript -e 'tell application "System Events" to keystroke "f" using command down' osascript -e 'tell application "System Events" to keystroke "v" using command down' say "{query}" -r 250
  4. I love Packal, and I’ve grown to like awm, the CLI tool by Jonathan Wiesel. The response was not exactly overwhelming when Jonathan pushed awm out three years ago. But that was 2014, and since then CLI tools have gotten some traction, and today they are considered sexier than ever (I think). Anyway, I can’t stop dreaming of a version of awm that is ready for the year 2017. As a humble first step, I’ve just finished up three tiny PRs. They do absolutely nothing but remove the gunk from the `npm install` process. But hey, it’s a start! Regards, Claudia
  5. Hello, I want to create a basic workflow (I am a beginner): 1. Select a folder, and run "make" 2. To show as output if the command worked (e.g., there is a makefile in the folder), otherwise to say that the folder didn't have any make file. So, I have a file action (in this case a folder), and then a script (/bin/bash) with: cd "{query}" make But, nothing happens. Any ideas and suggestions on how to do this? Thanks so much! ![](https://dl.dropboxusercontent.com/u/18116710/Screenshots/Screenshot_2016-09-16_08.36.3.png)
  6. Hi, The new Alfred 3 Snippets are great - they replaced a lot of other text managers on my Mac. One question: is it possible to create Snippets so that they will run directly as terminal commands (rather than having to create a Workflow element for each Terminal command I want to run). Example: "> killall PrinterProcessor" If I create this as a Snippet, I can't find a way to get it into the Alfred window without copy n paste. What I'd like to be able to do is invoke my snippet list, type (for example) 'killall', choose the snippet "> killall PrinterProcessor" and hit return to send it like any other Alfred command prefixed with > to the Terminal. I there a simple way to do this? Thanks, Pat
  7. As per this thread: http://www.alfredforum.com/topic/9287-send-snippet-directly-to-terminal/#entry46194 It would be great to be able to create Snippets so that they will run directly as terminal commands (rather than having to create a Workflow element for each Terminal command I want to run). Example: "> killall PrinterProcessor" If I create this as a Snippet, I can't find a way to get it into the Alfred window without copy n paste. What I'd like to be able to do is invoke Alfred's snippet list, type (for example) 'killall', choose the snippet "> killall PrinterProcessor" and hit return to send it like any other Alfred command prefixed with > to the Terminal.
  8. terminal $open /Applications/Alfred\ 3.app -???=hoge alfred Search window |---------------------| |hoge | |---------------------| terminal $open /Applications/Alfred\ 3.app -???=abc alfred Search window |---------------------| |abc | |---------------------| Is there how to start?
  9. I have created a small workflow that uses a File Filter to match the name of a directory (public.folder), and then open it in Finder when pressing Enter. However, I also want to open Terminal and go to that path (cd ~/my/folder). Is it possible to somehow paste the query result from the File Filter, into a Terminal Command, in the workflow?
  10. Terminal Green 1.0 Terminal White 1.0 Terminal Orange 1.0
  11. Hi! I have been a user of Alfred (+ Powerpack) for years, but only recently decided to invest more time into customizing it with the workflows I thought were helpful. As I am a software developer, I generally setup any new Mac OSX environment using a completely automated installer: https://github.com/kigster/pullulant I wanted to add to Pullulant a simple bash script for installing Alfred. I can install the software itself using Homebrew, and then I was hoping to download and install my favorite workflows. I have now spent over an hour searching online, and I am absolutely stunned to find out that Alfred, the supposedly tool for automating your OS-X life, is itself so difficult to automate!!! What I want is a single line command I can run in Terminal (or iTerm, i.e. bash), that tells Alfred to import the given workflow. Since Alfred insists on choosing a category for a workflow (which is completely useless in my opinion), I would imagine that this command would need to tell Alfred what category to assign it. Right now I am able to do this: open $(curl -s -L -O -w %{filename_effective} \ https://github.com/packal/repository/raw/master/com.alfredapp.mdeboer.atom/atom.alfredworkflow) And as you would expect, curl downloads the file, OSX then opens Alfred, which then stays open like a village fool waiting for me to choose a category for it, and I can't, for the love of life, my laptop or the universe, find a way to make this entire process non-interactive, so that I can run it in a goddamn loop and be done with it. Why!? Why is it so hard? LOL. Cry. LOL. Cry. Sorry, it's very late, and I am getting a bit delirious. I do not mean to offend anyone, I just hoped that I could find a solution without having to post a new question in the forum, because even after searching this entire forum for "install", "command line", "bash", "terminal", "non-interactive" I found nada. Your truly, Konstantin https://github.com/kigster
  12. Hi, I want to create a workflow to change the user in the Terminal app but I can't make the workflow wait for the Terminal ask for the password and just then write it . I think what I need is a "wait next interaction from the computer" command or something like that.
  13. It would be great to have the possibility to "open" the folder in a terminal when using the "File Search / Navigation" feature (for example, by typing command-T when on a folder or file contained in the folder) and to choose which terminal application to use (iTerm or standard terminal).
  14. I guess I should first ask, is there an alfred workflow to smoothly interact with emacs in terminal (not the emacs gui/application)? And now, please excuse my lack of general knowledge: I currently have a very simple workflow set up that browses alfred and runs the terminal command "emacs {query}" on enter. I was wondering how hard it would be to make a workflow that checks if terminal is already open with emacs running, and if so, actually open the query as a buffer in emacs. Another question, kind of related to this (so that i could do "emacs .emacs" and such): I understand Alfred doesn't show hidden files since spotlight doesn't index them, but is there a way to make a specific hidden file findable with spotlight/alfred? (I've heard there's a way to hide files from them by adding stuff to their comments, was basically wondering if the opposite is possible too.)
  15. Hello, I'm using Alfred with the powerpack for a while now and still have issues with the '>' command which should open up Terminal or iTerm and run the given command. For example: when I type: > cd ~/Desktop It only open up iTerm. It doesn't matter which command I enter, only iTerm will start up. Also tried to make it work with Terminal, but same issue. Alfred version: 2.8 (414) OSX: 10.11.1 (15B42) iTerm: 2.1.4 Screenshots: Step 1: Opening Alfred and enter the command (https://www.dropbox.com/s/v8ut3we5q8lvj1p/Screenshot%202015-11-14%2019.35.20.png) Step 2: Alfred launches iTerm (https://www.dropbox.com/s/1elw5l2dat7d0jq/Screenshot%202015-11-14%2019.35.32.png) Step 3: No command has passed through (https://www.dropbox.com/s/kyoujb7rec00yv7/Screenshot%202015-11-14%2019.36.04.png) Step 4: Entered command manually (https://www.dropbox.com/s/n1atunrop7yta3t/Screenshot%202015-11-14%2019.36.55.png) -Brian
  16. I want to make a workflow that opens several tabs in a Terminal window, each doing something different. I discovered this ttab project that seems to do what I want, but it's not working correctly in my Workflow. When I enter a Terminal command as simple as ttab postgres -D /usr/local/var/postgres, the Workflow keeps executing the command over and over in new tabs, creating a race condition. How can I get this to run the command once and stop? Or is there a better way in a Workflow to to open new Terminal tabs and execute commands within them?
  17. In Terminal.app Preferences, I have the "Shells open with" property set to the custom "/opt/local/bin/bash" (rather than default login shell). However, if I then enter something like > echo foo in Alfred, this opens a new Terminal window but does not execute the command as it should. Alfred version: v2.8 (414) Mac OS X version: 10.10.5
  18. Hello, I use iTerm.app instead of Terminal.app. But it's not working. When I set Alfred to use Terminal.app and call the "Open Terminal here" action on a specific file, this file will be opened in Terminal correctly using the correct path pattern, e.g. /Users/username/Documents/file But when I set Alfred to use iTerm, nothing happens. I have inserted this Script: on alfred_script(q) tell application "iTerm.app" activate do script q end tell end alfred_script I tried to leave the quotes and .app suffix or both, but no result. Would be very happy if anybody could help me with this. Thank you, kind regards, Sascha
  19. So some odd behavior when using the > trigger to send a Terminal.app command via Alfred. How to replicate: Send a command to Terminal.app via Alfred (e.g. >top) When Terminal.app opens with top running, open a new tab (⌘+t) Note that the new Terminal.app tab opens and also automatically executes top I've verified that if you open Terminal.app, run a command, then open a tab, the first tab's command is not automatically executed in the new tab. Cheers, Andrew Alfred, 2.7.1 (387) System Version: OS X 10.10.4 (14E46) Kernel Version: Darwin 14.4.0 Boot Volume: Macintosh HD Boot Mode: Normal
  20. Hi Team, I seem to be having a bit of an issue that has cropped up in the last few weeks, I am not sure exactly when it started but the symptoms are this: 1. When I try to execute a terminal command with '.< command >' or a workflow tries to execute a terminal command... if I don't already have iTerm open, nothing happens at all. 2. If I manually open iTerm and have it running in the background... everything runs fine. This seems to occur across all three of my Macs. Versions: iTerm2 2.1.1 OSX: 10.10.4 Alfred: 2.7.1 (387) I have had a look and turned on all info for one of the flows and it does not error out at all, this seems to execute successfully: [iNFO: alfred.workflow.input.keyword] Processing output 'alfred.workflow.action.terminalcommand' with arg '' But strangely iTerm2 is never opened. It seems the iTerm2 program is now just called iTerm in my Applications folder, not sure if this has affected things at all (or if it always was). I have also checked the system console and no errors seem to be outputted to any system logs during the time I was testing. Look forward to hearing from you. Cheers, Stuart Update: All righty and now I have updated the scripts... made them more awesome and even added one for iTerm 2.9 https://github.com/stuartcryan/custom-iterm-applescripts-for-alfred/tree/master Not sure the best way to publish this but if anyone has any issues let me know and I will try to tweak the scripts further. Cheers, Stuart
  21. I was sitting there in iTerm thinking "wouldn't it be great if I could talk to Alfred directly from the terminal"? bash completion, etc. I'm not sure how to get this done; I was hoping for some guidance by the authors. Alfred's AppleScript library only exposes a few functions. If I wanted to use completion, I'd need a list of all of its keywords. However, if that list existed, I'm sure I could work something out. It'd be pretty awesome. Chris
  22. Here is a simple workflow the combines several basic (and frequently used) commands to help speed up your processes. There are several other workflows that do one or a couple of these... but I just combined them into one. Keyword Trigger run followed by: purge, flush, ip, show or hide, finder, dock or ow purge - frees up RAM flush - flushes your DNS ip - shows your public IP show - shows hidden files hide - hides file that should be hidden finder - relaunches the Finder.app dock - relaunches the Dock ow - relaunches the Finder.app and clears out the Open with Menu to only show the current versions of those Apps (bug in Mt. Lion) UPDATE - a collection of a bunch of workflows and terminal commands. relaunch - kills finder desktop - hides items on your desktop hidden - show/hide hidden files purge - frees up RAM owrest - ow - relaunches the Finder.app and clears out the Open with Menu to only show the current versions of those Apps (bug in Mt. Lion) lprest - resets launch pad flush - OS Mavericks flushing of the DNS wifi - turn on wifi see current network and get current network IP ip - get your internal and external (public) IP zip (or set hotkey) - creates archive of selected items empty downloads - cleans out the downloads folder space - gives you the remaining and used space % of internal and attached drives subl - opens a file or project in Sublime Text Simple to edit and modify to add more... Download link : http://d.pr/f/1hMXB
  23. Hi everyone, I bought the Powerpack to be able to run commands in Terminal. However, it's not working . . . I have the prefix set to '>' and when I type '>' into Alfred it indicates that it will run the command in Terminal. But if I type, for instance, '> pwd', instead of opening a Terminal window and running the command 'pwd' as it should, it just opens the Terminal window. Am I doing something wrong??
  24. Hi everyone, So whenever I maneuver to a folder and hit "Open Terminal Here" through Alfred, OSX Yosemite creates a new window with the terminal at the correct place. However, I don't want an entire new window, I want just a new tab situated in my already opened terminal window. Does anybody know how to make Alfred/Terminal default to this behavior? Thanks, Nolan
  25. Search OS X Terminal commands from Alfred 2 On Github: https://github.com/gnestor/alfred-terminal-commands On Packal.org: http://www.packal.org/workflow/terminal-commands
  • Create New...