The problem:
An application's icon can have an arbitrary icon, and more than one icon icss file can live in the Contents / Resources directory of an application package. The actual bundle icon name can be found in the application's .plist file, but I am unable to access the plist file - they come through garbled and unreadable.
I have even tried making a temporary copy of the .plist file to my stack directory, to read it from there, but no dice.
The .plist files are readable just fine in a text editor or xcode.
I have tried reading them via URL, read from file until EOF, and even for the heck of it tried reading as a binfile and then setting the encoding to utf8.
No dice.
Instead of getting something like :
Code: Select all
<dict>
<key>Application-Group</key>
<array>
<string>dot-mac</string>
<string>InternetAccounts</string>
</array>
(etc)...
Code: Select all
bplist00fl)
!"#$%&'()*:;<=>?@B_`>a#$%'()(*+AB£44FGHIJ etc.)...
I am having no trouble reading other xml files or text files. The only place I am having the problem is with .plist files from application packages.
Stranger, when making a copy of the file, I can sometimes read the file properly _once_, and then if I attempt to read it a second time, I get the above behavior.
Worse, if I do this a few times, the whole stack becomes corrupted, and I have to start over.
I just want to get the path to a darn icon! ; )