From 462a485f0686b44fbaabad875ee8a21e3e0f61bc Mon Sep 17 00:00:00 2001 From: rentzsch Date: Fri, 11 Feb 2011 03:35:45 -0600 Subject: [PATCH] [FIX] Xmo'd wasn't creating MO src folder. Bug introduced in https://github.com/rentzsch/mogenerator/commit/0894c56ed471b4c5d0d30cb312f1d8970a0dd216#L0L118 --- Xmod/Xmod.applescript | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Xmod/Xmod.applescript b/Xmod/Xmod.applescript index 814339ac..78fef9b4 100644 --- a/Xmod/Xmod.applescript +++ b/Xmod/Xmod.applescript @@ -191,6 +191,8 @@ on getModelInfo(modelFileUnixPath, theComments) -- if we didn't find any directory specifiers in the comments, then make theOutputDir the folder containg the model file if ((length of theOutputDir) = 0) and ((length of theHumanDir) = 0) and ((length of theMachineDir) = 0) then + if not (exists folder modelName of modelFileFolder) then  + make folder at modelFileFolder with properties {name:modelName} set modelSrcFolder to folder modelName of modelFileFolder set theOutputDir to text 1 thru -2 of (POSIX path of (modelSrcFolder as alias)) -- otherwise, if theOutputDir isn't a full path itself already, set theOutputDir to a full path relative to the model file