我想将我的数字表的富文本单元格内容转换为其他格式,如 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
我想将我的数字表的富文本单元格内容转换为其他格式,如 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
这是一个选择单元格然后将内容复制到保留格式的剪贴板的脚本:
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