AppleScript 获取单元格的名称

AppleScript get the Name of the cell

我正在尝试获取一个脚本来在 Number 文档的范围内搜索电子邮件地址,然后告诉我该电子邮件所在的单元格。

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

试试这个

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