2014-09-23 92 views
0

我想將我的數字表格的富文本單元格內容轉換爲其他格式,如Markdown或HTML。但是,我如何獲得更多純文本?Hot在電話中獲取單元格的豐富文本

也許有解決方法如何設置選擇範圍並將其作爲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

選擇單元格,然後調用拷貝到剪貼板。 – jweaks 2014-09-24 02:45:22

回答

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 
+0

謝謝。慢,但它的作品。 – Nebula 2014-09-25 14:01:15