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

Script avec fichier excel

New Here ,
Oct 23, 2017 Oct 23, 2017

Copy link to clipboard

Copied

Bonjour,

Je désespère de trouver une solution ...

J'ai 500 photos et 10 scripts.

Je voudrais appliquer a chaque photo un certain script.

Ex

Photo 1 = Script 2

Photo 2 = Script 6

Photo 3 = Script 3

Photo 4 = Script 1

Photo 5 = Script 10

Est il possible de le faire en créant un fichier txt pour lui indiquer les association a faire ?

Merci de votre aide

TOPICS
Actions and scripting

Views

303

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
Adobe
People's Champ ,
Oct 24, 2017 Oct 24, 2017

Copy link to clipboard

Copied

LATEST

maybe so ?

var dir = "C:\\SomeFOLDER\\WorkingDir";

//or use single slash: var dir = "C:/SomeFOLDER/WorkingDir";

var scripts_dir = "C:\\SomeFOLDER\\YourScriptsFolder";

/////////////////////////////////////////////////////////////////////////////

function f(file_name, script_name)

    {

    try {

        app.open(dir + "\\" + file_name);

        var __doc = app.activeDocument;

        $.evalFile(scripts_dir + "\\" + script_name);        

        __doc.close(SaveOptions.SAVECHANGES);

        }

    catch (e) { alert(e); }

    }

/////////////////////////////////////////////////////////////////////////////

e("Photo 1.jpg", "Script 2" )

e("Photo 2.jpg", "Script 6" )

e("Photo 3.jpg", "Script 3" )

e("Photo 4.jpg", "Script 1" )

e("Photo 5.jpg", "Script 10")

// and so on...

// or put this lines into some file.txt and uncomment next line

// $.evalFile("file.txt");        

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