• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

javascript to rename files

Guest
Dec 04, 2012 Dec 04, 2012

Copy link to clipboard

Copied

Dear sir:

if I have a folder contains image file like this:

box0001.png-box0090.png, I want to save box0001.png-box0015.png to one folder,

and box0035.png-box0050.png to another folder,

can I do this by using javascript for ae?

or how can I find source to do this?(because I did not find in ae javascript reference?)

thanks a lot!

TOPICS
Scripting

Views

2.5K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 04, 2012 Dec 04, 2012

Copy link to clipboard

Copied

Wouldn't it be just as easy to drag the desired files into a new folder?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 05, 2012 Dec 05, 2012

Copy link to clipboard

Copied

thanks for the reply!

but the folder contains hundreds of range combinations!

its not easy to do by hand!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 05, 2012 Dec 05, 2012

Copy link to clipboard

Copied

LATEST

This should be pretty easy with the .copy() and .remove() file operations. See Adobe's JavaScript Tools Guide for a complete list of file operations.

Dan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 04, 2012 Dec 04, 2012

Copy link to clipboard

Copied

You need to call an external command like an ordinary command line or batch file. AE or scripts can't do file operations outside their render and project management stuff.

Mylenium

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines