Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

234
Vistas
ProjectItem.moveBin() not working correctly Extends Script (Adobe)

im currently developping a script with extends script which is a javascript-similar script language, that we use to automate tasks in Adobe's Softwares (here its premiere pro) Here is what my code is doing : -i import files from a folder in my computer -then i put them in a bin in my prpro project -and for each of this file i create a bin with the file and a sequence

My problem is that the last file is not move in a bin

here is my code

    root = app.project.rootItem
    newFilesPath = "C:/Path"
    newFilesBin = root.children[0]
    
    app.project.importFiles(newFilesPath, true, newFilesBin, false)
    
    app.project.save()
    
    newFilesBin = root.children[0]
    
    for(i=0; i<newFilesBin.children.numItems; i++){
        newFile = newFilesBin.children[0]
        name = newFile.name
        
        newBin = root.createBin(name)
        file.moveBin(newBin)
    }

So if i put several file in the path it doesnt move the last file instead of moving every files

Thanks for help

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I found the solution :

i just change the parameters of my for loop

for(i=-1; i<newFilesBin.children.numItems+1; i++)

I dont exatly know why its working but it works

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda