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

Similar Messages

  • Help with Editing Raw in Lightroom 3.6

    Hello everyone!
    I am new to the forum and also to using lightroom. I just need some help with editing my RAW files. I shoot in RAW + JPEG and I just imported the files to lightroom. It didn't show me the jpeg files for importing so I only imported the RAW files, which I needed. After editing, I realised it said CR2+JPEG. Which means that both files were imported but combied into a single one. Now I basically want to edit my RAW files only. Does that mean I have edited a jpeg or a mixture of both files? How to edit only the RAW file?
    If my picture says CR2+JPEG, does that mean it isnt a pure RAW file and the editing would affect the image quality?
    I will really appreciate some help!

    It imported both, but only shows you the raw file. Ever. What you see and what you edit will only be the raw file. The associated JPG file will follow the raw file around if you move it or rename it using Lightroom, but other than that, Lightroom will ignore it. You could safely delete the JPG, and Lightroom wouldn't complain--probably wouldn't even notice.
    There's a preference you can set that will cause JPGs to be imported as separate images. Then you'd be able to see both of them and edit them separately. That preference won't take effect on images that are already in the catalogue, but will affect all future imports.
    Hal

  • Help with editing a template flash file..

    FIRST OFF..please don't shoot the noobee..I know some folks
    don't like the templates and I appreciate that.
    I have done some reading but not a whole lot about Flash. I
    certainly don't want to BUILD a flash (not yet), but want to edit
    one that is included in a template. I only want to edit the header
    that drops down. It says The Web STudio. I, for example, want it to
    say Marks Studio.
    Ok..the temp comes with Flash/non flash.
    I open w/flash and have a 3 folders: flash, psd and html.
    -flash folder has Images, fla doc and one flash html file
    -PSD folder has 3 psd files
    -html folder has flash folder, images folder, css file and
    one single index.html file.
    I opened the flash folder and found the image.jpg I wanted to
    change to Marks studio.
    I opend the PSD and found the slice that is the same as that,
    then edited it like I want it in PSD, then saved to replace the old
    image. top1. jpg
    Still, it is the same ole one that came with the temp.
    as I said, please don't shoot the noobe. I just wanna edit
    the flash file.
    Thanks for any help.
    Mark

    You'd need Flash to edit the FLA file.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "snipingkid" <[email protected]> wrote in
    message
    news:enev5r$p8l$[email protected]..
    > Hey guys,
    >
    > I need some help with editing a flash template, I have
    the .swf, .fla, and
    > .html file of this thing, I would like however to edit
    something on it....
    > Ive
    > tried everything, I have access to photoshop and
    dreamweaver 8... Im not
    > any
    > good at it but with decent help I could get something
    done. What I would
    > like
    > to edit is just text that flies in.... I would like to
    edit the text, how
    > do I
    > do it.... Thanksj
    >

  • How do you edit system plist files manually?

    I'm trying to edit a .plist file in the system/library/launchdaemons folder but can't figure out how to get permissions to work.  I have Xcode but when I try to edit it says "you don't own parent folder, can't unlock".  I tried changing ownership of the .plist file itself (just temporarily) and still same error.  The permissions on the file are like all system files; owner-system-w/r, group-wheel-read, and everyone-read.  So, what's the trick?  And please don't say I shouldn't mess with system files...if I brick the computer I promise not to ask for your help.  Thanks.

    Hi Niel,
    Can't you edit system files as root?
    Later,
    kel

  • Need help with editing flash

    Hello everyone, I'm really new to flash and I have some problems with editing my flash file. Currently, I have a small flash application  in a folder, containing various kinds of files such as AS, SWF, FLA, HTML. What I want to do is to change the text inside one of the buttons in the application. After doing some reasearching, I realized that I should probably make some changes to the FLA file(Quiz.fla for example) since Quiz.fla is the only FLA file in the folder. Therefore, I opened it using Adobe Flash CS5.5, what what I found out is that the Quiz.fla file  is really different from other FLA files. It only shows a plain background when I open it, without showing the actual interface of the flash application. It does contain all the buttons and contants under the Library section on the right side of Adobe Flash . When I try to change the text inside the button then save-publish, the newly published SWF file  would just be a static picture of the button I've changed and everything else is gone. Any help is greatly appreciated!

    ya, that's why I'm confused. I've actually tried editing some sample flash FLA files and all I need to do is to edit them in the Library and it would work out. But this one seems to have some weird problems. I could actually send the application folder to you if you have some time to take a look at it. Thank you very much again for the help!

  • Help with converting a Nero file

    I have previously converted a dvd insert designed with Nero into a pdf using adobe acrobat in order to send to someone else.  When I tried to do the same thing today with a new Nero designed insert the conversion wouldn't work.  The message said adobe didn't support the program that created the file.  Any ideas?

    thanks for your response.
    When I create a dvd insert or cd label etc using Nero the file extension is nct - nero cover template.  The printer wants the file as a pdf as he can't open Nero files.  I have version 9.3 of acrobat.
    Date: Mon, 18 Jan 2010 21:43:47 -0700
    From: [email protected]
    To: [email protected]
    Subject: help with converting a Nero file
    Nero is simply a CD/DVD burning application and should have no effect on the type of files that will eventually be on the CD/DVD.
    What type of files are you trying to convert and exactly how are you trying to convert them? Plus, it would help to know the version of Acrobat you are using.
    >

  • I had to put my computer by together without migration or time machine I NEED help with order of the files?

    I had to put my computer by together without migration or time machine I NEED help with order of the files?

    Hi, where are these other files exactly?

  • Help with importing PC photo files and then organizing it all in iPhoto

    Hi everyone,
    I'm relatively new to mac but I am just loving my purchase! I need some serious help with getting all of my photos organized though so I can easily find it for editing in iMovie.
    I've accumulated over 10,000 photos stored on my PC which I've since transferred over to my LaCie external drive for my MacBook Pro via a wireless network connecting my PC & Mac. Some of these I've put onto my laptop internal hard drive and those I've imported into the iPhoto library. However, do I need to move the rest of the photos from my LaCie drive into my internal hard drive to import the photos into iPhoto, or can I tell iPhoto to look for the files in the external drive. If so, how do I do that? I know I'll then have to create albums in order to sort them, which I know how to do. Is there any fast way to do it by date? I had it sorted into different file folders by month & year so I could easily find them on my PC and would like to do the same using albums.
    I am quickly running out of hard drive space on my laptop which is why I've put most of my photos on the external drive. Once I organize my existing collection, I would like to be able to import new pictures and have it stored on my external drive, not my internal drive. How do I do that?
    Any other tips on organizing a massive photo library would be greatly appreciated.
    Thanks,
    Karen

    Karen,
    Is there any fast way to do it by date? I had it sorted into different file folders by month & year so I could easily find them on my PC and would like to do the same using albums.
    This is where you get to enjoy the power of iPhoto's database. You can change the Sort in the View menu. Check out View > Sort Photos > by Date.
    Or, click the little calendar icon near the lower left corner of the iPhoto window. This allows you to filter the library by year, month, week, or date. You can Command-click to add another date to your filter. You can Option-click to choose a recurring date: you get that month or date for all years in your library. [Want to see your kid's birthday for every year? Just Option-Click that date. Cool.]
    The keywords filter is similar. There is a preference setting where you choose to filter based on ALL keywords chosen (where by choosing more keywords you narrow your field) or ANY keyword (where the more keywords you choose, the larger your field will be). Click on a keyword to filter your library by all photos containing that keyword. Use Command-click to add more keywords to the filter. A difference is that Option-click will eliminate photos with that keyword from your filter. [You can find all pictures of your kids with your dog but NOT at Halloween.]
    You can create Smart Albums to combine the use of dates, keywords, ratings, titles, comments and more. The more information you enter into the database, the more powerful the tools become.
    When your task of importing is complete and you are ready to play with iPhoto's features it may help to look at the iPhoto multimedia tutorial. Better organized than trying to read through the Help files, it can help you get acquainted with many of iPhoto's features.
    Have fun.

  • Help with quality of exported files

    The problem: I'm trying to get a good quality, 34 minute movie onto a DVD with chapter markers separating individual short films. This is supposed to be a compilation of 8 family movies, in addition to an introduction and credits at the end. Four movies are old movies made in iMovie and are .m4v files. Four were made in FCE earlier this year. I linked everything together in a Master Sequence, putting pauses in between each with some livetype text files to introduce each video. The m4v files were imported and placed in the master sequence. The others are nested sequences. I put chapter markers at the beginning of each section. My intention was to export this one master sequence as a quick time movie, then put it into iDVD.
    It worked, but the quality was horrible! Everything became grainy, even the movies I had previously created in FCE. This was very disappointing. So I expertimented with a few things, and here’s what I found.
    When I exported a quicktime movie, the quality degraded. It became grainy. Also, it changed the aspect ratio and stretches everything horizontally, as if to take a standard size screen and stretch it to a widescreen. It did this even with the original movies I had made in FCE. I don’t like building self contained movies using this mode because the file sizes are too big, so when I export I tend to use quick time conversion. In this case, I was hoping a non-self contained movie would merely point to all the original content and not add compression artifacts (or something like that). It turns out it made it worse.
    When I tried to export a quicktime conversion, 640x480 VGA, best quality, H.264, the machine couldn’t do it. It ran for an hour or so and then crashed. Twice. That is for the entire movie. When I export individual clips (3-6 minutes) it works. The quality is good for movies made in FCE, not as good for imported m4v movies made long ago in iMovie, but better than what I get exporting quicktime movie files, either self contained or not. This is surprising to me, because I was expecting the export quick time movie command to produce the best quality. Also, I’m concerned that if I was able to create this, iDVD would not see any chapter markers anyway.
    So there is a problem either way. Experimenting has led me to discover several questions/issues which need answering:
    Issue #1: Why can’t I get a quick time movie of the same quality as what I see on the canvas, using the quick time movie export command? On a side note, the user's manual says something about a settings pop up menu where you can deselect the "recompress all frames" option. I can't seem to find this, and was thinking maybe that would help.
    Issue#2: Why do m4v files which are very high quality in iTunes suddenly become poor quality when imported into a sequence? Seems to be an import problem, because the movies are already grainy when they’re on the canvas. I thought about making XML files and importing them that way, but the original project files in iMovie are gone.
    Issue #3: Why do I end up with a stretched picture if I export quick time movies and there are mixed aspect ratio contents in the sequence (the m4v files are widescreen, the others are not)? More important, how to I get FCE to not do this?
    Issue #4: When I export movies using quick time movie (not conversion), the grainy movies actually look better when played in VLC. They also look good when opened with FCE. How can I get that kind of quality in quick time, or at least in iDVD? Perhaps that would solve my problem.
    Thanks for any help you can provide.
    E

    Thanks for the response. I’m not fluent with codecs or video compression, so this project quickly became more trouble than I expected.
    It turns out the nested sequences are not H.264, the compression field is blank for the nested sequences. I double checked and the other properties are correct. Sorry about that. The other movies, though, (ones built in iMovie for iTunes) are H.264.
    These four . m4v movies are in 960x540 and 480 x 272 because of the way they were exported in iMovie (Share -> Export Movie opens a menu with four sizes: Tiny 176 x 144, Mobile 480 x 272, Medium 640 x 360, and Large 960 x 540).
    I just imported the final products (what was exported from iMovie) as clips into FCE. Sounds like I should not be doing that. The original media is on my computer, but not the iMovie project files, and for what I’m trying to do it’s just not worth the time to rebuild the movies in FCE.
    Bottom Line: Here’s the current status of the project:
    All eight of the movies, by themselves, play well in quicktime. I can put all of them on a DVD, and they still play ok. I wanted to string them all together in one sequence, with some transitions in between (creating a “Play All” option on the DVD). That’s why I nested the sequences, and imported the movies made from iMovie, than added chapter markers. Unfortunately, putting these different types of media together and asking the computer to make one sequence is creating a mess. So I’m sticking with Plan B and putting the movies on a DVD without trying to merge them into a single track.
    A few follow up questions…
    Out of curiosity, when you say “convert everything to QuickTime DV NTSC 720x480 at 29.97fps with 48k audio,” do you mean the original media (all of the bits of video and stills that came from the camera) or the edited sequences I’m currently working with? As a lesson learned, should I be changing properties of clips before importing them to FCE, so the source material has consistent aspect ratios?
    The still images, though they are huge, show up with much better quality than the movies (which is expected, and I’m ok with). So I get a product which includes both video and still images, where the images are very sharp and the movie portions are a bit grainy (because they were taken on a small digital camera). If I change the size on the stills, won’t that just bring the still image quality down?
    I’m still baffled at why using the export quick time movie command makes a video of lower quality than when using quick time conversion (in other cases as well, not just this project). In every case, I’ve got digital pictures and movies from my digital camera, and some text in FCE or LiveType files on top of that, usually with additional audio tracks.

  • Help with my library and files

    I am a little confused about the library and organization of my files. I use Aperture 3.0 and am constantly running out of disk space when I try to import my files. I feel like there are unnecessary duplicates being made of the pictures and video, but I can't be sure. I now have an external HD to store the pictures on, but need a little help figuring out what is the best way to go about doing this without losing any of my data and staying organized.
    I would love to store the images and videos on the external drive, and store a smaller copy for viewing on the laptop itself without taking up a bunch of room. Is this possible to view while not connected to the external drive, and still make edits? Or only make edits to the files while connected?
    Right now, I simply plug in my camera and import into the Pictures folder on the laptop HD. Is it possible that they're being imported into the iPhoto library (even though I don't use iPhoto anymore) and into Aperture?
    Aperture library file (located in Pictures folder): 27gigs
    iPhoto library file (also located in Pictures folder): 22.8 gigs
    Pictures folder (including two above files): 110.7 gigs
    Thanks for your help!!
    -Dave

    Right now, I simply plug in my camera and import into the Pictures folder on the laptop HD
    In Aperture, do you have a Managed or Referenced Library?
    Is it possible that they're being imported into the iPhoto library
    Not unless you have set up some form of Folder Actions - and you would know if you have. But a simple test: do your import actions as normal and then open iPhoto. Are the newest additions there?
    would love to store the images> and videos on the external drive,
    This is easy.
    and store a smaller copy for viewing on the laptop itself without taking up a bunch of room.
    No need for a smaller copy. You can still view in Aperture without the disk connected.
    and still make edits? Or only make edits to the files while connect
    You can only edit the files with the disk connected.
    Regards
    TD

  • Help with Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.

    This was all working yesterday, but this morning, I cannot run in the dev fabric, or even setting the website project as a startup project directly, I get the following error:
    Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.BadImageFormatException: Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'msshrtmi' could not be loaded.
    === Pre-bind state information ===
    LOG: User = Andrew-VAIO\Andrew
    LOG: DisplayName = msshrtmi
    (Partial)
    WRN: Partial binding information was supplied for an assembly:
    WRN: Assembly Name: msshrtmi | Domain ID: 3
    WRN: A partial bind occurs when only part of the assembly display name is provided.
    WRN: This might result in the binder loading an incorrect assembly.
    WRN: It is recommended to provide a fully specified textual identity for the assembly,
    WRN: that consists of the simple name, version, culture, and public key token.
    WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
    LOG: Appbase = file:///C:/Users/Andrew/Desktop/Beko2011Azure/Website/
    LOG: Initial PrivatePath = C:\Users\Andrew\Desktop\Beko2011Azure\Website\bin
    Calling assembly : (Unknown).
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\Users\Andrew\Desktop\Beko2011Azure\Website\web.config
    LOG: Using host configuration file:
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/cb955b02/eef106e2/msshrtmi.DLL.
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/cb955b02/eef106e2/msshrtmi/msshrtmi.DLL.
    LOG: Attempting download of new URL file:///C:/Users/Andrew/Desktop/Beko2011Azure/Website/bin/msshrtmi.DLL.
    ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
    Stack Trace:
    [BadImageFormatException: Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
    System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
    System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
    System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +132
    System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144
    System.Reflection.Assembly.Load(String assemblyString) +28
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46
    [ConfigurationErrorsException: Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +618
    System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +209
    System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
    System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
    System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +94
    System.Web.Compilation.BuildManager.CallPreStartInitMethods() +332
    System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +677
    [HttpException (0x80004005): Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9079228
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
    System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +258
    Note that the dev machine is x64 Win7.
    I have not tried deploying this to staging since the issue started as I'm a bit nervous of touching the staging/live environment until this is solved.
    Removing the PlatformTarget element from the project file has no effect
    Removing the msshrtmi.dll file from the bin directory of the website project ends up with 
    'Could not load file or assembly 'Microsoft.WindowsFabric.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified'
    I have used Git to revert to the last working build to no effect (But I don't have the obj/bin folders in GIT), but it has atleast reset the project files etc.
    If I return msshrtmi.dll to the bin folder and switch the model and website projects to x64 there is no change
    If I switch both to x86 then I get an error Could not load file or assembly 'BekoModel2011' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    which is the model project - presumably because to run on my x64 machine I need the 64bit version?
    I really need to be able to debug and then publish some changes ASAP.
    Andrew

    Hi,
    Is it true that you're using IIS to host the application? Could you check whether the process is x64 or x86 one via task manager or config in IIS manager?
    http://blogs.msdn.com/b/rakkimk/archive/2007/11/03/iis7-running-32-bit-and-64-bit-asp-net-versions-at-the-same-time-on-different-worker-processes.aspx
    Allen Chen [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • 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 cell in a JTable. DESPERATE

    Hi! Is there someone out there that could help with some source code for editing a cell in my JTable when I run it as an applet??
    It works fine when I run it as an application.
    I manage to select the row and write a number in it, but I can't get out of the cell (it seems that the program stops??). I want to enter an integer in a cell and when I click enter or with the mouse in an other cell the value that I enter should update some other cell( multiply the entered value with some fixed number and update a cell in a second coloumn)
    I am really desperate now..... I have thought about using a MouseListener....
    I am using a tablemodel that is from AbstractTableModel.

    Are you using some cell editors?
    While converting inside them, you might be getting some exceptions (like parseexception)which is stopping you from proceeding further.
    Are you using your own tablemodel with custom datatypes?
    Hope this helps,
    Ramkumar

  • Help with Editable Regions

    We are in the process of creating a template for our site. We
    are working on the editable regions. What we are finding is if we
    want to add a bulleted list of items (let's say links) we can't do
    it without the list header also becoming bulleted. For instance
    let's say we have the following:
    Medical Resource Links
    Cardiology
    GI
    Respiratory
    We would want Medical Resource Links to be bold and stay to
    the left. The other three items we would want to have bullets.
    When we try this in an editable region all four items move
    over and only the first gets the bullet. Do we need an additional
    editable region for the title? Is this controlled via a CSS? Any
    help you can give would be greatly appreciated. We are beginners
    with this. Thanks.

    This has nothing to do with editable regions. It's all about
    the HTML on
    the page.
    Show us the HTML for your list, and I'll tell you why it's
    happening the way
    you describe.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "DONNA6985" <[email protected]> wrote in
    message
    news:edme63$o0m$[email protected]..
    > We are in the process of creating a template for our
    site. We are working
    > on
    > the editable regions. What we are finding is if we want
    to add a bulleted
    > list
    > of items (let's say links) we can't do it without the
    list header also
    > becoming
    > bulleted. For instance let's say we have the following:
    >
    > Medical Resource Links
    > Cardiology
    > GI
    > Respiratory
    >
    > We would want Medical Resource Links to be bold and stay
    to the left. The
    > other three items we would want to have bullets.
    > When we try this in an editable region all four items
    move over and only
    > the
    > first gets the bullet. Do we need an additional editable
    region for the
    > title?
    > Is this controlled via a CSS? Any help you can give
    would be greatly
    > appreciated. We are beginners with this. Thanks.
    >

  • 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

Maybe you are looking for