Jump to content

Search the Community

Showing results for tags 'variables'.

  • 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 8 results

  1. Hello all, I know this is an already talked about subject, but despite having read all docs and deanishe's post, I can't get to figure this one out. I'm creating a loop through a recurrent Script filter, using PHP In the JSON I output, I use variables, but for some reason they don't seem to get passed down the workflow. Here is the JSON I output: { "variables":{ "afp_server_path":"afp:\/\/10.0.0.200\/Design%20System\/Assets\/Videos\/Venues\/DJI_0001_.mov", "videoasset_gif_path":"\/Users\/me\/Desktop\/test\/DJI_0001.gif" } }
  2. Note: This post is out of date as of Alfred 3.6 (which introduced AppleScript functions to set and remove variables). There is an updated version on my own site: Workflow/environment variables in Alfred. This post will not be updated due to the difficulty of editing complex posts using the forum software. Sorry. This is a brief look at how to get, set and save variables in code (i.e. in Script Filters, Run Script Actions, etc.). In Alfred 2, you had one single variable to work with: the {query} macro. Alfred 3 adds the ability to specify as many variables
  3. Alfred's default handling of workflow variables set by modifiers is … odd. Setting variables via Script Filter feedback at the top level and via items behaves sensibly, and as you might expect. Namely, they are merged with existing variables, overwriting any of the same name. Setting variables via mod does something completely different. If you set any variables via a mod all other variables created during the execution flow (i.e. set anywhere but in the configuration sheet) are dropped on the floor. Not just top-level variables, but also pre-existing ones set upstream via Args
  4. Hey All! Long time listener, first time caller. QUESTIONS Is there a way to set an Alfred variable from within a Run Script (bin/bash) command? For reference I'm calling a python script (i.e., python my_script "{query}") If not, how can I store the output of the Python script when it is a complex data type like a dictionary? CONTEXT I'm trying to write a workflow that utilizes an API, grabs some values, and then opens a URL. The user will enter an ID, the python Run Script will retrieve information about this via the API call, and then using the
  5. Thanks in advance for the help! I'm trying to pass two (or multiple) variables to AppleScript. For example, “keyword query1 query2” and then get both arguments into AppleScript. Or something like “keyword query1^query2” and then split them. I feel like I’m almost there, but missing something… I guess I should add that I’m using Alfred 3.5.1 with Powerpack. I read this article: but my dumb brain couldn’t figure it out… Any help would be greatly appreciated. My use case for this particular workflow is AppleScipt, but I'd be interested in knowing how to do the sam
  6. I'm trying to create a very simple workflow 1. Keyword: mic (with space) argument required http://d.inco.re/J07mwL 2. Run Script osa script set volume input volume {query} http://d.inco.re/0y7Fq 3. Post Notification Microphone Volume Set to {query} % http://d.inco.re/dceme2 I have no idea any notification does not show {query} at all Thanks in advance for all your help.
  7. Alfred version 3.2 pre-release (757) It's a little hard to explain, so here's a workflow to demonstrate the bug. And a screenshot: When External Trigger "target" is called the first time via the top row of elements, the variables are correctly passed to the red Script Filter. However, when the red Script Filter calls itself via the same external trigger, no variables are passed to the Script Filter by External Trigger "target". The variables are passed to Debug and Run Script objects (not visible in the screenshot). arg/query is pas
  8. Hello all- I'm quite new to the var/arg step in Alfred, but what I need to accomplish is this: Keyword to input first query, in this case {first name}. Store first name value as variable. Second input to be stored, in this case {last name}. Store last name value as variable. Pass Alfred variables into NSApplescript to be converted to applescript variables. I understand that you can simply use q as the variable for a single input, but how do you reference multiple Alfred-stored variables in the applescript? Thank you so much.
×
×
  • Create New...