Open jaltonen opened 2 years ago
Hello
Can you paste the example you are talking about here?
https://github.com/ygini/Hello-IT/wiki/public.command
Can you show me your final plist?
Please, use code formatting in GitHub to keep things readable.
Below is my working preference file. If I paste your example code, from https://github.com/ygini/Hello-IT/wiki/public.command, into it, and do a defaults read on the preferences file, and then select reload from the app menu. Hello IT will not relaunch.
`<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
`
Well the github code formatting is either doing something weird with my plist or it is highlighting some error that I was unaware of. It is not displaying the the plist correctly in my previous comment. The plist does however function as expected. Maybe I will test with a simplified plist that only contains the public.command section.
"Maybe I will test with a simplified plist"
I definitely found this approach to be helpful when I built out my Hello-IT profile (which is 562 lines long at this point). I just went step by step adding a section at a time and making sure I didn't break anything before adding the next part.
Your sample miss the plist headers. Be sure to have something that look like the preference shown here https://github.com/ygini/Hello-IT/wiki/Preferences#content
I'm attaching a picture because when I use the code formatting tags its cutting off the header.
This simple plist with only the example from the public.comand wiki page, and a title, causes Hello IT to not load.
What you are showing us here is not a complete plist. Did you read the preference documentation? The link I’ve shared on my previous message?
The only thing I was able to get from the linked documentation was that I was not using public.submenu as the initial function. It has always been working for me even with out that. Assuming that could be the issue I made up this simple plist.
It does not load Hello IT
If I remove the public.command dict, it does load.
The example had a spelling error on:
<key>programArguments</key>
The p should be a capitalized P as in:
<key>ProgramArguments</key>
I have edited the example in the Wiki.
Now my plist will load. However, HelloIT will still not do the example command successfully and I have not been able to find the issue using Console.
I concur, will load with case fix. Wont do the example. I also tried doing a touch on a file in /Users/Shared. Did not work either.
I'm probably doing something wrong but if i paste the example from the wiki into my preference plist and reload the app it never reloads. Meaning hello it disappears from the menu bar and wont come back until i remove the public.commmand section. I am running HelloIT v1.6