Skip to content
This repository
Browse code

Replaced reference to PlistBuddy using standard AppleScript

  • Loading branch information...
commit 2e6cdc0f98b8515e66c014e7489fdf8d74430a0f 1 parent 09b0d8e
Vincent Guerci authored February 16, 2011

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 5  Xmod/Xmod.applescript
5  Xmod/Xmod.applescript
@@ -22,7 +22,10 @@ on updateProjectXmod(_project)
22 22
 		repeat with modeldIt in modeldList
23 23
 			-- Find the 'active' model version
24 24
 			set currentVersionFile to full path of modeldIt & "/.xccurrentversion"
25  
-			set activeModelVersionFilename to do shell script "/usr/libexec/PlistBuddy -c 'print _XCCurrentVersionName' " & currentVersionFile
  25
+			tell application "System Events"
  26
+				set currentVersionPlist to contents of property list file currentVersionFile
  27
+				set activeModelVersionFilename to value of property list item "_XCCurrentVersionName" of currentVersionPlist
  28
+			end tell
26 29
 			set activeModelVersion to full path of modeldIt & "/" & activeModelVersionFilename
27 30
 			set modelItr to item 1 of (every file reference of modeldIt whose name is activeModelVersionFilename)
28 31
 			-- Then update it

0 notes on commit 2e6cdc0

Please sign in to comment.
Something went wrong with that request. Please try again.