Hi,
Here is a workaround, tested on Numbers 5.2 and OS X 10.9.3 (need GUI Scripting) :
This AppleScript need accessibility enabled.
You must select the cells. E.G. cells "B4:J4"
The TextEdit application should open a new document in RTF format (not as plain text), otherwise you can change this in the TextEdit preferences.
Run the AppleScript.
This script change the font of word (4, 5, 8, 15 and 16) in each cell to "Helvetica-Bold"
If you select cells "B4:J4", the script paste the text in cells "B5:J5", you can hide the fourth row after running the script.
If you want to paste in the selection (These cells will lose their formula.), remove the block `tell myTable .... end tell` in the script
Here is the AppleScript:
tell application "Numbers" -- works on Numbers 5.2
try
set myTable to first table of active sheet of document 1 whose class of selection range is range -- get selected table
on error
display alert "You must select some cells before running this script"
return
end try
my gui_Scpt("c", "Numbers") -- copy Selected Cells to clipboard
my changeTextStyle() -- in TextEdit
tell myTable
set c to address of column of cell 1 of selection range
set r to address of row of last cell of selection range
set selection range to cell (r + 1) of column c -- select cell in next row to paste below the selected cells
end tell
my gui_Scpt("v", "Numbers") -- paste the clipboard
end tell
on gui_Scpt(t, aName)
tell application "System Events"
tell process aName
set frontmost to true
keystroke t using command down
end tell
end tell
end gui_Scpt
on changeTextStyle()
tell application "TextEdit"
set newDoc to make new document
my gui_Scpt("v", "TextEdit") -- paste cells as RTF
tell newDoc
set tc to count paragraphs
delete paragraph 1 -- blank line
delete last paragraph -- blank line
repeat with i from 1 to (tc - 2)
tell paragraph i
set font of words 4 thru 5 to "Helvetica-Bold"
set font of words 8 to "Helvetica-Bold"
set font of words 15 thru 16 to "Helvetica-Bold"
end tell
end repeat
my gui_Scpt("ac", "TextEdit") -- select all and copy to clipboard
delay 0.2
close without saving
end tell
end tell
end changeTextStyle
But you must learn AppleScript of TextEdit to edit text other than your example "If I have 5 apples and I give 3 away, then I'm left with 2 apples" or add others styles in this simple script.