Question
Here's an Applescript for tables, adds hyphen to every blank white cell
With thanks to our AI cohabitants. You need to have predefined a swatch in your doc called "BlankCell"; mine is simply a light yellow tint.
-- For every blank (and unfilled with swatch) cell in every table, replace contents with "<><>" and color it with swatch "BlankCell"
-- 3/25, thanks to chatGPT
tell application "Adobe InDesign 2025"
tell active document
-- set theBlankStyle to cell style "BlankCell"
set blankSwatch to swatch "BlankCell"
repeat with s from 1 to count of stories
tell story s
repeat with t from 1 to count of tables
tell table t
repeat with r from 1 to count of rows
tell row r
repeat with c from 1 to count of cells
tell cell c
--set cellContent to contents
if contents is "" and name of fill color is "None" then
--beep
set contents to "–"
--set applied cell style to theBlankStyle
set fill color to blankSwatch
end if
end tell
end repeat
end tell
end repeat
end tell
end repeat
end tell
end repeat
end tell
end tell
say "All done!"
