Jump to content

BrianGilbert_

Member
  • Posts

    27
  • Joined

  • Last visited

Everything posted by BrianGilbert_

  1. @Andrew /System/Library/CoreServices/ScreenSaverEngine.app will start it, it used to be in a different path previously (which is why I'm guessing it's stopped working from Alfred (assume it's pointing to the old location)
  2. In High Sierra ScreenSaverEngine.app has now moved to /System/Library/CoreServices/ which means launching screensaver from Alfred no longer works, is it possible for me to update somethinhg on the current version to get this working again?
  3. I ended up doing this with a script action instead of open url followed by clipboard
  4. In this case it's safe to assume that users will always want to copy it to the clipboard, which is why I don't want to add a modifier key. I just seems that copy to clipboard is quite limited, or if it is possible to copy more than {query}, {time}, {date} and {clipboard} there is no indication of what else available?
  5. Hi David This is for the Drupal workflow I've written, {query} is required for opening a URL, but I'd like to copy the full function including it's expected variables to the clipboard. an example: aggregator_admin_remove_feed_submit <-- 'arg' / {query} required for the opened url to work properly -https://api.drupal.org/api/drupal/7/search/{query} -https://api.drupal.org/api/drupal/7/search/aggregator_admin_remove_feed_submit aggregator_admin_remove_feed_submit($form, &$form_state) <-- 'title' is what I want to copy to the to clipboard Just in case it helps here is a lrger section of the code $results = array(); foreach( $matches as $hook => $sugg ) { if (!empty($sugg)) { $value = $sugg; } else { $value = ""; } $item = array( 'uid' => $value['hookname'], 'arg' => $value['hook'], 'title' => $value['hook'], 'subtitle' => $value['value'], 'icon' => 'icon.png', ); array_push( $results, $item ); } if ( count( $results ) > 0 ): echo $utils->toxml( $results ); else: echo '<?xml version="1.0"?><items><item uid="suggest '. $text . '" arg="none"><title>No match</title><subtitle>Try changing your search query.</subtitle><icon>error.png</icon></item></items>'; endif;
  6. is it bossible to copy any of these to the clipboard 'uid' => $value['hookname'], 'arg' => $value['hookname'], <- {query} 'title' => $value['hook'], <- ideally I want to copy this 'subtitle' => $value['value'],
  7. Resolved by adding the following to the dp Script Filter: ini_set('max_execution_time', '300'); ini_set('memory_limit', '265M' ); ini_set('post_max_size', '30M'); ini_set('upload_max_filesize', '30M');
  8. In the following workflow there are several commands that cache a local copy of data to make the workflow faster, I've just added a new command that this functionality isn't working properly for, which is strange given that the code is pretty simmilar to how the other commands that are working function. Working example: d7 hook_ (will download a file to data dir called d7.array) If you install the workflow https://www.dropbox.com/s/lgg7p4gkb8cs0e5/Drupal.alfredworkflow and then type the following (dp alfred) it should download an XML file (which is 15.2MB) and convert it into a much smaller projects.array (2.9MB) that gets saved to the data dir, this all works fine when I test it as a php script from terminal, but when I run it from Alfred I can see the network activity for the download, but the projects.array file never gets saved to disk. If I copy the projects.array file that was created when running from terminal into the data folder it works fine though. Any suggestions would be greatly appreciated.
  9. This is a great workflow though it doesn't appear to work with Firefox, any chance of adding support? (I'm using FF Aurora 22.0a2)
  10. This plugin caches the Drupal api function list's locally and shows the variables that the function expects to receive as well, hitting enter opens the relevant page on api.drupal.org. Drupal API lookup d5 [substring_of-hook] (cached for 90 days) d6 [substring_of-hook] (cached for 90 days) d7 [substring_of-hook] (cached for 30 days) d8 [substring_of-hook] (cached for 2 days) g.d.o dg [nid or group] d.o do [nid or project] Search Drupal site network ds [string to search] Drupal user du [user id or name] Drush (drush as per Alfred v1 Drupal plugin) dd d [command] (a Drush alias with a Drush command command Action - Invokes Drush dd o [command] (a Drush alias Action - Opens the URI associated with the Drush alias in a browser) Download at: http://realityloop.com/blog/2013/03/15/advanced-drupal-workflow-alfred-v2
  11. If your using php then you can store the file using the data location when using David F's workflows.php include: https://github.com/jdfwarrior/Workflows
  12. The idea was to make it easier for all developers.. I wasn't thinking about myself.
  13. Not unless they had access to my api key tho.. but yeah.. makes sense...
  14. I think I edited my message while you were typing your reply.. I've now got it working so that when I open Prowl the notification launches automatically.. but I still have to load Prowl.
  15. I have that off, but I still have to open prowl for any received message before the call happens, is that what you get?
  16. Hey CarlosNZ, what do I need to set in Prowl so that the call happens without any interation on the phone? At the moment I have to open prowl and click the received message...
  17. ah, no problem I'll use that one then
  18. hey phyllisstein, the search workflow link is dead
  19. I don't see why you couldn't store the information in some form of file that contains the information at the suggested paths and have your workflow load it from there to populate the variables where they need to be, I'm doing that for a workflow that I'm currently working on. edit: ah.. on fully reading your comment I see the problem is getting the input to start with..
  20. 2 Questions: Is it possible for helper variables for [volatile] and [non-volatile] to be added to Alfred that get expanded to the path of the relevant directory including the bundleID before the scripts are run? I've submitted a request for this: http://www.alfredforum.com/index.php?/topic/389-alfred-helper-variables-the-get-expanded-before-scripts-are-run/ I'd like to show subtitle only when I'm downloading or updating the api list (which happens monthly, and can't run search while this is happening), is there any way to do this?
  21. example: Is it possible for helper variables for [volatile] and [non-volatile] to be added to Alfred that get expanded to the path of the relevant directory including the bundleID before the scripts are run? So if I used it in the Drupal workflow that I'm building they would be expanded to the following before any scripts containing them were run.. [volatile] = '/Users/brian/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.realityloop.alfreddrupalworkflow' [non-volatile] = /Users/brian/Library/Application Support/Alfred 2/Workflow Data/com.realityloop.alfreddrupalworkflow
×
×
  • Create New...