I want to read the plist file that is within the contents of Microsoft Outlook that is installed on a Mac, I am wanting to read the "Bundle version" within the info.plist

I need to: 1. figure if MS Outlook is installed 2. Read the 'Bundle version' of the info.plist file

thanks, Steve

asked 10 Aug '16, 13:15

SteveO's gravatar image

SteveO
1223
accept rate: 0%

edited 10 Aug '16, 13:24


The Info.plist files are XML files so you can simply use the <xmlfileget> and <xmlfileset> to manipulate the values.

For instance:

<xmlFileGet>
    <attribute></attribute>
    <element>/plist/dict[1]/string[preceding-sibling::key[1]/text()="CFBundleVersion"]</element>
    <file>${installdir}/some.app/Contents/Info.plist</file>
    <variable>version</variable>
</xmlFileGet>
link

answered 12 Aug '16, 11:24

jesus's gravatar image

jesus ♦♦
1.1k14
accept rate: 18%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×130
×92

Asked: 10 Aug '16, 13:15

Seen: 418 times

Last updated: 12 Aug '16, 11:24