What scripting language? If you want an answer you must specify where the problem is found. Perhaps this is obvious to Mac owners (AppleScript?), but to me It seems like relevant info to include.
–
Ярослав РахматуллинMar 14 '13 at 16:20