我正在尝试使用脚本在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
答案 0 :(得分: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