Skip to main content
woo1337
Participant
June 16, 2016
Question

$.writeln() and console

  • June 16, 2016
  • 1 reply
  • 1216 views

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…

This topic has been closed for replies.

1 reply

milligramme
Inspiring
June 17, 2016

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.

woo1337
woo1337Author
Participant
June 17, 2016

Thank you mg,
I try your code, I can't see my var aaa, and selection is "nothing" in DataBrowser, is it ok ?

milligramme
Inspiring
June 17, 2016

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.