Wednesday 12 March 2014

Apple: Read Values Of Properties From PLIST File Through AppleScript

The AppleScript below allows you to read the values of the properties from a PLIST file. The example below particularly let you read the bundle version from info.plist.
set the plistfile_path to "/Users/................/AppName-Info.plist"

tell application "System Events"
set p_list to property list file (plistfile_path)
set releaseVersion to value of property list item "CFBundleVersion" of p_list
end tell

Reference:
Read values of properties from plist through AppleScript !
http://iphonenativeapp.blogspot.com/2013/09/read-values-of-properties-from-plist_30.html

No comments:

Post a Comment