Have the complaining partied deigned to impart the error message or the point at which point and how the operation fails?
Have you taken RulerUnit settings into account in creating the Script?
I saw nothing in the script to set units to pixels so if the user's units are set to percent width and height will always be equal at 100% but I do see .as px which I have never used.
I've changed the script. I now create my path layer using the below function. However, even after explicitly changing the ruler units to PIXELS, the paths I create all seem to be measured in POINTS. Even if the original ruler unit is PIXELS this still happens. Is there any way around this (that is backwards compatable)?
function createPathLayer(title, subPathArray)
var docRef = app.activeDocument;
var originalUnit = app.preferences.rulerUnits;
alert("Orig units " + originalUnit);
app.preferences.rulerUnits = Units.PIXELS;
var myPathItem = docRef.pathItems.add(title, subPathArray);
alert("New units " + Units.PIXELS);
app.preferences.rulerUnits = originalUnit;