Skip to main content
Bed30321077z973
Inspiring
February 6, 2025
Answered

is it possible to rename files as they are being imported (on extendScript)?

  • February 6, 2025
  • 1 reply
  • 216 views

Lets say I have these:

folder 1: 

img1

img2

folder 2:

img1

imgX

 

When importing: via:

proj.importFiles([pathToFolder1img1,..pathToFolder2img1..

The projet will contain 2 items called img1, correct?

I was wondering if I could rename them as they are being imported somehow?

I guess I can only rename them AFTER they have been imported? it is impossible to make them get custom names right when they are being imported?

 

Correct answer Bruce Bullis

PPro does not ever rename files on disk, although your ExtendScript code can.


You can use ExtendScript to rename projectItems, but projectItems do not exist until you've imported media into the project. 

It is impossible to rename a projectItem before it exists. 🙂

1 reply

Bruce Bullis
Bruce BullisCorrect answer
Legend
February 6, 2025

PPro does not ever rename files on disk, although your ExtendScript code can.


You can use ExtendScript to rename projectItems, but projectItems do not exist until you've imported media into the project. 

It is impossible to rename a projectItem before it exists. 🙂