Back

If your email is not recognized and you believe it should be, please contact us.

Forum Replies Created

Viewing 14 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • in reply to: Script to list Style based on… on a tree view #14373833

    I’m afraid that the UNICODE characters I use to display the tree connections are not shown here, and I can’t paste any screenshots. Sorry for that.

    in reply to: Scripting button.notify(‘onClick’) doesn’t work #14332275

    I have been doing more tests, and I have found that notify(‘onClick’) works with a checkbox of the same GUI. Maybe it doesn’t work on buttons…

    in reply to: How to change a spread's page width? #1236384

    Thanks Tobias!

    Regards from Spain!

    in reply to: How to change a spread's page width? #12343208

    Well, I have found the solution in http://www.indesignjs.de object model:

    doc.spreads[0].pages[2].adjustLayout({width:’60mm’ , rightMargin:’0′ , leftMargin: ‘0’});

    being doc the active document. By the way, I adjust the left and right margins.

    in reply to: How to make a click radiobutton eventListener work? #14323295

    Basically your post is the solution I have used. Three onClick events. A bit inelegant for me, but… IT WORKS.
    Indeed, that onClick() events aren’t event LISTENERS but event CALLBACKS. I have been using event callbacks long time ago, not a big mystery there. But event listeners… never. And I think our ways (listeners and me) will not cross in the future ;)

    I have read Antonie post too. And yes, I tried to link event and radiogroup cause I started linking the radiobutton but I could not trigger the event, so I went up the hierarchy until I triggered the event (clicking the grey background in the radiobutton group).

    Thnaks for your help!

    And Happy new year for all, crew and members of INDESIGNSECRETS.COM !!

    Best regards from Spain,
    Jose

    in reply to: How to make a click radiobutton eventListener work? #14323356

    Well, I must apologize if you see more than a post of mine talking the same stuff. It seems there’s a little problem.
    Sorry, mates!

    in reply to: How to make a click radiobutton eventListener work? #14323357

    Thanks David, now all is working right!

    Happy new year in advance!!

    in reply to: How to make a click radiobutton eventListener work? #14323359

    I have tried to post a reply on my post, in 2 different computers, with 6 hours of difference, and I cant. Sorry, i post it here…

    Hey Jeremy.
    Thats basically the way i finally do, with 3 onClick calls. A bit inelegant, in my opinion…
    Indeed, they aren’t event LISTENERS but event CALLBACKS. I have been using that callbacks long time ago, no too much mistery there. But listeners…
    I have read Antoine post, too. And yes, I used radiobutton group like trigger for my listener as a last resort. I tried first with the radiobutton itself. Did it work? Nope. I went up the hierarchy and tried again. Same result. Tried the whole group. It worked, but clicking grey background. Something triggered the event, at last. Useless, but working ;). So again on my way with callbacks.

    Thank you for your advices!

    And Happy new year for indesignsecretes.com crew and members!

    Best regards from Spain!!

    in reply to: How to make a click radiobutton eventListener work? #14323360

    Third attempt to post… I have tried 2 times, in 2 computers, with 4 hours between it, no post…

    in reply to: How to make a click radiobutton eventListener work? #14323365

    Well, now the palette works, not using 1 eventListener but 3 onClick’s:

    principio_radiobutton.onClick = function() {
    custom_pos_group.enabled = false;
    }

    fin_radiobutton.onClick = function() {
    custom_pos_group.enabled = false;
    }

    custom_radiobutton.onClick = function() {
    custom_pos_group.enabled = true;
    }

    Now I think the chunk of code in the previous post (event onChange) doesn’t work at all.

    But I wish to learn how to use eventListener properly, for this or others projects.
    Any clue will be well received.

    in reply to: How to make a click radiobutton eventListener work? #14323367

    I have something trying this:

    custom_radiobutton.addEventListener(“onChange”, function() {
    custom_pos_group.enabled = custom_radiobutton.value;
    }
    );

    or this:

    selec_pos_radiogroup.addEventListener(“onChange”, function() {
    custom_pos_group.enabled = custom_radiobutton.value;
    }
    );

    I get the same result, both of them enable the group custom_pos_group, but doesn’t disabled it when i click another radiobutton.

    Well, one step forward at last!

    in reply to: How to make a click radiobutton eventListener work? #14323368

    Hi Jeremy!
    Thanks for your reply.

    I have tried right now this code:

    custom_radiobutton.onChange = function() {
    custom_pos_group.enabled = custom_radiobutton.value;
    }

    but doesn’t work.

    I’ll wait until you can get back to your computer.

    I have seen a web where can read that you must use

    #include ‘EventManager.jsinc’

    instruction prior to use events, but i think it’s not needed, cause I can trigger events.

    in reply to: Add undo to your script revisited #117312

    Thanks!
    But If I had not found this website, I would have abandoned the idea of using UNDO in my script.
    In any case, I must give thanks to both, you and him, for sharing information with all of us.
    I only hope this post can help more people to do better scripts. I’ll be happy if it happens!
    It has been a pleasure to meet you “in person” ;)
    Until next time, mate!

    in reply to: Add undo to your script revisited #117290

    Here`s the link to the explain of the params that app.doScript accept.

    https://kasyan.ho.com.ua/tips/indesign_script/all/do_script.html

    The only thing I can say is that everything Kasyan demostrates there it`s fulfilled in my script.

Viewing 14 posts - 1 through 15 (of 21 total)