Discrepancy with cat and plist files

I'm finding some strange and unexplainable discrepancies with the cat command, and I'm hoping someone knows what's going on.
I've got two different .plist files that I'm trying to get the contents of using cat. It works perfectly with one, while the other outputs a bunch of weird characters rather than showing all the XML tags. The two files have exactly the same XML headers, are both UTF-8, etc. Why the difference with cat?
The files in question are:
/private/var/db/launchd.db/com.apple.launchd.peruser.501/overrides.plist
~/Library/Preferences/ByHost/com.apple.loginwindow.[UUID].plist
The former works fine, the latter does not.
Any ideas?

plists can be stored in binary format.
I believe 'plutil' can convert them from XML to binary (& back).
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/ man1/plutil.1.html
I can't recollect if plistbuddy is binary aware…
https://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/ man8/PlistBuddy.8.html

Similar Messages

  • Problem with Preview and PSD files - random gray square

    Hi guys, hope you can help...
    I've got a problem with Preview and PSD files.
    If I open in Preview both an original jpg straight from my reflex and the photoshop version of the same picture, the psd file presents a gray square (of what it seems unrendered image) in a random area of the photo (sometimes in the center.). The square is quite big...
    If I zoom in or zoom out it disappears...if I scroll to another photo and then back to the psd, the square it's there again...sometimes in a different position.
    I've tried the same psd on my older iMac with leopard...and got no problem at all.
    I suspect it got something to do with my Ati...
    (this is the second iMac 27...the first went back for gray banding on the lcd screen and flickering and yellow tinge........)
    Thanks for your help.
    DAve.

    maybe I'm onto something...
    I've just found out that opening Preview in 32bit mode (instead of default 64bit) works flawlessly with any psd files. If I switch back to 64bit mode, Preview is much faster but the gray square comes back...
    It seems like the i7 is much faster than the Ati....
    Any more realistic ideas?

  • Is there a way of running cd's"windows" formatted with inf and swf files?

    Is there a way of opening and running CD's 'window' formatted with .inf and .swf files on a mac??

    In your operating system, move the photos to wherever you want them to be (keeping the folder tree structure the same), and then in Lightroom re-link via http://www.computer-darkroom.com/lr2_find_folder/find-folder.htm

  • Popup with open and save file option

    Hi,
    I have created a button on my page name as "Export File" and created a process and called on "EXPORT FILE" button. I am using utl file in this procedure and i want to download this file and file will be .ics file using for calendar.
    My page process code is
    begin
    pro_create_ical(:P6_START_DATE,:P6_END_DATE);
    end;when i click on export file button it should raise a popup with open and save file option.
    How i can do this?
    Thanks & Regards
    Vedant
    Edited by: Vedant on Jan 25, 2013 1:59 AM
    Edited by: Vedant on Jan 25, 2013 2:00 AM
    Edited by: Vedant on Jan 25, 2013 3:49 AM

    Shiv,
    Have you installed any new Software/Spyware/Virus Scanner etc.Check it out.It might have caused the issue for last 5 days.
    This issue is fixed in Latest Support Package Versions.
    Which Version of Support Package you are using?
    If EP6 <SP19 you will face this issue.
    Just upgrade it to EP6, Support Pack-19,this will be resolved.
    Upgrade of Support Pack wont take much time.you can get the document under http://service.sap.com/instguides
    Hope it helps
    Regards,
    Karthick Eswaran
    *Reward Points for helpful answers.

  • I'm so confused!! I just want to create interactive pdf files (with video and flash files), but this free trial version is confusing!! help!?!

    i'm so confused!! I just want to create interactive pdf files (with video and flash files), but this free trial version is confusing!! help!?!

    Thanks for your suggestions. I checked to see if the options you suggested were set incorrectly but they were set to sync all. This led me to think the problem was actually in the iphone. I re-initialized the iphone and did not allow the system to restore any of the previous settings. In essence, I forced the phone to reset to factory settings. Then my video podcasts started syncing. All is well now. I did notice that I had seven podcasts selected that were "HD" presentations, and as such, are not compatible with the iphone. I don't know if this had anything to do with my earlier situation, but now I'm getting the video podcasts automatically. I'm happy. It wasn't much fun forcing the iphone to forget all of my preferences and I'm still customizing the phone now several days later. I think I have everything working and back to normal except I haven't identified any of my email accounts as of yet. Thanks for your help.

  • Application preference and plist files

    Does anyone know how to access application and plist files so that I can delete them. I have a 3rd party application (Popcorn) that I need to delete from my Macbook Pro. When using Tiger, it was as simple as doing a file-popcorn, and it would list all the file extensions. Leopard only lets you delete the application, leaving preferences and plist files hidden. I found this out after I deleted the popcorn application. My computer shows no files for Popcorn when I do a search, but after I reloaded the application, it fired right up and kept all my personal info etc. Anyone have a solution?

    Hello Bad Kaaarma and welcome to discussions,
    Hard Drive > Users > Home Folder > Library > Preferences.
    Hope that helps some.
    Regards
    Ian

  • Does Creative Cloud work with InDesign and linked files?

    Does Creative Cloud work with InDesign and linked files?

    This will work for online storage.
    The preview you will see on the website but will be what you see on your desktop if the the folder was missing. If you want someone else to be able to see a preview online to give comment feedback you could export out a PDF file of the work-in-progress and upload it.
    If you just want to work on the project at different locations it might be easier to zip up everything into a single file and upload it. Then download it onto the computer where you want to work and unzip it.

  • Aborting index build. Too many errors with finding and copying files ...

    Hi dears,
    I'm using UCM 11g.
    I'm trying to start the automatic update cycle. When i start it, it gives me an error message just like :
    Indexing aborted at :<time>. Aborting index build. Too many errors with finding and copying files to the appropriate place.+
    Can anybody help me about this problem?
    Helps will be appreciated.
    Erdo
    Edited by: erdo on 28.Mar.2013 11:11

    Read this: error in Collection Rebuild Cycle
    and maybe also UCM Indexer - Collection Rebuild Cycle errorring out

  • Having problems with launchd a plist file and launch on demand.

    First, my plist file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Debug</key>
    <true/>
    <key>KeepAlive</key>
    <false/>
    <key>Label</key>
    <string>TestApp</string>
    <key>OnDemand</key>
    <true/>
    <key>Program</key>
    <string>/Applications/Test/TestApp</string>
    <key>ProgramArguments</key>
    <array>
    <string>daemon</string>
    </array>
    <key>Sockets</key>
    <dict>
    <key>SockFamily</key>
    <string>IPv4</string>
    <key>SockPassive</key>
    <true/>
    <key>SockServiceName</key>
    <string>8585</string>
    <key>SockType</key>
    <string>stream</string>
    </dict>
    <key>WorkingDirectory</key>
    <string>/Applications/Test/</string>
    </dict>
    </plist>
    The idea is, if another app which I have tries to connect to 127.0.0.1:8585 that my test app will launch and do its stuff. The test app is the server and the guy making the call is the client.
    The plist file is located in "/Library/LaunchDaemons" and is owned by root and only readable by anyone but root. Similarly TestApp is only readable/executable by root and no one else can do anything. Finally TestApp is a C++ program not an actual application ie:TestApp.app/Contents/etc...
    If it were windows, it would be TestApp.exe.
    Anyway, when I invoke my other program, TestApp isn't launched. (I rebooted after I put the plist file in so it would be read). I know TestApp and TestClient can talk, if I run them both myself everything is fine. I just want to get launchd to do it on demand. There isn't a clear way for me to debug this because if there is an error, I do not know where to look to see it, if any such errors are reported. Syslog doesn't show anything of interest in this reguard.
    Any help is greatly appricated.

    Hello Mark:
    You are seeing a "normal" behavior, if this is the case on the load of a first report. Subsequent reports should be significantly faster. Only way to make the first load appear faster is to load the CR assemblies and dlls on app start. E.g.; load a fake report on app start. Unfortunately, those 20+ seconds will now move to the initialization / load of the app...
    Ludek
    BTW., downloading the latest Service packs is never a bad idea and may help a bit, but not 10+ seconds for sure.

  • Help with editing a plist file

    Hello,
    I'm new to scripting and would appreciate any help I can get.
    I need to create a shell script that will modify one part of an AD plugin plist file in 10.7.  The plist file contains, among other things, this part which is supposed to contain GUID's for AD security groups:
         <dict>
                   <key>ActiveDirectory</key>
                   <dict>
                          <key>network admin groups</key>
                          <array/>
                   </dict>
    I need the file to be modified to contain this, instead:
         <dict>
                <key>ActiveDirectory</key>
                <dict>
                        <key>network admin groups</key>
                        <array>
                                 <string>exampleGUID-1</string>
                                 <string>exampleGUID-2</string>
                        </array>
                 </dict>
    I need to modify it through a shell script or unix command so that it can be automated and run on many machines, without modifying the rest of the file that contains other data unique to each machine. 
    Here's what I've been playing around with... it will remove the existing entry, and create a string with value "test" properly, but I am stuck on how to create an array containing multiple strings. 
    #!/bin/bash
    #Deletes the existing network admin groups entry
    /usr/libexec/PlistBuddy -c "Delete :ActiveDirectory:'network admin groups'" /path/to/file/ourdomain.plist
    #Adds entry and sets string to "test"
    /usr/libexec/PlistBuddy -c "Add :ActiveDirectory:'network admin groups' string test" /path/to/file/ourdomain.plist
    Anybody have suggestions for how this could be done?  I'm sure this is simple for somebody out there
    Thanks!

    Awesome- Thanks for your help... I knew I was just missing something small.
    I got it working using the following:
    #!/bin/bash
    #Deletes the existing entry
    /usr/libexec/PlistBuddy -c "Delete :ActiveDirectory:'network admin groups'" /path/to/file/ourdomain.plist
    #Adds array element
    /usr/libexec/PlistBuddy -c "Add :ActiveDirectory:'network admin groups' array" /path/to/file/ourdomain.plist
    #Adds 1st entry and sets string
    /usr/libexec/PlistBuddy -c "Add :ActiveDirectory:'network admin groups':0 string test" /path/to/file/ourdomain.plist
    #Adds 2nd entry and sets string
    /usr/libexec/PlistBuddy -c "Add :ActiveDirectory:'network admin groups':1 string test two" /path/to/file/ourdomain.plist

  • Windows 8 Elements 11 Problem with DNG and CR2 files

    Have a Windows 8 machine with Elements 11 which has Camera Raw 7.4 installed and showing correctly in the editor. The Browser shows thumbnails of the DNG and CR2 files, but when an attempt is made to edit them, the editor opens but does not open the file. Same thing happens if I try to open the file using the File Open from the menu.
    Also I have been through the help and forums and found an article about opening jpeg files as Camera Raw files (http://blogs.adobe.com/pselements/open-jpeg-files-in-adobe-camera-raw-in-photoshop-element s/) and this does not work either.
    Help please !

    Disclaimer:  The following applies to WINDOWS EXPLORER.  I don't use Bridge so I don't know if it's applicable at all to Bridge.
    Adobe does not provide a codec for viewing Canon raw files as thumbnails.  Canon has one for free but it only works on a 32 bit Windows system.
    Early this year I found a free download for displaying raw file thumbnails that works on an x64 Windows system.  Since that time the author realized there's a real demand for this software and has started charging for it.  In any case, I find it works very well.
    http://www.fastpictureviewer.com/codecs/
    -Noel

  • Import from HD folder with NEF and JPEG files-Can't see JPEG files

    I am using Aperture 2 and I am trying to import from an external HD folder of images, with both NEF and JPEG files of the same photo. Using the import function, the import pane only shows the NEF file, not the JPEG file. Is there a setting somewhere that will allow me to see the JPEG file also, so I can import only the JPEG. (note: if I move the JPEG to a different folder away from the NEF file, then the JPEG appears and I can import it.)
    PS I am importing only the JPEG because I have a Nikon D60, which is still un-supported.

    You could import both, select all images afterwards, select 'Create version from master jpeg'(alt-J), unstack all (shift-cmd-K while everything is still selected), sort by file size to separate the raws from the jpegs, and delete the raws.
    Or run the raws through Adobe's DNG converter (which in its newest version, 4.4, supports the D60) and use the DNG baseline support until Apple (or rather Aperture) supports the D60.

  • Copy CD with Mac and Windows Files

    I have a CD, not copy protected that has both Mac files and Windows files on it. Specifically it is a Printer Driver CD.
    When I make an image of it with Disk Utility, the only files in it are the Mac files. I wanted to make a safe backup of the CD, including both the Mac files (for my PB G4) and the Windows files for when I install the print drivers on my new MacBook Pro using BootCamp.
    Any ideas as to how to make a copy of a CD that has both Mac and Windows files on it?
    Thank you

    Are you sure the Windows files aren't there? A lot of CDs are hybrids, and do not show the files that belong on another platform such as Windows. Put it in a Windows computer and check.
    Otherwise, buy a copy of Toast and dupe it that way.

  • Working with EXCEL and WORD files on a Mac Pro

    Hello,
    I have a lot of EXCEL and WORD files and the compatibility with NUMBERS and PAGES is not really satisfying. Is there a EXCEL and WORD app which runs without surprises on a Mac Pro?

    Welcome to Apple Support Communities
    Microsoft sells its own Microsoft Office version for OS X > http://www.microsoft.com/mac Microsoft Office for Mac will be the application that will give you less headaches when using Office documents, so I recommend it.
    Another application you should consider is LibreOffice, which is free > http://www.libreoffice.org

  • PLEASE HELP!  Quicktime Pro with iMovie and .MPG Files

    Hello. Please help me. I'm on a G5. 10.5.3. iMovie 7.1.2 (577) I have a series of .MPG files that I need to import into iMovie to edit, arrange and then export over to iDVD, etc. iMovie does not see the .MPG files. The Apple site states that iMovie sees only MPEG-4 files and DV files. I also own Quicktime Pro 7.5 (149.5). When I open the .MPG file in Quicktime Pro, even though the file plays perfectly, when I select "Export to MPEG-4" so I can create a readable file by iMovie, I get an error message that say's "Failed: Export process terminated unexpectedly (10). Complete frustration. Is there another way I can convert these files so iMovie can see them? What's wrong with my Quicktime Pro? I bought DivX Pro last night. I thought maybe that program would make an iMovie readable file. No luck. I used DivX to convert and it created a DivX file with NO SOUND. Wasted money.
    If anyone has any solutions for my problems noted here or possible alternatives so I can achieve what I'm trying to do successfully, PLEASE ADVISE as soon as possible.
    Thank you for taking the time to read this and THANKS, in advance, for your help.

    You'll get a ton of ideas from others so, by no means, don't think that mine will solve your issue. I, personally have fallen in love with [StreamClip|http://www.squared5.com>. It does a ton of stuff.
    As for your Error 10, hopefully that's just an "out of space" (on your drive) error and not an I/O error (a problem with the drive reading/writing)
    But, you said you have Quicktime Pro and you're going to iMovie so I'd try to make your .MPG files a DV Stream...I think that's what I movie likes.
    Anyway try that,
    Tom
    ----- !http://hockeynarrative.files.wordpress.com/2007/09/sharkslogo.gif!

Maybe you are looking for

  • How do I copy a DVD to my Mac with an external drive.

    I have tried to make a copy a DVD Nd although it seemed copy on e it had finished it didn't look like it was in the right type of folder and won't play back. Any ideas as I am texting to copy them so I can put them on my iPad. I have an external hard

  • IDOC message type for GL entries

    I have a requirement to transfer GL Entries from ADP to SAP . Please suggest what are the message types to be used both in Outbound and Inbound.

  • Error - Problem With Trial

    Hi all I downloaded de Adobe Captivate 3, at choose to enter a valid serial or trial period, choose trial period, and error message appear. "Problem With Trial" Using Windows Xp SP2 Not using dual Boot The Temp and Tmp using same folder A Time a go U

  • Change payload of a BPEL process

    Hi, I'm trying to change the payload of a BPEL process which is in Financial image processing accelerator. can anyone tell me what are the steps to change the payload of that. I tried to change the payload by changing XSD files.is it correct?? Thanks

  • I have no video can not watch can hear it but no Pic.

    on line shopping  i can noy see the pic