Sync iPod.scpt:
tell application "iTunes"
repeat with s in sources
if (kind of s is iPod) then update s
end repeat
end tell
Eject iPod.scpt:
tell application "iTunes"
repeat with s in sources
if (kind of s is iPod) then eject s
end repeat
end tell
I personally have these scripts in my user's Library/Scripts folder, and use Quicksilver to quickly invoke them when I want to force a sync or eject of my iPod/iPhone.