我想将我的数字表的富文本单元格内容转换为其他格式,如Markdown或HTML。但是,我如何获得更多,然后只是纯文本?
也许有一个解决方案如何设置选择范围并将其作为rtf复制到剪贴板。
tell application "Numbers"
get formatted value of cell 2 of row 2 of table 1 of sheet 1 of document of window 1
end tell
答案 0 :(得分:0)
这是一个脚本,用于选择单元格,然后将内容复制到剪贴板,保留格式:
tell application "Numbers"
tell table 1 of sheet 1 of document of window 1
activate
set selection range to cell 2 of row "2" --range "B2:B2"
end tell
tell application "System Events"
tell process "Numbers"
keystroke "c" using command down
end tell
end tell
end tell