Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Read an array from a plist using AppleScript

Let's say I have the following in a plist file:


<key>SomeArray</key>

<array>

<string>a</string>

<string>b</string>

</array>


When I say set newArray to value of property list item "SomeArray" as list, (yes, I have the proper "tell" calls around this statement) it returns "ab" instead of {a, b}.


Any suggestions?

 MacBook Pro-OTHER, OS X Mavericks (10.9.5), 13 in, Mid 2012, Core i5, 500GB

Posted on Oct 6, 2015 7:42 PM

Reply
Question marked as Best reply

Posted on Oct 6, 2015 8:42 PM

Never mind, I was reading the value as a string instead of a list. Changed to list and problem solved.

1 reply

Read an array from a plist using AppleScript

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.