다음은 어떻게 사용하나요? 여기에는 두 가지 유형의 반복 루프와이를 사용하는 방법이 표시됩니다. 행운을 빕니다!
set myList to {"some words", "more of them", "and a lot of words"}
repeat with i from 1 to count of myList
set thisItem to item i of myList
-- do something with thisItem
end repeat
-- or another way to do a repeat loop
repeat with anItem in myList
set thisItem to contents of anItem
-- Notice if we use a repeat loop like this (e.g. anItem) then anItem
-- is just a reference to the words. To actually get the words
-- we need to get the contents of anItem
end repeat
목록의 끝에 다른 항목을 추가하는 올바른 방법을 알고 계십니까? – user1685192
myList의 끝을 "다른 항목"으로 설정 ... 여기 (http://macscripter.net/viewtopic.php?id=25631)로 이동하여 "초보자 용 AppleScript 자습서"라는 자습서를 수행해야합니다. 그것은 내가 배운 방법입니다. 목록에 하나 있습니다. – regulus6633