Hello,

For compositions that were created on Tiger, the syntax is the same but if you create a new composition on Leopard you must use the new _javascript_ syntax. It has new benefits of typed inputs and outputs, named ports, the ability to create structures, and global variables. It is a little longer, but much easier to read both within the code and within the composition.

why does this ( _javascript_-patch connected to the rsspatch with the default apple url)  no longer work in leopard?
outputs[0] = inputs[0]["article_1"]["description"];


The new syntax requires you to define a method signature, and to create a result object where the output ports are properties of that object.

//First, follow the JS template provided on new patches and modify the method signature to fit your data
function (__string description_of_article1) main (__structure feed) 
{
// Next, create a result object to return
var result = new Object();

// Verify that you have valid data on input ports. You will always need to do this
if(feed != null) {
// Now set the output port
result.description_of_article1 = feed[0]["description"];  //Note: Same as feed[0].description
}

// Return the object which contains the output values
return result;
}

Attachment: basicJS.qtz
Description: application/quartzcomposer

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to