Hello list, Can someone on OSX 10.8 please run the following command: defaults export /Library/Preferences/SystemConfiguration/preferences -
And tell me what happens:a) it outputs some xml that ends with "</plist>"b) it outputs the same exact thing as running defaults
with no arguments
Thanks,Jonathan
On Mon, Mar 13, 2017 at 2:22 PM, Jonathan Wilkes via Pd-list pd-list@lists.iem.at wrote:
Hello list,
Can someone on OSX 10.8 please run the following command: defaults export /Library/Preferences/SystemConfiguration/preferences -
Trying this on OSX 10.8.5. Command 'defaults' needs an argument; 'read', 'write', 'rename', 'domains' are among the options, but not 'export'. For example:
$ defaults read org.puredata.pd
gives the preferences for pd as a list between curly braces. I don't see how to get the /Library/Preferences... etc. into the command?
Katja
And tell me what happens: a) it outputs some xml that ends with "</plist>" b) it outputs the same exact thing as running
defaults
with no argumentsThanks, Jonathan
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
On Mon, Mar 13, 2017 at 2:22 PM, Jonathan Wilkes via Pd-list
pd-list@lists.iem.at wrote:
Hello list,
Can someone on OSX 10.8 please run the following command: defaults export /Library/Preferences/SystemConfiguration/preferences -
Trying this on OSX 10.8.5. Command 'defaults' needs an argument;
'read', 'write', 'rename', 'domains' are among the options, but not 'export'. For example:
$ defaults read org.puredata.pd
gives the preferences for pd as a list between curly braces. I don't
see how to get the /Library/Preferences... etc. into the command?
If I type defaults export /Library/Preferences/SystemConfiguration/preferences -
in OSX 10.11 I get the plist output to the console.
-Jonathan
Katja
On Mon, Mar 13, 2017 at 2:22 PM, Jonathan Wilkes via Pd-list
pd-list@lists.iem.at wrote:
Hello list,
Can someone on OSX 10.8 please run the following command: defaults export /Library/Preferences/SystemConfiguration/preferences -
Trying this on OSX 10.8.5.
Just to be clear-- did you type the exact command I specified above? If so, what happened?
On Wed, Mar 15, 2017 at 12:57 AM, Jonathan Wilkes jancsika@yahoo.com wrote:
On Mon, Mar 13, 2017 at 2:22 PM, Jonathan Wilkes via Pd-list
pd-list@lists.iem.at wrote:
Hello list,
Can someone on OSX 10.8 please run the following command: defaults export /Library/Preferences/SystemConfiguration/preferences -
Trying this on OSX 10.8.5.
Just to be clear-- did you type the exact command I specified above? If so, what happened?
With the command as you specify, but also with command 'defaults' without argument, it responds with:
"Command line interface to a user's defaults. Syntax: 'defaults' [-currrentHost | -host <hostname>] followed by one of the following: [...]"
Then follows the list with command options (read, read-type, write, rename, delete, domains, find) and explanations. In other words, 'defaults' without argument or with argument 'export' are not valid options on this system (10.8.5). Compare the issue described here:
https://github.com/kcrawford/dockutil/issues/17
Can you think of another approach to get what you want, that I can test on 10.8.5?
Katja
Thanks for the report, katja. It looks like we can use 'plutil' instead. Does the manpage for 'plutil' in 10.8 include 'json' as a possible format for the '-convert' flag? -Jonathan
On Wed, Mar 15, 2017 at 12:57 AM, Jonathan Wilkes jancsika@yahoo.com wrote:
On Mon, Mar 13, 2017 at 2:22 PM, Jonathan Wilkes via Pd-list
pd-list@lists.iem.at wrote:
Hello list,
Can someone on OSX 10.8 please run the following command: defaults export /Library/Preferences/SystemConfiguration/preferences -
Trying this on OSX 10.8.5.
Just to be clear-- did you type the exact command I specified above? If so, what happened?
With the command as you specify, but also with command 'defaults' without argument, it responds with:
"Command line interface to a user's defaults. Syntax: 'defaults' [-currrentHost | -host <hostname>] followed by one of the following: [...]"
Then follows the list with command options (read, read-type, write, rename, delete, domains, find) and explanations. In other words, 'defaults' without argument or with argument 'export' are not valid options on this system (10.8.5). Compare the issue described here:
https://github.com/kcrawford/dockutil/issues/17
Can you think of another approach to get what you want, that I can test on 10.8.5?
Katja
Hi Jonathan,
Sorry for the delay, the plutil manpage for 10.8.5 says about format for the '-convert' flag:
fmt is one of: xml1, for version 1 of the XML plist format binary1, for version 1 of the binary plist format json, for the JSON format
Among the additional options is:
-r For JSon, add whitespace and indentation to make the output mor human-readable.
Katja
On Wed, Mar 15, 2017 at 8:08 PM, Jonathan Wilkes jancsika@yahoo.com wrote:
Thanks for the report, katja.
It looks like we can use 'plutil' instead.
Does the manpage for 'plutil' in 10.8 include 'json' as a possible format for the '-convert' flag?
-Jonathan
On Wed, Mar 15, 2017 at 12:57 AM, Jonathan Wilkes jancsika@yahoo.com wrote:
On Mon, Mar 13, 2017 at 2:22 PM, Jonathan Wilkes via Pd-list
pd-list@lists.iem.at wrote:
Hello list,
Can someone on OSX 10.8 please run the following command: defaults export /Library/Preferences/SystemConfiguration/preferences -
Trying this on OSX 10.8.5.
Just to be clear-- did you type the exact command I specified above? If so, what happened?
With the command as you specify, but also with command 'defaults' without argument, it responds with:
"Command line interface to a user's defaults. Syntax: 'defaults' [-currrentHost | -host <hostname>] followed by one of the following: [...]"
Then follows the list with command options (read, read-type, write, rename, delete, domains, find) and explanations. In other words, 'defaults' without argument or with argument 'export' are not valid options on this system (10.8.5). Compare the issue described here:
https://github.com/kcrawford/dockutil/issues/17
Can you think of another approach to get what you want, that I can test on 10.8.5?
Katja
Hi Jonathan,
Sorry for the delay, the plutil manpage for 10.8.5 says about format for the '-convert' flag: fmt is one of: xml1, for version 1 of the XML plist format binary1, for version 1 of the binary plist format json, for the JSON format
Among the additional options is:
-r For JSon, add whitespace and indentation to make the output mor human-readable.
Thanks, Katja. -Jonathan
Katja
On Wed, Mar 15, 2017 at 8:08 PM, Jonathan Wilkes jancsika@yahoo.com wrote:
Thanks for the report, katja.
It looks like we can use 'plutil' instead.
Does the manpage for 'plutil' in 10.8 include 'json' as a possible format for the '-convert' flag?
-Jonathan
On Wed, Mar 15, 2017 at 12:57 AM, Jonathan Wilkes jancsika@yahoo.com wrote:
On Mon, Mar 13, 2017 at 2:22 PM, Jonathan Wilkes via Pd-list
pd-list@lists.iem.at wrote:
Hello list,
Can someone on OSX 10.8 please run the following command: defaults export /Library/Preferences/SystemConfiguration/preferences -
Trying this on OSX 10.8.5.
Just to be clear-- did you type the exact command I specified above? If so, what happened?
With the command as you specify, but also with command 'defaults' without argument, it responds with:
"Command line interface to a user's defaults. Syntax: 'defaults' [-currrentHost | -host <hostname>] followed by one of the following: [...]"
Then follows the list with command options (read, read-type, write, rename, delete, domains, find) and explanations. In other words, 'defaults' without argument or with argument 'export' are not valid options on this system (10.8.5). Compare the issue described here:
https://github.com/kcrawford/dockutil/issues/17
Can you think of another approach to get what you want, that I can test on 10.8.5?
Katja