Jump to content

bluecorr

Member
  • Posts

    6
  • Joined

  • Last visited

bluecorr's Achievements

Helping Hand

Helping Hand (3/5)

0

Reputation

  1. This works beautifully when the file is in the actual Dropbox folder. I get "Not a dropbox file" when it's a file located in a folder added to dropbox via a symlink (ie in default Downloads folder on Mac). Any workarounds? Many thanks for the workflow!
  2. Ok so I used your weather example and valid was set to "no". I've now set it to yes and the result is actionable. Many thanks for all the great work!
  3. Oh! Okay. extensionutils was definitely in the folder (one of the first things I checked) but icon.png wasn't so maybe that was throwing it off.I'm not sure, I've now used workflows.php and it works fine BUT the result doesn't seem actionable. I just want the chosen result copied to clipboard so I have the script filter linked to output cop {query} to clipboard. One thing that's not clear to me in Workflows is whether the {query} passed to output is the original {query} or the one processed by the previous step in the workflow? Many thanks for your help!
  4. Thanks for that. I'm stll struggling though (perhaps cause I'm not a coder but eager to learn). So I've created a script filter with argument required, selected php as the script language and put this (adapted from another workflow): require_once('extension_utils.php'); $utils = new ExtensionUtils(); $query = "{query}"; $item = array( 'uid' => 'suggest ', 'arg' => 'jffk', 'title' => 'kdfkjd', 'subtitle' => 'Search Amazon UK for ', 'icon' => 'icon.png', 'valid' => 'yes' ); echo $utils->arrayToXml($item); If my understanding is right then the above creates the $item array and passes it to extension utils to create xml. Then I'm linking this to output {query} to clipboard. So when I open alfred and type "test myquery" and press enter nothing happens. From all the other examples I've looked at I should be seeing a list of the static elements inside $item, shouldn't I? Thanks
  5. Hi everyone! I'm new to Alfred, not a coder but have adapted a few extensions to suit my needs. I'm not wanting to do a simple (or not) thing: 1. use keyword as a trigger 2. take {query} and pass it to a script (say a php one which echo's the result) 3. take this result and display it as a result which can then be actioned (probably copied). I've looked at the existing examples which use xmlformat (particularly the google autocomplete one) and at the xmlformat example provided but I'm still struggling. So, I thought I need a basic building block to understand how this might work. e.g. 1. trigger keyword: test, argument required 2. pass {query} to php script which does something basic with it e.g. $query = "{query}"; echo $query; then take THIS result and display it in XMLformat for Alfred to show in results. I can't for the life of me work out how to do that! Can anyone help? It's driving me mad! Thank you!
  6. Hi, I'm new to Mac and have discovered Alfred and I'm in love with it. I'm not a developer but I can work out what scripts do but I've hit a brick wall! (after several hours of trying different things!) I'm trying to expand a short url and show it in Alfred's result list. I was able to use shell script and curl to expand it and have it copied to the clipboard but I want it displayed as an action so that I can see it and then copy it but I can't for the life of me work out how to combine the script that expands the URL with the xml script filter! I am guessing I need to pass the result of script 1 to script 2 but not sure how to do that. Can anyone help? Many thanks
×
×
  • Create New...