2017-08-07 111 views
2

我需要在Automator的循環中自動增加一個變量。 我不知道要做到這一點......我在AppleScript中很新,一直在四處搜索,但是沒有找到很多信息。循環中的自動增量變量

任何想法?

回答

0

您可以使用這樣的事情:

set myVar to 10 

repeat with i from 1 to 5 
    set newVar to myVar + i 
    display dialog (newVar) 
end repeat 

這篇幫助?

+0

嗯......我想,是的。但是......可以在這個repeat ... end loop中插入Automator Actions? – Fischer