set listOfFruits to {"appleSept", "pearSept"}
tell application "Finder"
if folder "moveTest1" contains listOfFruits then
move (every file of folder "moveTest1" whose name is listOfFruits) to folder "moveTest2"
end if
end tell
检查名称是否为
在里面
必须写入的字符串列表
is in
而不是
is
.
在中
a is in {a, b, c}
与
{a, b, c} contains a
set listOfFruits to {"appleSept", "pearSept"}
tell application "Finder"
move (every file of folder "moveTest1" whose name is in listOfFruits) to folder "moveTest2"
end tell