集选择数字(Python的/ Appscript)
题
你是怎么使用的数字设定py-appscript
选择一个表?
这似乎应该是很简单的事,但解决的办法是令人沮丧的回避。我可以获得当前的选择:
current_table.selection_range
和我可以得到它的细胞:
current_table.selection_range.cells()
而是试图set()
其中一方得到一个生气appscript
错误。
解决方案
看起来像这样工作的:
>>> current_table.selection_range.set(to=current_table.ranges[u'B3:C10'])
请注意,看着Number's
或与AppleScript Editor
ASDictionary
脚本辞典,属性selection_range
被定义为类range
。不过就是这样,你需要拿出型range
的基准设置它的线索。
不隶属于 StackOverflow