Jump to content
luckman212

Allow Dynamic Placeholders to be used in JSON / Script Action output

Recommended Posts

I have a Script Action that outputs { "alfredworkflow" : ... } JSON to set variables. The script is ruby/python and generates NNN number of "clipNNN" variables that are set to {clipboard:NNN} contents. This doesn't work. It creates the vars but they are just statically set to the literal "{clipboard:1}" etc. See related thread.


It would be quite a lot better if the placeholder substitution also applied to dynamic Script Action JSON output.

 

Share this post


Link to post
Share on other sites
54 minutes ago, luckman212 said:

It would be quite a lot better if the placeholder substitution also applied to dynamic Script Action JSON output.

 

For your particular use case, yes, but in general, no.

 

You don't want Alfred (or any software, for that matter) altering the output from your scripts by default. It makes it impossible to emit anything that software "understands" without it getting mangled.

 

Alfred already gives you the possibility to dynamically expand macros using JSON Config + Arg and Vars:

 

image.thumb.png.5528e096e415bfa8babaf54b4823efe0.png

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...