Copy link to clipboard
Copied
Hi
I am working on script to collect Items in folder has the same name but not work well
for(var a = 1; a <= app.project.numItems; a++)
{
if((app.project.item(a).name == app.project.item(a).name) && (app.project.item(a) instanceof CompItem)){
app.project.item(a).parentFolder = app.project.item(a);
}
}
Please,,, Help ;-}
Sorry for those strange answers my phone bugged out.
So I was telling that the folderID array is a storage and will have to loop through it:
var folderID = new Array();
for(var a = 1; a <= app.project.numItems; a++) { folderID.push(app.project.item(a).id) }
for(var i=0;i<folderID.length;i++){app.project.itemByID(folderID[i]).selected = true}
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Thanks in advance, But it isn't working because ( app.project.itemByID ) works only with one ID and not Array
var folderID = new Array();
for(var a = 1; a <= app.project.numItems; a++)
{
folderID[folderID.length] = app.project.item(a).id;
}
app.project.itemByID[folderID].selected=true;
A simple test but it works only for one ID and not with Array
Copy link to clipboard
Copied
Sorry for those strange answers my phone bugged out.
So I was telling that the folderID array is a storage and will have to loop through it:
var folderID = new Array();
for(var a = 1; a <= app.project.numItems; a++) { folderID.push(app.project.item(a).id) }
for(var i=0;i<folderID.length;i++){app.project.itemByID(folderID[i]).selected = true}
Copy link to clipboard
Copied
Oui ça marche Merci beaucoup pour votre temps et vos efforts :-))
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied