Search found 9 matches

by coyoteconscious
Sun Nov 03, 2019 11:07 pm
Forum: Mac OS
Topic: Problem reading .plist file inside app package
Replies: 22
Views: 18135

Re: Problem reading .plist file inside app package

I said you were coming across to me as snide. I have no idea of knowing whether or not you are, but the way you phrased your responses came across that way, even when I tried to read it charitably. I said what I did to either let you know you might unintentionally have come across that way, so you w...
by coyoteconscious
Sun Nov 03, 2019 10:54 pm
Forum: Mac OS
Topic: Problem reading .plist file inside app package
Replies: 22
Views: 18135

Re: Problem reading .plist file inside app package

I also tried:
put URL("binfile:" & tFile) into tFileContents
put textDecode ( tFileContents , "UTF-8" ) into field "plist"

Did not work. Either the file is not really utf8, or that isn't the right way to do it.
by coyoteconscious
Sun Nov 03, 2019 10:43 pm
Forum: Mac OS
Topic: Problem reading .plist file inside app package
Replies: 22
Views: 18135

Re: Problem reading .plist file inside app package

I did exactly what you suggested and did NOT get garbage: in fact I got exactly the same sort of thing from a pList inside BBedit with your stack as I got with my 100 times more primitive stack from a pList outWith a stack: - Hard to tell through text, but you kind of come across as if you are bein...
by coyoteconscious
Sun Nov 03, 2019 10:00 pm
Forum: Mac OS
Topic: Problem reading .plist file inside app package
Replies: 22
Views: 18135

Re: Problem reading .plist file inside app package

Maybe an example will help. Click "Choose App". I have been using Safari as my example app, though I'm getting the same behavior with other apps. When you choose the app, it will fill in a field showing the path to the app file. Then it fills in a field with the path to the Info plist file within th...
by coyoteconscious
Sun Nov 03, 2019 9:12 pm
Forum: Mac OS
Topic: Problem reading .plist file inside app package
Replies: 22
Views: 18135

Re: Problem reading .plist file inside app package

I just copied the pList out of Text Edit onto my desktop for that "little demonstration." Yep. I can go into the package and copy the file out just fine. And as mentioned in my original post, I can open it in other applications just fine. My problem is that even though it says the file is utf8 enco...
by coyoteconscious
Sun Nov 03, 2019 9:10 pm
Forum: Mac OS
Topic: Problem reading .plist file inside app package
Replies: 22
Views: 18135

Re: Problem reading .plist file inside app package

My mission: Allow a user to select an application from an answer file dialog, then assign that application's icon to a button in the app. Why do I feel you might be better to mine an app's package for the .icns resource rather than digging around in the pList? That would work, if the icon file were...
by coyoteconscious
Sun Nov 03, 2019 9:08 pm
Forum: Mac OS
Topic: Problem reading .plist file inside app package
Replies: 22
Views: 18135

Re: Problem reading .plist file inside app package

Klaus: You wrote: 1. We are not allowed to write in folder "Applications" on the Mac! Except on your own machine with Admin permissions, not recommended nevertheless. :D And even that may end with macOS Catalina, but maybe (hopefully) I am wrong here... I am not trying to write to anything at all. I...
by coyoteconscious
Sun Nov 03, 2019 9:06 pm
Forum: Mac OS
Topic: Problem reading .plist file inside app package
Replies: 22
Views: 18135

Re: Problem reading .plist file inside app package

richmond62: Yes. And that works _just fine_ if I am not trying to read a plist file that lives inside an application package, that I have created myself. But it does not work when I attempt to read the one inside an app package that says where it's icon lives.
by coyoteconscious
Sun Nov 03, 2019 6:52 pm
Forum: Mac OS
Topic: Problem reading .plist file inside app package
Replies: 22
Views: 18135

Problem reading .plist file inside app package

My mission: Allow a user to select an application from an answer file dialog, then assign that application's icon to a button in the app. 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 p...