URL: Choose Folder Dialog

Aenean lacinia bibendum nulla sed consectetur. Sed posuere consectetur est at lobortis. Etiam porta sem malesuada magna mollis euismod. Nullam id dolor id nibh ultricies vehicula ut id elit.

Nullam quis risus eget urna mollis ornare vel eu leo. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras mattis consectetur purus sit amet fermentum. Nulla vitae elit libero, a pharetra augue. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Cras mattis consectetur purus sit amet fermentum.

var cnvs = document.windows[0].selection.canvas var dataKey = 'SKU' var fileExtension = 'JPG' var keyValues = new Array() for(i = 0; i < cnvs.graphics.length; i++){ aGraph = cnvs.graphics[i] aValue = aGraph.getUserData(dataKey) if(aValue != null){keyValues.push(aValue)} } var valCount = keyValues.length if(valCount == 0){ new Alert('MISSING DATA KEYS','No graphics are assigned the data key:\n\n\t' + dataKey).show(function(result){throw new Error('script cancelled')}) } else { fldrURL = URL.chooseFolder() if (fldrURL == null){throw new Error('user cancelled')} fldrURLstr = fldrURL.string for (i = 0; i < valCount; i++) { var keyValue = keyValues[i] aStr = fldrURLstr + keyValue + '.' + fileExtension fileURL = URL.fromString(aStr) fileURL.fetch((function(keyValue, data) { aGraph = cnvs.graphicWithUserDataForKey(keyValue, dataKey) aGraph.image = addImage(data) }).bind(this, keyValue)) } }
UNDER CONSTRUCTION

This webpage is in the process of being developed. Any content may change and may not be accurate or complete at this time.

DISCLAIMER