this is the core component

this script chooses and executes the different applescript commands