Why don’t you use your AppleScripts in Xojo? You can either use the name of the folder as parameter in hardcoded AppleScripts or you can do AppleScripts fully dynamic with the MBS plugin (see http://www.mothsoftware.com/downloads/runAS.zip for a wrapper) or the shell. The only problem with using the shell is quoting. It’s really awful but it works fine.