Hi all,
I came across this AppleScript which is designed to automatically sync all iOS devices connected to iTunes at the time, including those on Wi-Fi (using iTunes Wi-Fi sync).
tell application “iTunes”
repeat with s in sources
if (kind of s is iPod) then update s
end repeat
end tell
I am a beginner to AppleScript and I understand all of the above script except the second line: "repeat with s in sources". Can someone explain what this line means and does?
Thank you!
I came across this AppleScript which is designed to automatically sync all iOS devices connected to iTunes at the time, including those on Wi-Fi (using iTunes Wi-Fi sync).
tell application “iTunes”
repeat with s in sources
if (kind of s is iPod) then update s
end repeat
end tell
I am a beginner to AppleScript and I understand all of the above script except the second line: "repeat with s in sources". Can someone explain what this line means and does?
Thank you!