Jump to content

ctwise

Member
  • Posts

    307
  • Joined

  • Last visited

  • Days Won

    23

Everything posted by ctwise

  1. It's a bug in the workflow, due to UTF-8 encoding. Fixed and a new version was uploaded.
  2. Defect fixed. Updated at link and on alfpt.
  3. That's good to know but if a script takes five seconds to return results and I type the query 'avengers', then I get script results for 'a' and ten seconds later I get script results for 'avengers' as opposed to five and a half seconds later for a timeout of 500 milliseconds.
  4. Script filters fire for every key press. That is fine for lightweight script filters that can respond quickly but is a problem for heavy script filters that take significant time to operate. It would be helpful to support script filter throttling. This might be as simple as a checkbox ("Throttle requests"). It would work by waiting a short time between key presses, if another key is pressed the timer resets, if the timer expires the script filter is run. It's possible to emulate this in a script but it's such a common use case it would be helpful to have it in Alfred.
  5. Errors would be nice to get. :-) But until that happens you need to pare down your results to get to the smallest example that works and binary search your way to the problem.
  6. Can you post this file? ~/Library/Application Support/VMware Fusion/vmInventory If that doesn't exist, then this file: /Library/Application Support/VMware/VMware Fusion/Shared/vmInventory
  7. The workflow has been updated, both at the above link and on alfpt. I added the following: vm list - now copies the vmx path to the clipboard vm ip - list the ip addresses of all running vms and copies the selected ip to the clipboard. The vm _must_ be running vmware tools for this to work. vm revert <name> - revert a vm to the named snapshot.
  8. This intrigued me so I came at it in two different ways. One script filter looks up the term being entered and provides a list of articles with titles, dates and authors. Choosing one of the entries takes you directly to the summary page. The other script filter does an autocomplete for search terms, e.g., 'diabetes' gives you options like 'diabetes mellitus'. Choosing one of the entries takes you to a search page for that search query. Pick your poison. http://tedwi.se/u/d5
  9. I created a workflow inspired by the Parallels controller workflow. It doesn't do screen captures since VMWare requires a username / password to do that, otherwise it's pretty similar. It's on alfpt or you can download it from here: http://tedwi.se/u/d4 The following commands are available: vm list - Provides a list of VM's and their status (running or stopped). Copies path to clipboard. vm start [nogui] - List the VM's that are currently stopped so you can start them. Optionally, if you add 'nogui' it will start them without showing the VMWare window. vm stop [hard] / vm suspend [hard] / vm reset [hard] - List the VM's that are currently running so you can stop, suspend or reset them. Optionally, if you add 'hard' it will force the action. vm pause / vm unpause - Get a list of VM's that are currently running so you can pause or unpause them. A paused VM counts as running. vm snapshot <name> - Get a list of VM's that are currently running so you can create a named snapshot of a VM's current state, 'name' is not optional. vm ip - List the ip addresses of all running vms and copies the selected ip to the clipboard. The vm _must_ be running vmware tools for this to work. vm revert <name> - revert a vm to the named snapshot. 2013-02-07 - Add icons (cribbed from Jonas Erikson's VirtualBox controller)
  10. It would be very helpful to be able to copy both complete workflows as a basis for a new workflow and to copy specific workflow modules.
  11. In this specific example the idea would be to offer suggestions, e.g., 'run mount' would give you the '/sbin/mount' command, but 'run <some script in some other bin directory>' would give me that option. If I dump the PATH from a script in Alfred it's not the full path set by .bashrc, indicating it's not running a login shell (which it shouldn't by default).
  12. If I embed the information in the value returned by an earlier stage that couples later stages _more_ tightly, not less.
  13. Yep, and I do this already. If I'm focused on the file that works fine, but if I'm focused on the action I can't do it the opposite way.
  14. The file filter uses Spotlight for searching for the file filter query. It would be nice to be able to enter paths and get completion support, e.g.: 'upload <some filename I hope was indexed by Spotlight' vs. 'upload ~/Desktop/<get completion support for files and directories in ~/Desktop'
  15. It would be nice to be able to generate a list of context items for results of script filters.
  16. The bash scripts aren't executed in a login session so they don't have access to the environment setup in the bash scripts. So, if I want to implement a 'run' workflow that allows me to execute any command-line application, I can't make use of 'compgen -c' in a bash script because it doesn't have access to the user's path, just the default path.
  17. "If you're not calling a script from the command line, you could just split a given {query} by spaces..." Yes I could. But instead of injecting it into every step in the workflow, it would be easier and cleaner to provide the original query. Hence my request. :-)
  18. The Google Search workflow is awesome but has one small issue - if there are no search suggestions it ends up searching google for 'g {query}' instead of just '{query}'. It can be remedied with one small change to the script filter, adding an item to the suggestion list if no suggestions were found, e.g.: require_once('extension_utils.php'); $utils = new ExtensionUtils(); $results = array(); $text = urlencode("{query}"); $xml = simplexml_load_file("http://google.com/complete/search?output=toolbar&q=$text"); foreach( $xml as $sugg ): $item = array( 'uid' => 'suggest {query}', 'arg' => $sugg->suggestion->attributes()->data, 'title' => ucwords($sugg->suggestion->attributes()->data), 'subtitle' => 'Search Google for '. $sugg->suggestion->attributes()->data, 'icon' => 'icon.png', 'valid' => 'yes' ); array_push( $results, $item ); endforeach; if ( count($results) == 0 ): $item = array( 'uid' => 'suggest {query}', 'arg' => '{query}', 'title' => '{query}', 'subtitle' => 'Search Google for '. '{query}', 'icon' => 'icon.png', 'valid' => 'yes' ); array_push( $results, $item); endif; if ( count( $results ) > 0 ): echo $utils->arrayToXml( $results ); endif;
  19. The problem isn't in a single script, it's between workflow components. For example, if I have a script filter followed by a script to handle the result of the script filter and want a notification at the end along the lines of 'Uploaded file {original-query} to {query}'. I can't do it. I can get halfway there by returning the whole notification line as the value of the script _after_ the script filter, but even then I've already lost the original query and have to go through gyrations in the script filter to compensate.
  20. People are creating helper API scripts to bundle with workflows. It would be helpful if they were consistent for all languages, and, best of all, always accessible without being bundled into each workflow.
  21. When creating a pipeline of actions you lose the original value of {query} in later stages. This is correct but it would be useful to have access to the original query, e.g., {original-query}, regardless of what changes have been made in the pipeline.
  22. This is a workflow to support killing a process (as opposed to quitting an app). It uses the new infrastructure to list the processes that match a given name, e.g., 'kill java' will list all of the processes that include 'java' in their names. Holding down 'alt' will do a 'kill -9' instead of a regular kill. Script url for download - http://tedwi.se/u/cx This is my first workflow in the v2 beta so I'm looking for input as well. Ted Wise http://tedwise.com
×
×
  • Create New...