Go into the library of actions, find the AppleScript action, drag it to the bottom of the workflow, and paste the script text inside the lines at the top and bottom of that action, replacing all other existing content.
hello Neil, what u adviced pretty much solves my issue so please notice the star.
however, i have kept the thread as unanswered cause i have one more question, if you could help me out. i pasted the script in 'run apple script' action it did put my mac to sleep. then, using script editor i saved the script as an app and then using 'launch application' action i pointed to this app. this time too the mac went to sleep but there was an error in automator when i woke it up which asked me to check the action's properties. so can u tell me what is happening? also, later i saved the script as a script file using script editor. now i cant find any automator action to point to this script like i could point to an app using 'launch application' action. any help on that?
i appreciate your time. mac is beautiful. and after i am done with my java web development course i definitely got to learn apple script.