Skip to main content
Question

Finding the language version of Microsoft Office 2011 that is installed

  • June 24, 2014
  • 27 replies
  • 60 views

Show first post

27 replies

Forum|alt.badge.img+12
  • Contributor
  • June 27, 2014

There are you letters right there! Not neat, but

pkgutil --pkgs --volume / | grep "com.microsoft.office" | cut -d "." -f 4 | uniq

Forum|alt.badge.img+16
  • Author
  • Valued Contributor
  • June 27, 2014

Hey Guys,

i endup making this EA and its working for me now

#!/bin/bash

folder="/Applications/Microsoft Office 2011/Microsoft Word.app/Contents/Resources/"
if [ -d "$folder/nl.lproj" ]; then result="NL Installed"
elif [ -d "$folder/en.lproj" ]; then result="UK Installed"
else result="Office not installed"
fi

echo "<result>$result</result>"