【问题标题】:AppleScript get the Name of the cellAppleScript 获取单元格的名称
【发布时间】:2015-07-10 04:38:43
【问题描述】:

我正在尝试获取一个脚本来搜索号码文档中的某个范围以查找电子邮件地址,然后告诉我该电子邮件在哪个单元格中。

tell application "Numbers" to tell document 1 to tell sheet 1 to tell table 1
    set theEmail to "email@email.com"
    set theRange to range "a:a"
    set theCell to the name of cell is equal to theRange
return theCell
end tell

【问题讨论】:

    标签: numbers applescript applescript-numbers


    【解决方案1】:

    试试这个

    tell application "Numbers"
        tell document 1 to tell sheet 1 to tell table 1
            set theEmail to "email@email.com"
            set theRange to range "a:a"
            try
                return name of 1st cell of theRange whose value is theEmail
            on error
                return missing value
            end try
        end tell
    end tell
    

    【讨论】:

    • 非常感谢,现在很多挫折都过去了。
    猜你喜欢
    • 2014-11-16
    • 2014-10-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-10-26
    相关资源
    最近更新 更多