now browsing by tag

 
 

So here is my work in progress for passing variables directly to Zooper.

So here is my work in progress for passing variables directly to Zooper.

I use the folder Resume event to run the script.

I’m passing the folder name to a text variable LFOLDER and using a text element with the variable #TLFOLDER#

I’m also passing “on” to variable named the same as the folder. In Zooper it using an iconset I created ( one for each folder) & reading the variable uses either the white or green icon.

I have another script send a”” to the text variable and “off” to the folder variable.

var fldr = LL.getEvent().getContainer().getOpener().getLabel();

var intent = new Intent(“org.zooper.zw.action.TASKERVAR”);

var bundle = new Bundle();

bundle.putInt(“org.zooper.zw.tasker.var.extra.INT_VERSION_CODE”,1)

bundle.putString(“org.zooper.zw.tasker.var.extra.STRING_VAR”, “LFOLDER”);

bundle.putString(“org.zooper.zw.tasker.var.extra.STRING_TEXT”, fldr);

intent.putExtra(“org.zooper.zw.tasker.var.extra.BUNDLE”, bundle);

LL.getContext().sendBroadcast(intent);

var intent = new Intent(“org.zooper.zw.action.TASKERVAR”);

var bundle = new Bundle();

bundle.putInt(“org.zooper.zw.tasker.var.extra.INT_VERSION_CODE”,1)

bundle.putString(“org.zooper.zw.tasker.var.extra.STRING_VAR”, fldr);

bundle.putString(“org.zooper.zw.tasker.var.extra.STRING_TEXT”, “on”);

intent.putExtra(“org.zooper.zw.tasker.var.extra.BUNDLE”, bundle);

LL.getContext().sendBroadcast(intent);

]]>