Jump to content

mattbanks

Member
  • Content Count

    15
  • Joined

  • Last visited

  1. It's working now! Maybe just an upload error Thanks for all your awesome work on this stuff!
  2. Here's feedback.log for a test task I just tried to add: Traceback (most recent call last): File "feedback.py", line 126, in <module> do_feedback() File "feedback.py", line 106, in do_feedback things = alp.fuzzy_search(q, v) File "/Users/mattbanks/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.66D8DB0B-72E6-4303-91C6-29384836DDA2/alp/fuzzy.py", line 144, in fuzzy_search R = match_rank(query, [key(el) for el in elements], seq=seq) File "/Users/mattbanks/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.66D8DB0B-72E6-4303-91C6-29384836DDA2/alp/fuzzy.py", line 113, in match_rank mat = [re.match(expr, s, re.IGNORECASE) if query[0:seq].lower() in s.lower() else None for s in strings] File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py", line 137, in match return _compile(pattern, flags).match(string) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py", line 244, in _compile raise error, v # invalid expression sre_constants.error: unbalanced parenthesis
  3. Still not working for me. I deleted the old one and downloaded again, but still breaking out to Google search whenever I type the opening square bracket.
  4. I'm having similar issues as KrOstir - whenever I type a square bracket to add a task to a Project, it breaks out of the workflow and tries to search Google. I just re-downloaded from your site to make sure I have the latest version. I'm having the same problem with Alleyoop too when there is a ? or ! (ie oop? or oop!, so I can't refresh oop). Here are screenshots: Any ideas?
  5. I'm having trouble with the latest Alleyoop update (and your Things workflow too). It seems that whenever there is a non-alphanumeric character (such as oop? or oop!), the workflow breaks out and it tries to search Google instead of executing the script. I'm not getting anything in all.log since it can't refresh the list. I am getting the following in force.log: File "feedback.py", line 66 except IntegrityError, ConnectionError as e: ^ SyntaxError: invalid syntax Haven't looked at the python files or the workflow settings yet, but I'm wondering if it's not escaping the characters properly?
  6. Congrats! It's utterly amazing having a kid, but also more exhausting than you can ever imagine Wish I could share this workflow - too much personal info in there (related to locations on my machine, Dropbox, MySQL passwords, etc)
  7. So it turns out in the Action Script, where I was echoing the {query} variable, I forgot to echo -n to strip the newline. This is what happens when I write a combination of Bash, PHP and AppleScript on almost no sleep because my 6 month old son is sick...
  8. Tried that, but the URL it gives is now: http://sites.dev/test%0A/installing.php?q=test%0A where {query} is "test". I have every box checked for escaping characters in the Output Script window, so I'm not sure how to get rid of the %0A. Any ideas?
  9. I have a workflow setup to download wordpress, extract it into my dev sites directory, clone a few repos for my starter theme and a few plugins, create a database, run npm install and grunt in a terminal window, etc. The last step I'm trying to do via an output script is run a instance of wp_install() in a PHP script to run the full installation and then have the browser open the site. Here's a gist of the PHP code I'm running: https://gist.github.com/mattbanks/5213396 I tried running it as a PHP output script and changing line 3 to $site = "{query}"; but it wasn't working. I then tried calling: php -f installing.php -- {query} via a Bash script and grabbing {query} as argv[1], but no dice there either. If I copy the file to the root directory of the WordPress install and run it in the browser with a query string of "q" (as setup in the gist), it works properly (ie http://sites.dev/mysite/installing.php?q=mysite). So I tried copying the installing.php file from the workflow directory over to the WordPress site directory I created, which works fine, but I can't get the browser to properly open the file. I know the {query} variable is passing properly because I threw a notification of it and it's there just fine. Here's what I'm trying via a bash output script: cp installing.php ~/Sites/{query} open http://sites.dev/{query}/installing.php?q={query} But it's not opening properly. It's throwing me http://sites.dev/{query} - not finishing off the full URL. Any ideas how I can get it to run properly? Thanks, Matt
  10. I'm setting up a workflow for creating a new local WordPress site (will be adapting it for a few other systems once I have this one running). Since I can't trigger one action from another, I'm running a bash script to pull the latest WordPress, extract and do all of those tasks, then using a few output scripts to finish the process. I ended up using PHP to in an Output Script to create the database since whatever I tried, running a Script in Alfred wouldn't talk to the mysql command. I know multiple Actions are in the works, which would be perfect for this, but the concurrent output scripts works ok for now.
  11. Looks like output from a couple of the commands I was running was taking over, so I threw "> /dev/null 2>&1" on the end of those and then I'm echo'ing {query} and it's showing up properly in all output tasks
  12. I'm trying to create a new mysql database as part of a workflow in a Script action, but nothing seems to be happening. I've tried: mysql -uroot -pMYPASS -e 'create database {query}' > /dev/null 2>&1 and usr/local/bin/mysql -uroot -pMYPASS -e "create database {query}" > /dev/null 2>&1 but I'm not getting anything created in MySQL. I have the > /dev/null 2>&1 in there so it doesn't throw exceptions that prevents {query} from getting passed to an Output Script. Any ideas on how to get the db created?
  13. Great! Thanks, Andrew! I tried using an Output->Run Script but it doesn't look like it properly accepts {query}, so I'll just keep everything in one big Terminal Command for now
  14. Been playing around a lot with creating new Workflows and wondered if there's any way to trigger an Action from another Action? For example, I want to use a keyword + {query} to create a new development site. First, I want to run a shell script silently. When that finishes, I want to open iTerm 2 to run a Terminal Command action in the foreground. At the same time, I'd like to use the Open URL action to open the local site in Chrome. From what I can tell, an Action can't trigger another Action in a Workflow. I know I can trigger them simultaneously, but the secondary actions in the Workflow depend on the first shell script being completely. Any way to do this other than executing commands in a single bash script or writing it out with PHP/Python/Ruby/AppleScript and triggering the scripts sequentially from a bash script? Thanks, Matt
×
×
  • Create New...