Correct. You might want to get rid of the check for Entourage since you
probably won¹t need that in your environment. You could pretty much shorten
it down to the following. I only checked for each office app to be
absolutely sure office was not installed.
>> osascript -e 'tell application "Finder"
set computerName to do shell script "scutil --get
ComputerName"
>> set officePath to ""
>> try
>> set officePath to (container of application file id "MSWD") as
>> Unicode text
>> end try
>>
>> if officePath is not "" then
>> set officeVersion to short version of (info for alias (officePath &
>> "Office:Microsoft Component Plugin"))
>> return computerName & ": Office " & officeVersion & " is
>> installed"
>> else
>> return computerName & ": Office is not installed"
>> end if
>> end tell'
On 3/13/07 10:44 AM, "Pertschi, Darrin" <[EMAIL PROTECTED]>
wrote:
> Ahhh, very nice Shane.
>
> Just to make sure I¹m clear here, this is reporting the version of the
> Component Plugin, which will always indicate the version of Office installed,
> yes?
>
> Thanks, again.
>
> \\Darrin\
>
> On 3/13/07 11:02 AM, I'm sure "sdpalmer" said:
>
>> You can send it using the ARD Send Unix command (sending it as root) using
>> osascript command-line utility. As an example I sent the following:
>>
>> osascript -e 'tell application "Finder"
>> set computerName to do shell script "scutil --get ComputerName"
>> set officePath to ""
>> try
>> set officePath to (container of application file id "MSWD") as
>> Unicode text
>> end try
>> try
>> set officePath to (container of application file id "XCEL") as
>> Unicode text
>> end try
>> try
>> set officePath to (container of application file id "OPIM") as
>> Unicode text
>> end try
>> try
>> set officePath to (container of application file id "PPT3") as
>> Unicode text
>> end try
>>
>> if officePath is not "" then
>> set officeVersion to short version of (info for alias (officePath &
>> "Office:Microsoft Component Plugin"))
>> if exists alias (officePath & "Microsoft Entourage") then
>> return computerName & ": Office " & officeVersion & " is
>> installed with Entourage"
>> else
>> return computerName & ": Office " & officeVersion & " is
>> installed without Entourage"
>> end if
>> else
>> return computerName & ": Office is not installed"
>> end if
>> end tell'
>>
>> Since there is no GUI the user doesn't know this is running in the
>> background. ARD returns this as a nice report for all of the Macs you send
>> it to that can be saved as a text file. This is a very quick and dirty hack
>> since we had to get this out right away to check for the Office DST patch.
>> We also had some Macs without Entourage installed so I checked for that as
>> well. The combination of the ARD Send Unix command has been very useful for
>> me. I also used similar scripts to check our anti-virus version and OS
>> versions in an nice readable report.
>>
>>
>> Shane
>>
>> Shane Palmer
>> Information Technology Services
>> Iowa State University
>>
>> On 3/13/07 9:12 AM, "Pertschi, Darrin" <[EMAIL PROTECTED]> wrote:
>>
>>> >
>>> >
>>> >
>>> > That Find Version script is quite nice! Thanks for the heads up.
>>> >
>>> > Now, can anyone suggest how to modify it so that I could send it from ARD
>>> and
>>> > receive the output nice and clean?
>>> >
>>> > \\Darrin\
>>> >
>>> >
>>> >
>>> >
>>> > On 3/12/07 10:10 PM, I'm sure "Diane Ross" said:
>>> >
>>>> >> On 3/12/07 7:04 PM, "Scott Haneda" <[EMAIL PROTECTED]> wrote:
>>>> >>
>>>>> >>> If an email header says Microsoft-Entourage/11.2.1.051004
>>>>> >>> Is that V.x or 2004, and if it is 2004, will simply software updating
>>>>> it fix
>>>>> >>> any DST issues?
>>>> >>
>>>> >> 11.2.1 is Entourage 2004. The actual fix for DST was in 11.3.3 but there
is
>>>> >> an additional updater that should also be installed. 11.3.4.
>>>> >>
>>>> >> Get the script that tells what version of Office is installed and what
>>>> >> specific applications are actually updated. Note: not all applications
>>>> are
>>>> >> updated with upgrade.
>>>> >>
>>>> >>
>>>>
<http://www.entourage.mvps.org/script/fav_scripts.html#favscript_findVersion
>>>>> >>>
>>>> >>
>>>>> >>> .051004
>>>> >>
>>>> >> This is a build number. This is 2005 Oct. 4.
>>>> >> --
>>>> >> Diane Ross, Microsoft Mac MVP
>>>> >> Entourage Help Page
>>>> >> <http://www.entourage.mvps.org/>
>>>> >> One of the top five MS Entourage resources listed on the Entourage Blog.
>>> > <http://blogs.msdn.com/entourage/>
>
Shane Palmer
Information Technology Services
Iowa State University
[EMAIL PROTECTED]
515-294-6579