Skip to content

Commit

Permalink
Replaced reference to PlistBuddy using standard AppleScript
Browse files Browse the repository at this point in the history
  • Loading branch information
vguerci committed Feb 16, 2011
1 parent fbf98d6 commit fc08b0f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Xmod/Xmod.applescript
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ on updateProjectXmod(_project)
repeat with modeldIt in modeldList
-- Find the 'active' model version
set currentVersionFile to full path of modeldIt & "/.xccurrentversion"
set activeModelVersionFilename to do shell script "/usr/libexec/PlistBuddy -c 'print _XCCurrentVersionName' " & currentVersionFile
tell application "System Events"
set currentVersionPlist to contents of property list file currentVersionFile
set activeModelVersionFilename to value of property list item "_XCCurrentVersionName" of currentVersionPlist
end tell
set activeModelVersion to full path of modeldIt & "/" & activeModelVersionFilename
set modelItr to item 1 of (every file reference of modeldIt whose name is activeModelVersionFilename)
-- Then update it
Expand Down

0 comments on commit fc08b0f

Please sign in to comment.