Forum Replies Created
-
AuthorPosts
-
August 29, 2010 at 2:37 pm in reply to: Define table row heights, column widths in styles somehow? #56869
avanti
ParticipantSure 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)?
August 29, 2010 at 7:37 am in reply to: Define table row heights, column widths in styles somehow? #52838avanti
ParticipantSure 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)?
August 29, 2010 at 1:10 am in reply to: Define table row heights, column widths in styles somehow? #56865avanti
ParticipantI understood this Jongware but i have a style call “myCellStyle” in the document for using with previous versions of the script ;-)
August 28, 2010 at 6:10 pm in reply to: Define table row heights, column widths in styles somehow? #52836avanti
ParticipantI understood this Jongware but i have a style call “myCellStyle” in the document for using with previous versions of the script ;-)
August 28, 2010 at 3:18 pm in reply to: Define table row heights, column widths in styles somehow? #56863avanti
ParticipantSuper 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.
August 28, 2010 at 12:17 pm in reply to: Define table row heights, column widths in styles somehow? #56861avanti
ParticipantYou'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 !
August 28, 2010 at 11:55 am in reply to: Define table row heights, column widths in styles somehow? #56858avanti
ParticipantSorry 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.
August 28, 2010 at 11:30 am in reply to: Define table row heights, column widths in styles somehow? #56856avanti
ParticipantThanks 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) ?
August 28, 2010 at 8:18 am in reply to: Define table row heights, column widths in styles somehow? #52834avanti
ParticipantSuper 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.
August 28, 2010 at 5:53 am in reply to: Define table row heights, column widths in styles somehow? #56854avanti
ParticipantHi 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.August 28, 2010 at 5:17 am in reply to: Define table row heights, column widths in styles somehow? #52832avanti
ParticipantYou'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 !
August 28, 2010 at 4:55 am in reply to: Define table row heights, column widths in styles somehow? #52829avanti
ParticipantSorry 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.
August 28, 2010 at 4:30 am in reply to: Define table row heights, column widths in styles somehow? #52827avanti
ParticipantThanks 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) ?
August 27, 2010 at 10:53 pm in reply to: Define table row heights, column widths in styles somehow? #52825avanti
ParticipantHi 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. -
AuthorPosts
