AppleScript for Numbers Example 剛好想到Excel等Office的套裝軟體都有VBA可以用,那Mac上的iWork呢? 嗯 … 是的,就是超威的AppleScript來處理啦~ 底下是找到的Example: -- Source: https://discussions.apple.com/thread/1857867?start=0&tstart=0 tell application "Numbers" activate tell document 1 tell sheet 1 set newtable to make new table with properties {name:"Test Table 2"} tell newtable set value of cell 3 of row 2 to count of rows set background color of cell 3 of row 2 to {0, 65535, 0} as RGB color remove row 1 set myRange to range "B1:C2" repeat with i from 1 to count of rows set value of cell i of column 3 to i * 3 end repeat set selection range to range "a1:c3" end tell end tell end tell end tell 其實真的蠻屌的 … Apr 25th, 2012 AppleScript, notes