set randomString to "this is a random string"
何らかの理由で
set firstWord to the first word of randomString
set isThereTruth to firstWord = "this"
display dialog isThereTruth
true を返しますが、
repeat with x in words of randomString
display dialog x
set isThisTruth to x = "this"
display dialog isThisTruth
end repeat
false を返します
私はアップルスクリプトにかなり慣れていないので、ばかげた質問で申し訳ありませんが、答えを探すのが難しく、他の誰かがこの問題に遭遇した可能性があります.
変数が文字列であることを確認するためにテストを試みましたが (理由は想像できませんが)、変数が文字列である理由をテストする方法は実際には機能しません。