Jump to content

amahabal

Member
  • Content Count

    6
  • Joined

  • Last visited

  1. In a workflow, I had an NSAppleScript containing this line: set thePerspective to system attribute "DESIRED" I then also added a display dialog to show the value. I was getting nothing. I added a debug before that, and sure enough, the variable was set. I then replaced NSAppleScript with RunScript with OSAScript as the language, and no other changes (except, of course, "on alfred_script" --> "on run"), and it worked fine. Any ideas what is going on here? I had assumed the two to be drop-in replacements...
  2. It depends on the query (which is coming in through vars). Here, I show some results when the query context is "Alfred". The distinct logo tells me that this is the context. When the context is a URL, it can be very long and I can't stuff it into the query box and still have space for additional words that filter down the result set.
  3. Thanks for the response, @dfay. I do use subtitles for information about the items. What this top item is doing is information about the entire list of responses. What I am doing is this: I have set up a system, backed up by a local database, where I can set up sets of contexts (people, projects, etc), and for which I can capture URLs, file links, and other bookmarkable paraphernalia. Now, for a given hub, all these possibilities are shown, plus other possibilities such as "Create an omnifocus project for this" (shown only if none exists), "Create a Devonthink group", etc. All the heavy lifting is done by python scripts, and Alfred's role is showing the responses and shuffling state around, and enabling the possibility of filtering down shown responses based on what I type in the box. The box real estate is thus at a premium, and I don't have space to show what item the responses are for (the python script gets it through variables, not through argv). What I need, then, is a way to show a response at the top announcing "This is me!". Currently, I do have that, but it can be anywhere. A distinct icon helps me see it if it is in the top 9, but a little additional UI assistance from Alfred will help. Hope that explains the strange request
  4. For a Script Filter, I want to use Alfred's smart ordering, which one can produce by passing in uid's to items. However, I want to exclude precisely one item from this, which I always want to be the top result. Is there any way to get the best of both worlds? Incidentally (and maybe this should be a separate question), in my system, this fixed item is always (intentionally) invalid: it is additional information that just hangs in there. Is there any way to make the default selection (what gets actioned if we press return) start at the first valid entry? Thanks! Abhijit
  5. Thank you for such a detailed response! The behavior you demonstrate here is what makes communities function so well.
  6. New here, loving Alfred :) So I wrote my first script filter and it works. The possibilities are indeed immense! My script just outputs "items" as the top level entry in JSON. But an example suggested that I could also output variables. Where can I read about all possible output keys? Relatedly, if the next item in the workflow is a script, I believe that it gets the "arg" of the selected item. Is there any way to access the title, the variables in the previous section, and so forth? Finally, what is the lifetime of these variables? (i.e., What if the same script in the same workflow runs again?). My prior experience is with Keyboard Maestro, which has global variables that seemingly live forever. (Oh, and does alfred have long-lived variables?) Many thanks! Abhijit
×
×
  • Create New...