1
For some reason this script doesn't go to the next empty cell in column?  

我究竟做错了什么 ?我希望能够将今天的日期添加到列中的下一个空单元格,如果这些数字不会改变但保持在那个日期,那就太好了

需要一些帮助提前谢谢。

on run {input, parameters}
	
	tell application "Numbers"
		activate
		tell the first table of the active sheet of document 1
			tell column "F"
				set r to (address of row of last cell whose value is greater than "")
				set r to r + 1
				set value of cell r to date string of (current date)
			end tell
		end tell
	end tell
	
	
	return input
end run

4

1 回答 1

2

这是我用来在列中查找下一个空单元格的代码:

tell application "Numbers"
    tell front document
        tell table 1 of sheet 1
            set fullSheet to 1
            repeat
                set cellValue to value of cell ("A" & fullSheet) --of table 1 of sheet 1
                if cellValue = missing value then exit repeat
                set fullSheet to fullSheet + 1
            end repeat
        end tell
    end tell
end tell

我知道它不是很迷人,但自 2014 年 2 月以来,它一直在通过所有 Numbers 升级。

于 2015-07-30T18:39:57.100 回答