Hello,
I am trying to create an IF statement in Applescript but running into a couple problems.
1. The first do shell script fails b/c of the space after the backslash (\ Word.app) and the single double quotes after awk -F '"'.
2. The Proper syntax for running the second do shell script. I put 'is equal to or greater than' which i know is not correct but can't figure out how to convert it.
I am trying to create an IF statement in Applescript but running into a couple problems.
1. The first do shell script fails b/c of the space after the backslash (\ Word.app) and the single double quotes after awk -F '"'.
2. The Proper syntax for running the second do shell script. I put 'is equal to or greater than' which i know is not correct but can't figure out how to convert it.
Code:
tell application "Finder"
activate
set exitstatus to do shell script "mdls /Applications/Microsoft\ Word.app -name kMDItemVersion | awk -F'"' '{print $2}'"
if exitstatus is equal to or greater than "15.32" then
else
do shell script ¬
"installer -allowUntrusted -pkg " & myFolder & ¬
"word.pkg -target /" with administrator privileges
end if
end tell