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

Delete nodes in separate folder from viewed thumbnails

Engaged ,
May 28, 2014 May 28, 2014

I want to delete part of this tree. I have a folder that has multiple folders inside it. One specific folder needs to be emptied after the operator clicks a button. Do I need to create thumbnails for all of these files to delete them. Or can I just use their file strings and use app.deleteCollection?

TOPICS
Scripting
334
Translate
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

correct answers 1 Correct answer

Engaged , May 28, 2014 May 28, 2014

Ok I have a solution. I used the command line to delete the files for me. You just have to give it the right directory and poof gone. Here is how it goes.

poopPanel.addBtn.onClick = function(){

            myPath=app.document.presentationPath;

            deleteF="rm -r "+myPath.slice(0,39)+"imaging/*";

            app.system(deleteF);

using the directory you are on I delete of some of the directory and add the folder I want to create the new directory. Then give that to command line.

Translate
Engaged ,
May 28, 2014 May 28, 2014
LATEST

Ok I have a solution. I used the command line to delete the files for me. You just have to give it the right directory and poof gone. Here is how it goes.

poopPanel.addBtn.onClick = function(){

            myPath=app.document.presentationPath;

            deleteF="rm -r "+myPath.slice(0,39)+"imaging/*";

            app.system(deleteF);

using the directory you are on I delete of some of the directory and add the folder I want to create the new directory. Then give that to command line.

Translate
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