applescript and C++(cookbook examples too)