AppleScript получает имя ячейки

Я пытаюсь найти скрипт для поиска диапазона в документах 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

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
Другие вопросы по тегам