View Single Post
Martin, thank you for your comment.

The combination is a good idea.
But I don't think I will use it in my system, as sometimes, I might be disturbed, and saving the email in draft instead of sending. I also like the satisfaction of checking a completed task.

This few lines of code should do what your looking for, and be generic enough to be reused in any other situation:

Code:
-- Wrapper
-- Launch one by one all the scripts of the list listOfScripts
-- Note: They have to be in the same directory 

property listOfScripts : {"MailTask.scpt", "Delegated.scpt"}

repeat with aScript in listOfScripts
	tell application "Finder" to set scriptPath to ((container of (path to me)) as string) & aScript	
	run script file scriptPath
end repeat