I need to write a long browser string with the “defaults write” terminal command, but I can’t figure out how to get it to parse. I’ve tried quotes, brackets, and various combinations, yet I invariably get the same error “could not parse - try single-quoting it”.
String is “Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030917 Camino/0.7+”
trying to do (in this case) “defaults write com.apple.Safari CustomUserAgent Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030917 Camino/0.7+”
I know there are plenty of other ways to get it into the property list, but for my purposes, I need to do a defaults write from the command-line.
Thanks!