Jump to content

zsteir

Member
  • Content Count

    7
  • Joined

  • Last visited

  1. PS: A reboot *of the system* seems to have solved this. I'm leaving the original comment up, just in case others run into this.
  2. I have the same issue, but the mdutil command did not help. The volume shows that it is being indexed. Even weirder, spotlight *used* to show these results, but it just stopped showing results on the mounted drives. I've tried "reload", and I've confirmed that spotlight can find the items. Any ideas? Thanks
  3. Super. All worked out. Thank you.
  4. Thanks. Just to be clear: the feedback mechanism will work if I change the output to JSON?
  5. Hi Deanishe, Sorry, but I wonder if you can help a bit more. I'm sorry for the newbie question. I am working with a python script that output an XML (using your Workflow library). It prepares a dictionary like this, where the values have been extracted previously from a text file, etc. <EDIT>: after digging around a bit more, I suspect that I am using a Workflow library that is too old. I guess I need the V2 branch. I'll try to figure out how to add it... </EDIT> _dict = {'title': title, 'uid': _arg, 'valid': True, 'arg': _arg, 'subtitle': sub } After your previous suggestion, I found the example XML file for a script filter of this kind, which recommends using something like this: <item uid="home" arg="~/" valid="NO" autocomplete="Home" type="file"> <title>Home Folder</title> <icon type="fileicon">~/</icon> <subtitle>Home folder ~/</subtitle> <subtitle mod="fn">Subtext when fn is pressed</subtitle> <subtitle mod="ctrl">Subtext when ctrl is pressed</subtitle> <subtitle mod="alt">Subtext when alt is pressed</subtitle> <subtitle mod="cmd">Subtext when cmd is pressed</subtitle> <quicklookurl>https://www.alfredapp.com/</quicklookurl> <mod key="shift" subtitle="New subtext when shift is pressed" valid="yes" arg="shiftmod"/> <text type="copy">Text when copying</text> <text type="largetype">Text for LargeType</text> </item> But I can't seem to figure out to properly add additional items to _dict. When I use, for example: _dict = {'title': title, 'uid': _arg, 'valid': True, 'arg': _arg, 'subtitle': sub, 'subtitle mod=\"cmd\"' : "whatever", } I get an error "unexpected keyword argument ". It is ultimately sent to Alfred like, this, with prep_res being the array of _dict(s), I think. What generates the error is the add_item. for item in prep_res: wf.add_item(**item) wf.send_feedback() I'm sure I'm not constructing the dict properly, but I'm afraid I'm in over my head. The entire script is here: https://dl.dropboxusercontent.com/u/565419/bibquery.py. Ideas? Many thanks.
  6. Hi all, I've got a query to search BibDesk (based on BibQuery by Hackademic). See pic HERE. The topmost trigger "bb", can call some of the other trigger "ba" and "bt" (which I do using applescript). However, "bb", "ba", and "bt" share most of their actions. Right now, this results in a mess. But using a junction doesn't help, since it doesn't allow for modifier. Is there anyway to create some sort of junction that allows for modifiers? Thanks.
×
×
  • Create New...