0

数値テーブルのリッチ テキスト セル コンテンツを 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
4

1 に答える 1

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
于 2014-09-25T03:45:25.860 に答える