如何使用py-appscript在数字中设置表的选择
这看起来应该很简单,但解决方案是令人沮丧的回避。我可以获取当前选择:
current_table.selection_range我可以拿到它的细胞:
current_table.selection_range.cells()但是尝试set()它们中的任何一个都会得到一个愤怒的appscript错误。
发布于 2009-11-08 06:25:01
看起来是这样的:
>>> current_table.selection_range.set(to=current_table.ranges[u'B3:C10'])请注意,在AppleScript Editor中或使用ASDictionary查看Number's脚本字典时,属性selection_range被定义为类range。所以这是一个提示,你需要想出一个range类型的引用来设置它。
https://stackoverflow.com/questions/1694478
复制相似问题