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

$.writeln() and console

New Here ,
Jun 16, 2016 Jun 16, 2016

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…

TOPICS
Scripting

Views

1.1K

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
community guidelines
Contributor ,
Jun 16, 2016 Jun 16, 2016

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.

Votes

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
community guidelines
New Here ,
Jun 17, 2016 Jun 17, 2016

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 ?Capture d’écran 2016-06-17 à 11.44.59.png

Votes

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
community guidelines
Contributor ,
Jun 17, 2016 Jun 17, 2016

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.

Screen Shot 2016-06-17 18.53.41.png

thankyou

mg.

Votes

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
community guidelines
New Here ,
Jun 17, 2016 Jun 17, 2016

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.

Capture d’écran 2016-06-17 à 12.15.11.png

Votes

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
community guidelines
Contributor ,
Jun 17, 2016 Jun 17, 2016

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?

Screen Shot 2016-06-17 20.32.53.png

Votes

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
community guidelines
New Here ,
Jun 17, 2016 Jun 17, 2016

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.

Votes

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
community guidelines
New Here ,
Jun 17, 2016 Jun 17, 2016

Copy link to clipboard

Copied

LATEST

OK, I remove the app, reinstall… same bugs.

I relaunch InDesign and now it's good.

Votes

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
community guidelines