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

doScript in other programs

LEGEND ,
Jun 03, 2010 Jun 03, 2010

I do very little work in Photosop and Illustrator.

Is there an equivalent to doScript in those programs? A quick scan of the DOM did not reveal anything useful...

Harbs

TOPICS
Scripting
1.4K
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

Mentor , Jun 03, 2010 Jun 03, 2010

Harbs wrote

> So JS launching JS is a no-go (without using BrindgeTalk or what-have-you). Right?

Harbs, what are you trying to achieve? ExtendScript has $.evalFile(), so that should be available cross application ...

With InDesign you'd only use doScript to cross language borders or to have those side effects on undo history.

Dirk

Translate
Mentor ,
Jun 03, 2010 Jun 03, 2010

I don't know - better ask in the respective forums.

Dependent on your use case, I'd also have a deeper look at BridgeTalk.

Dirk

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
Valorous Hero ,
Jun 03, 2010 Jun 03, 2010

No, there isn't. As a workaround, you can send a script from Photoshop/Illustrator to InDesign via BridgeTalk and run doScript from there.

Kasyan

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
LEGEND ,
Jun 03, 2010 Jun 03, 2010

Thanks guys.

I wanted to make sure I didn't miss anything obvious before I start brainstorming...

Harbs

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
Guide ,
Jun 03, 2010 Jun 03, 2010

A quick outline… of my findings

Id has:

doScript() given language JS, AS, VB as you already know.

Ai has:

do javaScript with arguments from either AS or VB but NOT the other way.

AS & VB can play out recorded actions with do action but JS cannot.

No ScriptListener plug-in.

Ps has;

do javaScript with arguments from either AS or VB but NOT the other way.

JS, AS & VB can play out recorded actions.

ScriptListener plug-in that records action manager or VB code.

a batch command.

CS4 & 5 have app.system() to command line (not listed in documentation)

Br is JS only and also has app.system()

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
LEGEND ,
Jun 03, 2010 Jun 03, 2010

Hi Mark,

So JS launching JS is a no-go (without using BrindgeTalk or what-have-you). Right?

Harbs

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
Guide ,
Jun 03, 2010 Jun 03, 2010

Harbs, Im working with well out of date software. I've never tried File.execute() to see if that works, I don't think that you are going to be able to pass any info? In the CS2 version there was a whole host of scripts that resided in the startup folder of app support (Adobe stuff). In ESTK each app had a listing of addition functions for cross app communication. Execute script from File, Place File etc. If I recall correctly almost all of this was done via BridgeTalk messaging. Reading the file, eval send message etc. I got way out of my depth very quickly but they may provide some clues or a starting point for you. You may have to dig about as I don't think newer cs versions come with any of this installed? BridgeTalk I find tough I can get file objects and functions thru but the back & fourth info no but things are better now than my in my version. I cheat and go back to applescript just so's I can get it done for now…

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
Advocate ,
Jun 03, 2010 Jun 03, 2010

> ScriptListener plug-in that records action manager or VB code.

It looks like javascript code to me...
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
Advocate ,
Jun 03, 2010 Jun 03, 2010

Bridge also has "do javascript" from AS.

From a speed point of view in AppleScript, a similar speed-up happens in AI if the script is declared a script object and "run script" is used. Nothing speeds up Photoshop...

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
Mentor ,
Jun 03, 2010 Jun 03, 2010

Harbs wrote

> So JS launching JS is a no-go (without using BrindgeTalk or what-have-you). Right?

Harbs, what are you trying to achieve? ExtendScript has $.evalFile(), so that should be available cross application ...

With InDesign you'd only use doScript to cross language borders or to have those side effects on undo history.

Dirk

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
LEGEND ,
Jun 04, 2010 Jun 04, 2010
LATEST

Hi Dirk,

Ah, yes. Good old eval...

That's the obvious answer I was missing!

Excellent!

Harbs

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