Highlighted

Running FrameScript command with ExtendScript

Community Beginner ,
Dec 01, 2018

Copy link to clipboard

Copied

Hi,

Have you ever tried to run FrameScript command inside ExtendScript code ?

is that possible ?

Adobe Community Professional
Correct answer by frameexpert | Adobe Community Professional

The best way to do this is to first get your FrameScript code running from a command line. Check the documentation for RunEslBatch and you will see how to do it.

Once this is working, then go to your ExtendScript script and use the File object and methods to create a .bat file that commands the appropriate command line call that you determined for calling your FrameScript code. Use the execute () method on the File object of the .bat file that you created and it should do the job.

You can also use ExtendScript's CallClient method, but I am not exactly sure what you would need as parameters. I can look into this more if you don't want to use the other approach.

TOPICS
Scripting

Views

187

Likes

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

Running FrameScript command with ExtendScript

Community Beginner ,
Dec 01, 2018

Copy link to clipboard

Copied

Hi,

Have you ever tried to run FrameScript command inside ExtendScript code ?

is that possible ?

Adobe Community Professional
Correct answer by frameexpert | Adobe Community Professional

The best way to do this is to first get your FrameScript code running from a command line. Check the documentation for RunEslBatch and you will see how to do it.

Once this is working, then go to your ExtendScript script and use the File object and methods to create a .bat file that commands the appropriate command line call that you determined for calling your FrameScript code. Use the execute () method on the File object of the .bat file that you created and it should do the job.

You can also use ExtendScript's CallClient method, but I am not exactly sure what you would need as parameters. I can look into this more if you don't want to use the other approach.

TOPICS
Scripting

Views

188

Likes

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
Dec 01, 2018 0
Adobe Community Professional ,
Dec 01, 2018

Copy link to clipboard

Copied

The best way to do this is to first get your FrameScript code running from a command line. Check the documentation for RunEslBatch and you will see how to do it.

Once this is working, then go to your ExtendScript script and use the File object and methods to create a .bat file that commands the appropriate command line call that you determined for calling your FrameScript code. Use the execute () method on the File object of the .bat file that you created and it should do the job.

You can also use ExtendScript's CallClient method, but I am not exactly sure what you would need as parameters. I can look into this more if you don't want to use the other approach.

Likes

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
Reply
Loading...
Dec 01, 2018 1
Community Beginner ,
Dec 03, 2018

Copy link to clipboard

Copied

Thanks, I tried first option.

Likes

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
Reply
Loading...
Dec 03, 2018 0
Adobe Community Professional ,
Dec 03, 2018

Copy link to clipboard

Copied

Did it solve the problem for you? If so, please mark my answer as correct. Thank you very much.

Likes

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
Reply
Loading...
Dec 03, 2018 0
Jacob_AA LATEST
Community Beginner ,
Dec 03, 2018

Copy link to clipboard

Copied

Yes, The first option helped me.

Likes

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
Reply
Loading...
Dec 03, 2018 0