diff --git a/share/fsl/sbin/createFSLWrapper b/share/fsl/sbin/createFSLWrapper
index a2eb101da26a37866b4831131808cc6743fd6a2f..737a22016f2b66dfe9dd45f1246fd3c957162103 100755
--- a/share/fsl/sbin/createFSLWrapper
+++ b/share/fsl/sbin/createFSLWrapper
@@ -109,5 +109,10 @@ for script in $targets; do
   fi
 
   # Preserve file permissions
-  chmod --reference="$sourceScript" "$targetScript"
+  if [[ "$OSTYPE" == "darwin"* ]]: then
+    perms=$(stat -f "%A" "$sourceScript")
+    chmod ${perms} "$targetScript"
+  else
+    chmod --reference="$sourceScript" "$targetScript"
+  fi
 done