Back

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

Forum Replies Created

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • in reply to: Define table row heights, column widths in styles somehow? #56869
    avanti
    Participant

    Sure David but Jongware JS code is a valuable answer to the missing Adobe's function in cells style.

    What about moving this topic to the Scripting section so we could continue the discussion with the first part?
    Could do this as an administrator, please?

    To Jongware

    I tried the fancy script with another document cell style (“ChangeStyledCellsHeight-v1.3_Heure_12mm.jsx”) and the alert shows again : There is no Cell Style named “Heure”

    I tried to simplify the script name (“script_Heure_12mm.jsx”) with no more success.

    I think the condition “if (app.activeDocument.cellStyles.item(cellStyleName).isValid)” is not true.
    So why the cell style name is detected as not valid?

    Could it be a problem with french version of CS5 or CS5 itself or… (so many questions)?

    in reply to: Define table row heights, column widths in styles somehow? #52838
    avanti
    Participant

    Sure David but Jongware JS code is a valuable answer to the missing Adobe's function in cells style. 

    What about moving this topic to the Scripting section so we could continue the discussion with the first part? 
    Could do this as an administrator, please? 

    To Jongware

    I tried the fancy script with another document cell style (“ChangeStyledCellsHeight-v1.3_Heure_12mm.jsx”) and the alert shows again : There is no Cell Style named “Heure” 

    I tried to simplify the script name (“script_Heure_12mm.jsx”) with no more success. 

    I think the condition “if (app.activeDocument.cellStyles.item(cellStyleName).isValid)” is not true. 
    So why the cell style name is detected as not valid?

    Could it be a problem with french version of CS5 or CS5 itself or… (so many questions)? 

    in reply to: Define table row heights, column widths in styles somehow? #56865
    avanti
    Participant

    I understood this Jongware but i have a style call “myCellStyle” in the document for using with previous versions of the script ;-)

    in reply to: Define table row heights, column widths in styles somehow? #52836
    avanti
    Participant

    I understood this Jongware but i have a style call “myCellStyle” in the document for using with previous versions of the script ;-) 

    in reply to: Define table row heights, column widths in styles somehow? #56863
    avanti
    Participant

    Super fancy… it's too much !
    Why not a script with user interface to choose cell styles in a drop down menu… (i'll think about it after all, we could make money ;-).

    It seems there's a little problem with the condition (line 5) :
    if (app.activeDocument.cellStyles.item(cellStyleName).isValid)

    Message from INDD :
    There is no Cell Style named “myCellStyle”

    It's OK when // (commentary mark in english ?) the “if” and “else” (lines 7 and 8).

    When it'll be done, i'll post the multiple scripts you've made in an archive for other people and send it on Adobe forums too where i asked for help.

    in reply to: Define table row heights, column widths in styles somehow? #56861
    avanti
    Participant

    You're killing me after all those hours of research !
    It's just… OK and seems much faster than the first script.

    Thanks for all and the elevator muzak while waiting about… 30 seconds (reminded me the “Blues brothers”, at the end of the movie, except it was longer for them !).

    No thanks to Adobe that doesn't seem to care about height / width of styled cells.

    Have a nice week-end !

    in reply to: Define table row heights, column widths in styles somehow? #56858
    avanti
    Participant

    Sorry Jongware, it's my (huge) mistake : I took a paragraph style for a cell style (“Booooooo, looser !!!!!”).

    Your script perfectly works (i just edited my post).

    Sorry and thanks again.

    in reply to: Define table row heights, column widths in styles somehow? #56856
    avanti
    Participant

    Thanks a lot for your clear and quick answer Jongware, it perfectly works !

    Do you think the same type of script could be “undone” in 1 time with Applescript (rather than 1 “Undo” per modification with Javascript) ?

    in reply to: Define table row heights, column widths in styles somehow? #52834
    avanti
    Participant

    Super fancy… it's too much !
    Why not a script with user interface to choose cell styles in a drop down menu… (i'll think about it after all, we could make money ;-).

    It seems there's a little problem with the condition (line 5) : 
    if (app.activeDocument.cellStyles.item(cellStyleName).isValid)

    Message from INDD : 
    There is no Cell Style named “myCellStyle”

    It's OK when // (commentary mark in english ?) the “if” and “else” (lines 7 and 8). 

    When it'll be done, i'll post the multiple scripts you've made in an archive for other people and send it on Adobe forums too where i asked for help. 

    in reply to: Define table row heights, column widths in styles somehow? #56854
    avanti
    Participant

    Hi everybody,

    First, thanks for your very interesting and comprehensive contributions.

    I found and used the Jongware script above (app.activeDocument.stories.everyItem().tables.everyItem().rows[0].height = “12mm“;) to do what InDesign, even CS5 version, doesn't provide : cells dimensions in styles.

    But i'd like to go a little further and change only particular styled cells height, not all first, second… rows.

    I tried to insert appliedStyle in the script like that :
    (app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().appliedStyle = “myCellStyle”.height = “12mm“;)

    Obviously, i'm so new to script, it doesn't work and i don't really understand what i do.

    Please, can you guide me ?

    Thanks in advance.
    Sorry for my poor english.

    in reply to: Define table row heights, column widths in styles somehow? #52832
    avanti
    Participant

    You're killing me after all those hours of research ! 
    It's just… OK and seems much faster than the first script. 

    Thanks for all and the elevator muzak while waiting about… 30 seconds (reminded me the “Blues brothers”, at the end of the movie, except it was longer for them !). 

    No thanks to Adobe that doesn't seem to care about height / width of styled cells. 

    Have a nice week-end !

    in reply to: Define table row heights, column widths in styles somehow? #52829
    avanti
    Participant

    Sorry Jongware, it's my (huge) mistake : I took a paragraph style for a cell style (“Booooooo, looser !!!!!”). 

    Your script perfectly works (i just edited my post).

    Sorry and thanks again.

    in reply to: Define table row heights, column widths in styles somehow? #52827
    avanti
    Participant

    Thanks a lot for your clear and quick answer Jongware, it perfectly works ! 

    Do you think the same type of script could be “undone” in 1 time with Applescript (rather than 1 “Undo” per modification with Javascript) ?

    in reply to: Define table row heights, column widths in styles somehow? #52825
    avanti
    Participant

    Hi everybody, 

    First, thanks for your very interesting and comprehensive contributions. 

    I found and used the Jongware script above (app.activeDocument.stories.everyItem().tables.everyItem().rows[0].height = “12mm“;) to do what InDesign, even CS5 version, doesn't provide : cells dimensions in styles. 

    But i'd like to go a little further and change only particular styled cells height, not all first, second… rows. 

    I tried to insert appliedStyle in the script like that : 
    (app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().appliedStyle = “myCellStyle”.height = “12mm“;)

    Obviously, i'm so new to script, it doesn't work and i don't really understand what i do. 

    Please, can you guide me ? 

    Thanks in advance.
    Sorry for my poor english. 

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