0

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

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
4

1 回答 1

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
于 2015-07-10T06:13:51.440 回答