- Registriert
- 01.06.05
- Beiträge
- 4.630
Momentan nutze ich folgende Funktion, um was aus einer Plist zu lesen. Doch wie bekomme ich es hin, dass ich auch tiefere Verschachtelungen lesen kann?
Code:
on getProperty(thePath, theProperty)
try
set thePath to POSIX path of thePath
end try
try
if thePath does not contain ".plist" then
set thePath to thePath & "/Contents/Info.plist"
end if
tell application "System Events"
set propList to property list file thePath
tell propList
get value of property list item theProperty
end tell
end tell
on error
return "0"
end try
end getProperty