Copy link to clipboard
Copied
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
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Thanks guys.
I wanted to make sure I didn't miss anything obvious before I start brainstorming...
Harbs
Copy link to clipboard
Copied
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()
Copy link to clipboard
Copied
Hi Mark,
So JS launching JS is a no-go (without using BrindgeTalk or what-have-you). Right?
Harbs
Copy link to clipboard
Copied
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…
Copy link to clipboard
Copied
> ScriptListener plug-in that records action manager or VB code.
Copy link to clipboard
Copied
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...
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Hi Dirk,
Ah, yes. Good old eval...
That's the obvious answer I was missing!
Excellent!
Harbs
Find more inspiration, events, and resources on the new Adobe Community
Explore Now