How to tell Pages to insert pagebreak before every table
How to tell Pages to insert a pagebreak before every tables EXCEPT the one starting with the word YELLOW
Thank you so much!!
AppleScript
How to tell Pages to insert a pagebreak before every tables EXCEPT the one starting with the word YELLOW
Thank you so much!!
AppleScript
Try this:
tell application "Pages"
activate
tell body text of front document
repeat with k from 1 to (count tables)
selecttablek
tell application "System Events" to keystroke "c" using {command down}
if (the clipboard) does not start with "Yellow" then
selectinsertion point before tablek
insert page break
end if
end repeat
end tell
end tell
Thank you Pierre!! It's working!!!
If you could help me with my last one... see my latest post about removing all texts with a specific color..
Thank you so much!!
How to tell Pages to insert pagebreak before every table