hi folks,
im trying to split a footage path into an array on windows. but with no luck:
Code:
var selItems = app.project.selection;
if (selItems.length > 0){
for (i=0; i < selItems.length; i++){
var footagePath=selItems[i].file;
alert (footagePath);
var splitFootagePath = footagePath.split("/");
alert (splitFootagePath);
}
} else {
alert("Error");
}
this line:
Code:
var splitFootagePath = footagePath.split("/");
causes this error:
Quote:
Unable to execute script at line 6. Function footage.split is undefined
any help?
thanks in advance,
payton