Jump to content

Search the Community

Showing results for tags 'xml'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • 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

Categories

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

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Twitter


Website URL


Jabber


Location


Interests

Found 13 results

  1. Hey guys, Say I make a Script Filter and link it to 4 script actions that each perform a different function, but each action needs a different input from the Script Filter, and this is where the problem begins, because the "arg" attribute can hold only one value which will work with just 1 of the 4 actions Right now the only workaround to this problem is to give the "arg" attribute a separated list of multiple values, and then each action would need to parse the input and search for its piece of data, but it's too much parsing and splitting involved.. My opinion is that we should
  2. Hi, I'm working through my first script workflow and it works as I expect, but when I look at the debug in alfred, it outputs [ERROR: alfred.workflow.input.scriptfilter] Code 1 just before the output of the xml. I'm having a hard time finding any information regarding this. Maybe I'm just not looking in the right spot? Thanks for any advice.
  3. Hi, I have a Script Filter with a keyword "KC" that populates results (using php and xml) with items I defined. This is working fine, except the fact that it also shows some unwanted items among my defined results. For example "Key Codes.app" - it shouldn't be there, but Alfred still shows them, probably because this app has letters K and C in it's name. This doesn't make sense. That's completely fine with me if Alfred show other apps like Komodo, Key Codes, Keychain Access, etc. when I start typing my keyword by typing "K". But when I finish typing my keyword "KC" it switches to
  4. The title basically says what I'm trying to do. I have a python script using deanishe's alfred-workflow library that I'm using to build an ssh CLI string. Workflow is set up like this: The Script Filter runs "python jump.py {query}", or attempts to. jump.py looks like the following, and is meant to take args such as "9999,192.168.100.100,50.57.203.223", and buildout 'query', which should be passed to the Terminal Command action of "ssh {query} def main(wf): if len(wf.args): query = wf.args[0] else: query = None print query log.debug(query
  5. Hi, I am using Alfred v2.2(243) I am author of alfred-pinboard and other workflows. You can look up my workflow from github.com/jmjeong/alfred-extension I have some question about alfred workflow extension. I tried to find document about this, but I failed. 1. Is there any limit of items of workflow: the maximum number of items, and maximum size of string? 2. Is there any time lime for script to be executed? The result of of alfred-pinboard output is as follows when it is executed in the shell. - http://f.cl.ly/items/3n352G0Z0M0A302n0i1R/~DropboxAppsAlfredalfredprefer.
  6. Hi Alfred users. I'm not completely sure this is a bug so I'm posting it here first. I have written a script that outputs xml which some times contains special characters. It seems that the xml interpreter in Alfred does not know what to do with those and aborts the whole script filter without any error in the debug log. A simple example would be: <?xml version="1.0" encoding="UTF-8"?><items><item arg="http://www.glossed.it/highlights" valid="YES" type="file"><title>title Ð</title><subtitle>test</subtitle><icon type="fileicon"><
  7. Bit of a funny one this. Basically, I'm posting here because I've been trying to debug an error that some users are having with a workflow I made but I've reached a point where I can't go make any further progress without assistance from "on high". I verified both users were using the latest version of Alfred, and had them run the workflow's script in the Terminal (no errors) and send me the generated XML. I can feed the XML back into my Alfred and the results show up just fine. There are also no non-ASCII characters in the XML which might have caused text encoding issues. I have b
  8. Hey Guys, I was playing around with the Script Filter XML a bit and now I have the following script, which does not work, but I cant tell why: cat << EOB echo "<?xml version='1.0'?>" echo "<items>" for line in $(gpg --list-keys | grep -E -o "\b[a-zA-Z0-9.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9.-]+\b") do echo "<item uid='$line' arg='$line'>" echo "<title>$line</title>" echo "</item>" done echo "</items>" EOB Strange thing is: When I execute the script in my bash an copy the output as xml in the ScriptFilter, everything works fine. I s
  9. I've got a workflow that pulls down the latest exchange rate of bitcoins. Everything works great as long as I pass an "arg" which is a string. If I attempt to pass a variable, the workflow fails. See the python script here: https://gist.github.com/spudstud/5473927 Basically: this works: currentValue = 42 print ("<items><item uid='foo' arg='42' valid='yes'..... But this doesn't: currentValue=42 print ("<items><item uid='foo' arg="+currentValue+" valid='yes'..... Update: 2013-04-27 Thanks for the solution Tyler. I ended up using
  10. Bash Workflow Handler As my OmniFocus workflow does most of its work in the shell, I created a bash workflow handler to reduce the overhead when creating feedback xml and dealing with preferences. Download Download it from GitHub and put it into your workflow directory. Usage Import handler into your script . workflowHandler.sh Create feedback XML # create feedback entries addResult "uid" "arg" "title" "subtitle" "icon" "valid" "autocomplete" # get feedback xml getXMLResults Get BundleID BUNDLEID="$(getBundeId)" Get data dir DATADIR=$(getDataDir) Ge
  11. I'm trying to generate a URL based on a query that I give to Alfred. I set up the XML the following way. It looks like the "arg" attribute doesn't like the ampersands in the URL. If I remove the ampersands it seems to work correctly and passes it to the next step in the workflow. <?xml version="1.0"?> <items> <item uid="sview" arg="http://maps.google.com/maps?q=&layer=c&cbll=37.33741330000001,-122.04509040&cbp=12,0,0,0,0"> <title>http://maps.google.com/maps?q=&layer=c&cbll=37.33741330000001,-122.04509040&cbp=12,0,0,0,0</title>
  12. I've created a workflow that allows me to create new stories in pivotal tracker (e.g, "pt this is the name of a new story") which has been fantastic to have. What I'd like to do next is to take the XML response and parse out the useful piece of information: namely the Tracker story number that's generated. So far, the work I've done has been purely through bash and no "real" language. I'm wondering how I would go about implementing the next step. Thanks! K
  13. I'm not used to deal with xml files but when i was developing one of my workflow (show google chrome tab) i couldn't see all of the suggestion it was supposed to be shown. And after a while i founded that putting the "&" character in the <title> or <subtitle> was making an error. For example this doesn't shows up in Alfred. <items> <item uid="suggest {query}" arg='plop'> <title> a tab </title> <subtitle> http://www.alfredforum.com/page/index.html?do=add&category= </subtitle> <valid> yes &
×
×
  • Create New...