Copy link to clipboard
Copied
Hi,
First question, why $.writeln() doesn't return data in Console Javascript when I'm linked to InDesign / I don't know how to use the apps array ?
Second, I can't acces selected elements with the tree data navigator.
@Adobe : Extendscript Toolkit is not a modern tool and really slow on Mac OS…
Copy link to clipboard
Copied
Hi
1st.
what kind of `data` do you want get?
is `apps array` like this snippet?
$.writeln( [1,2,[3,4],5] ); // => 1,2,3,4,5
$.writeln( [1,2,[3,4],5].toSource() ); // => [1,2,[3,4],5]
2nd.
use `$.bp( [condition] )` or add BreakPoint on ESTK
var sel = app.selection;
$.bp( sel.length > 0); // you can access DataBrowser
alert( 'nothing.' );
thank you
mg.
Copy link to clipboard
Copied
Thank you mg,
I try your code, I can't see my var aaa, and selection is "nothing" in DataBrowser, is it ok ?
Copy link to clipboard
Copied
Hi woo1337
did you select anything on activeDocument?
if something(graphic frame, text frame, word, etc ) selected, $.bp() will work and it pause to run ESTK.
thankyou
mg.
Copy link to clipboard
Copied
My InDesign is CC2015, app > selection is OK but no var sel… in top right "Navigateur de données" on tiny menu I check all options.
Copy link to clipboard
Copied
Hmm
it seems your screenshot is not pausing.
well, click the right side of line number, red dot will appear.
red (enable) -> dark red (disable) -> none (remove)
you can also use this breakpoint marker
does this work?
Copy link to clipboard
Copied
I can do a breakpoint if I link (green icon before the line number) to Extendscript Toolkit CC not Adobe InDesign CC 2015.
Copy link to clipboard
Copied
OK, I remove the app, reinstall… same bugs.
I relaunch InDesign and now it's good.