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

write a script using another script?

New Here ,
Nov 01, 2015 Nov 01, 2015

Copy link to clipboard

Copied

how can i write a script that selects three text frames at a time, and then runs the merge text frames script and selects the merge document button on the dialog box, and then repeats til the end of the document.

TOPICS
Scripting

Views

403

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
Guide ,
Nov 01, 2015 Nov 01, 2015

Copy link to clipboard

Copied

Hi,

Use #include <your next script>, #include <your next script>, #include <your next script>........

it will run one one..but remember all the scripts should be in one folder

Karthi

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
Advisor ,
Nov 02, 2015 Nov 02, 2015

Copy link to clipboard

Copied

It is quite easy to run a script from another script. Simply use:
app.doScript(File('path to the other script'));

but simulating clicks on the dialog buttons is next to impossible (it might be possible, in a windows enviroment to use a combination of vbscript and AutoIt - AutoIt, but in the end it's such a hassle you would better just write the whole script from scratch to do what you need)

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
Enthusiast ,
Nov 02, 2015 Nov 02, 2015

Copy link to clipboard

Copied

Hi,

Another way to call the another script.

#includepath "/..../..../..../....../10_CheckList_Testing"

#include "XXXX_FirstPart.jsx"

Your Original Script

#includepath "/..../..../..../....../10_CheckList_Testing"

#include "XXXX_SecondPart.jsx"

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
New Here ,
Nov 02, 2015 Nov 02, 2015

Copy link to clipboard

Copied

LATEST

to new to scripting to write it myself. Really wish i could, i just doing simple scripts right now. real simple.

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
New Here ,
Nov 02, 2015 Nov 02, 2015

Copy link to clipboard

Copied

thanks for the advice guys i will try it both ways.

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