arrays - Applescript Excell将列保存在数组中,但将行保存为字符串
问题描述
我正在尝试将列的所有值保存在数组中。该代码似乎有效,因为当我记录数组时,我得到了不同的值。
当我连续做同样的事情时,数组将所有值存储在一个字符串中
tell application "Microsoft Excel"
open file "file.xlsx"
set colValue to (value of range "A14:A100")
repeat with myDate in colValue
--this works
log myDate
end repeat
set rowValue to (value of range "C14:X14")
repeat with myTime in rowValue
--stores values in a single string
log myTime
end repeat
end tell
我的问题是,如何像处理列一样将所有行字段存储在数组中?
解决方案
推荐阅读
- memory-leaks - F# 中的计算是否在完成时调用 Dispose()?
- ios - 如何自定义 UICollectionView Cell 以显示图像网格,如附件所示?
- javascript - 按照用户使用 Java Script 将鼠标悬停在它们上的顺序打印消失的悬停数字
- html - css 过渡在我的卡 div 上无法正常工作
- json - 如何使用 Ktor 解析响应
- r - 为什么使用 websocket(路透社)在 R 中出现错误消息?
- node.js - Mongoose:特定用户查询的所有点的总和
- shell - 显示服务器协议的任务是什么?
- r - 迭代列和样本
- php - 试图获取非对象的属性“uid”