Forum Replies Created
-
AuthorPosts
-
Alexandre Dauchez
MemberHi, so do you think it is normal ?
Thank your for your answers !Alexandre Dauchez
Member(Sorry for the multiple answers, but I couldn’t figure out where the code I was inserting in the forum failed)
Alexandre Dauchez
MemberPerhaps I’m missing something obvious, but even if I export an InDesign document used for exercices (here) and then export it, I get those empty spaces…
Alexandre Dauchez
MemberI’m obtaining this empty space between pages when I read each of these exported ePub on iBooks on iPad (which is supposed to be the default ePub player, right ?) :

On iBooks on a Mac, I’m obtaining NO empty space between pages.So I wonder how Anne-Marie, or Terry White, when I see videos on Lynda.com or adobe TV achieve to export a ePub without those blanks.
Alexandre Dauchez
MemberAlexandre Dauchez
MemberAlexandre Dauchez
MemberAlexandre Dauchez
MemberTest (the forum doesn’t seem to accept my answer)
April 14, 2015 at 4:03 am in reply to: Is it possible to import only parts of a Word doc into InDesign? #74613Alexandre Dauchez
MemberHi,
Another question would be : how would you tell Indesign which parts of your Word file you want to import ?
In Excel you can specify which cell range you want to import.
But in Word, it’s not possible. So you need to import all of your text THEN in InDesign remove the parts you don’t need. Thus you don’t have to modify in any way your Word files.You could achieve this with a script, as you said. But I can only help you if you’re on a Mac since I only know AppleScript.
April 13, 2015 at 2:44 pm in reply to: Using different colors for the same styles in chapters of a book #74607Alexandre Dauchez
MemberArr, sorry, I’m not used with this forum…
Here is the code :set theChapterColorName to "CHAPTER_COLOR" --or any name you'd prefer set theValidatedChapterColorName to theChapterColorName & "-OK" tell application id "com.adobe.InDesign" activate try set myBook to active book on error display dialog "Please open an InDesign book first !" with icon 0 return end try set myBook_Files to object reference of every book content of active book set theSourceINDD to style source document of myBook set theSourceINDD_file to (full name of theSourceINDD) as string --path set myBook_list to {} repeat with myBook_File in myBook_Files set myBook_File_path to (full name of myBook_File) as string if myBook_File_path is not theSourceINDD_file then set myBook_list's end to myBook_File_path end if end repeat repeat with myBook_File in myBook_list --open all files except the style source document open file myBook_File tell document 1 set theChapterSwatch to item 1 of (every swatch whose name is theChapterColorName) set theChapterSwatch_properties to properties of theChapterSwatch set newProperties to {name:theValidatedChapterColorName} & theChapterSwatch_properties set theReplacedColor to make new color with properties newProperties end tell end repeat synchronize myBook repeat with myBook_File in myBook_list --open all files except the style source document open file myBook_File tell document 1 set theChapterSwatch to item 1 of (every swatch whose name is theValidatedChapterColorName) set theBadSwatch to item 1 of (every swatch whose name is theChapterColorName) theChapterSwatch merge with theBadSwatch set name of theChapterSwatch to theChapterColorName end tell end repeat end tellApril 13, 2015 at 2:37 pm in reply to: Using different colors for the same styles in chapters of a book #74606Alexandre Dauchez
MemberHi all,
I had the same question and achieved it thanks to a script, but It will work only on Mac since I wrote it in AppleScript (I don’t know Javascript, sorry…).First, create a swatch whose name would be consistent across all documents in the book and relevant like “Chapter_color”. This swatch will be applied to anything related to the chapter, like titles, cell’s fill colors, etc.
It’s essential to give it a name.
If you sync it normally, the values of the swatch will be overwritten to match the values of the source file in the book.So the workaround is not to sync the book with InDesign directly, but let the script do it instead.
The script “saves” the values of each document’s chapter color in a duplicated swatch, then re-create the swatch with these values.
I didn’t find anything else to achieve it.Here is the script :
————————————————————————————————
[code]
set AppleScript’s text item delimiters to ""set theChapterColorName to "COULEUR-CHAPITRE"
set theValidatedChapterColorName to theChapterColorName & "-OK"tell application id "com.adobe.InDesign"
activate
try
set myBook to active book
on error
display dialog "Aucun livre n’est ouvert." with icon 0
return
end tryset myBook_Files to object reference of every book content of active book
set theSourceINDD to style source document of myBook
set theSourceINDD_file to (full name of theSourceINDD) as string –path
set myBook_list to {}
repeat with myBook_File in myBook_Files
set myBook_File_path to (full name of myBook_File) as string
if myBook_File_path is not theSourceINDD_file then
set myBook_list’s end to myBook_File_path
end if
end repeatrepeat with myBook_File in myBook_list –open all files except the style source document
open file myBook_File
tell document 1
set theChapterSwatch to item 1 of (every swatch whose name is theChapterColorName)
set theChapterSwatch_properties to properties of theChapterSwatch
set newProperties to {name:theValidatedChapterColorName} & theChapterSwatch_properties
set theReplacedColor to make new color with properties newPropertiesend tell
end repeatsynchronize myBook
repeat with myBook_File in myBook_list –open all files except the style source document
open file myBook_File
tell document 1
set theChapterSwatch to item 1 of (every swatch whose name is theValidatedChapterColorName)
set theBadSwatch to item 1 of (every swatch whose name is theChapterColorName)
theChapterSwatch merge with theBadSwatch
set name of theChapterSwatch to theChapterColorName
end tell
end repeatend tell
[/code]————————————————————————————————
Of course it’s better if you know a bit of AppleScript…
-
AuthorPosts



