【发布时间】:2017-10-02 12:01:53
【问题描述】:
我有一个脚本,它查找名称并搜索与另一个变量的匹配项。
它工作正常,但是如果变量 1 是“名称演示”并且变量 2 是“演示名称”,那么脚本找不到匹配项。
set nameMatchTXT to ""
if NameOnDevice contains theName then
set nameMatch to theName & " : Name Match"
end if
有没有办法改变这个以找到匹配的顺序? PS脚本正在寻找单词的野名,有时处理双位字符可能会很困难。
【问题讨论】:
标签: if-statement applescript contain