How to load/refresh default preference plists

Hi guys,
I am facing the following problem at the moment: we got a couple iMac clients in a computer pool bound to an AD, which as a default disables the secondary mouse button on the AD user's account on first login.
So I came up with the idea of running a script on startup which basically runs the terminal command
defaults write com.apple.driver.AppleHIDMouse Button2 -int 2
which works fine, but sadly it only takes effect after the next login. What it does is essentially manipulating the file com.apple.driver:AppleHIDMouse.plist in the user's Library/Preferences/ directory.
So I'm trying to figure out now how to reload this plist file to have it's changes take effect right away. Unfortunately the mechanics of these preference plists are not well documented.
Does anyone know how I can make the system reload defaults/preferences from this file?
Thanks in advance,
Jo

Hi!
try this code --
LOAD DATA
   INFILE 'sample.dat'
   REPLACE
   INTO TABLE emp
   empno   POSITION(01:04) INTEGER EXTERNAL NULLIF empno=BLANKS,
   ename   POSITION(06:15)  CHAR,
   job         POSITION(17:25)  CHAR,
   mgr       POSITION(27:30)  INTEGER EXTERNAL NULLIF mgr=BLANKS,
   sal        POSITION(32:39)  DECIMAL EXTERNAL NULLIF sal=BLANKS,
   comm   POSITION(41:48)  DECIMAL EXTERNAL DEFAULTIF comm = 100,
   deptno  POSITION(50:51)  INTEGER EXTERNAL NULLIF deptno=BLANKS,
   hiredate POSITION(52:62) CONSTANT SYSDATE
  )-hope this will solve ur purpose.
Regards.
Satyaki De.

Similar Messages

  • How to load a default page in web based application ?

    Hi
    I am new to j2ee , I have an application in which , when i start the application , login.html should be open by default .
    One way i found is that put the page name in <welcome-file> tag inside web.xml.
    My question is that there any other way like calling the dafault servlet or something else by which we can load the default page ?
    Any kind of help would be great.
    thanks in advance.

    Hi Rastogha,
    that sounds (to me) like the right way to do this. I suppose another way would be to have index.html redirect using a meta tag, but that's a little messy IMHO.
    sjl

  • How do I restore default preferences with Illustrator CS6 in Mac with Mavericks (10.9.2)?

    In Library/Preferences I don't have the Adobe Illustrator Settings.
    I tried the Find command to search for Illustrator Prefs, but can't see it.
    If I were to find it, the Illustrator CS6 Classroom in a Book tells me to copy the file and save it to another folder in the hard disk? This I don't understand. 
    Thanks!

    PA,
    When you mean start up is opening Illustrator, right?
    Right.
    The quick and easy way to restore default preferences is the Cmd+Option+Shift.
    If you have customized your preference settings and wish to be able to get them back, you can use the Move the folder way which will save them so you can move them back and thereby regain your customized settings.
    For your present use, Cmd+Option+Shift is the obvious choice.

  • How to load a default prefereces when a create a new profile

    i need disable access for a urer creates a new profile in firefox. if it not possible block a profiler manager in firefox, other solution is when user create a new firefox profile, it load defaults preferences

    hello, probably the best solution in this case is to use the ''mozilla.cfg'' file to lock certain preferences - it will work regardless of which profile is used. for more information about how to implement it please see http://kb.mozillazine.org/Locking_preferences

  • How to load a default value in to a column when using sql loader

    Im trying to load from a flat file using sql loader.
    for 1 column i need to update using a default value
    how to go about this?

    Hi!
    try this code --
    LOAD DATA
       INFILE 'sample.dat'
       REPLACE
       INTO TABLE emp
       empno   POSITION(01:04) INTEGER EXTERNAL NULLIF empno=BLANKS,
       ename   POSITION(06:15)  CHAR,
       job         POSITION(17:25)  CHAR,
       mgr       POSITION(27:30)  INTEGER EXTERNAL NULLIF mgr=BLANKS,
       sal        POSITION(32:39)  DECIMAL EXTERNAL NULLIF sal=BLANKS,
       comm   POSITION(41:48)  DECIMAL EXTERNAL DEFAULTIF comm = 100,
       deptno  POSITION(50:51)  INTEGER EXTERNAL NULLIF deptno=BLANKS,
       hiredate POSITION(52:62) CONSTANT SYSDATE
      )-hope this will solve ur purpose.
    Regards.
    Satyaki De.

  • How do I change print preferences to print in black/white by default instead of color

    how do I change print preferences to print in black/white by default instead of color

    When you try to print, use COMMAND P, it should bring up a window similar to this you can select the preset there. It shoud remember the preset after.

  • How to make Mac load as default instead of Windows

    When I reboot my computer, if I'm not watching carefully, my Windows partition will attempt to load XP. How can I make it so the Mac loads by default?
    Thanks!

    Use the Startup Disk control panel (Boot Camp control panel in XP).
    You should have inserted and installed the Mac OS X DVD while in Windows and run Apple Setup.exe.

  • How to replace wecenter default loading image(ss.gif).

    Hi All ,
    I am working on webcenter customization .
    Can anyone provide me how to replace webcenter default loading image which appears before webcenter content gets loaded .
    Appreciate any prompt response .
    Thanks ,
    Arun.

    If it's the splash screen you speak of, a custom skin defining these selectors may work - af|document::splash-screen, af|document::splash-screen-content, af|document::splash-screen-message and af|document::splash-screen-icon.
    Please note that I have not tried these myself.

  • How do you set your time/date default preference in pages?

    I am trying to set my default settings, anyone know how you change the default setting on pages?

    It gets it from the System.
    Otherwise you have to individually right click on the Inserted date in Pages to set it to what you want.
    Another alternative is once you have the Date the way you want it, to copy and paste it.
    Peter

  • How to set a default "from" field on outgoing Mail message

    i read through the last few pages of this support forum and googled my topic but i havent found a suitable solution.
    in Mail v 3 (3.4) there is a "From:" field in any outgoing mail. very useful for those of us with multiple non-accounts and/or .Mac aliases. i generally set a specific outgoing mail server (so that field is removed from outgoing email).
    my problem is how to set a default outgoing email address so that my recipients always get from a certain (eg work) email address when i am at work. at work, anything i send, i want to show my work email without always having to manually select the "FROM" field in the outgoing email.
    ( aside: i had read that Mail version 3 was supposed to auto-select any reply so that the reply would come from the same email i orginally sent as. this does not work on my mac.)
    This problem is exacerbated as Mail auto-rotates between my 4 email accounts/aliases (which are all listed (correctly) in the FROM field. it would be great if this list could be fixed with a default FROM address.
    eg i send an email from my work email address (FROM: [email protected]) the next email i send will be rotated through my list of .mac aliases. i.e. the next email i send will not be from [email protected], but from [email protected] the next time it might move on to [email protected] or it might revert to [email protected]
    any thoughts on how to fix?
    i have tried deleting the home/library/preferences/com.apple.mail.plist. that is fine, but any .mac aliases (which i do use, but i dont want to be listed in the "FROM" field) are listed in the "FROM" field, and are auto-switched through my Mail again.
    i looked through Rules and Automator, but no obvious help there. any thoughts?

    Did you try Preferences > Accounts > Account Information and entering these other email aliases in the Email Address: field, separated by commas? That would give you a pop-down menu in the New Message window letting you choose which alias to use when sending an email.
    If you go to Preferences > Composing, there should be a pop-down menu near the middle of that window labeled "Send new mail from:" which will let you choose any email address you have entered in the Account Information field mentioned above, or "Account of last viewed mailbox" as the default.
    Mulder

  • The default priority setting in Mail is set to "normal"  and is causing emails I send to be sent with red priority flag. How can I set default priority to low = no flag?

    The default priority setting in Mail is set to "normal"  and is causing emails I send to be sent with red priority flag.
    I have found the flags to reduce the priorty level manually to "low Priorty", but how can I set default priority to low = no flag?
    Thank you for advising,

    Try deleting the .plist.
    Quit the application.
    In Finder hold down the option/alt key while selecting the Go menu item. Select Library. Then go to Preferences/com.apple.mail.plist. Move the .plist to your desktop.
    Open the application and test. If it works okay, delete the plist from the desktop. 
    If the application is the same, return the .plist to where you got it from, overwriting the newer ones.
    If you want to make your user library permanently visible, run the below command in Applications/Terminal.
    chflags nohidden ~/Library/
    You will need to do that after any updates.

  • Yosemite - could not load internet accounts preference pane - same for icloud - mail not running

    After Up-Grade to Yosemite 10.10:
    Mail not working
    Preferences Error Could not load Internet Accounts preference pane
    Preferences Error Could not load iCloud Accounts preference pane
    Had several issues when upgrading from Mountain Lion to Yosemite 10.10. Finally it seemed to work. When starting Mail, I tried to restore data from Time Machine (did a back-up under Mountain Lion immediately before up-grading to Yosemite). This ran for over 2 h when I suddenly noticed that "Mail quit unexpectedly. Since then I cannot work with Mail at all.
    I read on the forum that many people have issues with Mail in Yossemite but apparently it's different from what I am experiencing, and it seems that none of the proposed solutions work for me.
    I can start Mail, but I will only see the bar on top of the screen. Mail "Preferences" remains grey (= cannot click).
    When choosing Mail "Accounts", System Preferences opens and then I get the "Preferences Error Could not load Internet Accounts preference pane."
    I noticed then that I get a similar error when clicking "iCloud" in System Preferences: "Preferences Error Could not load iCloud Accounts preference pane."
    I can open "Internet Accounts" and "iCloud" in System Preferences when I log in as a guest without any errors, but as soon as I log in with my user name, I get the same errors.
    As suggested elsewhere in this forum, I removed the com.apple.mail-shared.plist in library and tried the same with com.apple.internetaccounts.plist.
    I've spent hours on this and find this increasingly frustrating. I would try another new installation of Yosemite, if only I could be confident it would work this time...
    Any advice how to solve this will be appreciated!

    Hey Sage,
    Glad you got it fixed!
    I had exactly the same problems, but found this solution on another thread courtesy of Paul Pharoah which saved the trouble of another clean install and seems to have fixed everything  . It appears the problem lies somewhere in the mail account settings.
    "I 've had the same problem today and tried lots of the suggested solutions around, all without success until....
    1.  I moved all the files in ~/Library/Mail/V2 to the desktop
    2. Deleted the folder
    3. Deleted my two email accounts (Gmail and exchange server) using System Preferences>Internet Accounts
    4. Re-started Mail.  It now re-started as if for the first time and asked me to re-input my mail accounts which I did.
    5. Mail up and running again."
    from thread: Re: Yosemite mail crash
    Cheers!

  • Any SB Audigy 2 ZS owners out there know how to load Synth A &

    Any SB Audigy 2 ZS?owners out there know how to load Synth A & B ?
    Mine is a OEM Version (for [url="http://homerecording.com/bbs/showthread.php?p=2960574#">HP[/url]) I got used for $40, didn't know it was until I had trouble installing driver,s but that's now resolved. Mine is model SB0359 but tag says Audigy 2 ZS and SB0350, but without MIDI port and 394 port. A real A2ZS is SB0350. 24/96 recording and playback.
    Everything is working great, 2 ms latency recording on some quick testing.
    BUT the Soundbank Manager doesn't seem to want to load any SF2 into Synth A or B , so I can use them in my sequencer (JAZZ++) for playback, and REAPER for recording (eventually). I don't want to be locked into the default [url="http://homerecording.com/bbs/showthread.php?p=2960574#">Windows[/url] GM sounds. At least in REAPER, I can use a VST approach and connect a SF, but I only want MIDI for Drums and maybe some Pads, in spots. I do have a MIDI bassline, but that will be re-done with real bass guitar.
    Maybe because I don't have a physical MIDI port on the OEM version, the program isn't functiing properly (guess)
    Is there another way to load the Synths ? Manual scripts ... via INI ?

    johnnymegabyte wrote:
    Everything is working great, 2 ms latency recording on some quick testing.
    BUT the Soundbank Manager doesn't seem to want to load any SF2 into Synth A or B , so I can use them in my sequencer (JAZZ++) for playback, and REAPER for recording (eventually). I don't want to be locked into the default [url="http://homerecording.com/bbs/showthread.php?p=2960574#">Windows[/url] GM sounds. At least in REAPER, I can use a VST approach and connect a SF, but I only want MIDI for Drums and maybe some Pads, in spots. I do have a MIDI bassline, but that will be re-done with real bass guitar.
    Maybe because I don't have a physical MIDI port on the OEM version, the program isn't functiing properly (guess)
    Is there another way to load the Synths ? Manual scripts ... via INI ?
    REAPER:
    As it's an OEM card, it's possible that MIDI features are ripped. Have you tried by installing nati've software by tweaking the installer?
    You find the original CD and instructions on how to patch the installed by searching here using "BadBoy" for CD and "ctcomp" for patching (as for an example).
    - on Options/Preferences/Audio/MIDI Devices, select synths A/B
    - create new track
    - on track I/O config, set MIDI Hardware output to Audigy Synth A or B and on Audio Hardware outputs, add a new one as stereo Left/Right
    - on track Monitoring options, enablethe monitoring
    - set the SF bank (Do not use big ones but those bundled ones beford getting everything working ... there are some size limitations)
    Remember also that drums are on MIDI channel 0.
    Hope this helps you to start ... (I don't have SoundFont Bank Manager installed so I can't try if this works).
    jutapa
    Message Edited by jutapa on 07-6-2008 0:53 PM

  • Removed my ipod too soon how do i refresh my ipod forget where info is in manual

    i removed my ipod too soon and lost all my songs except one how do i refresh it to make it work again I cant find it in manual

    If the shuffle's storage has data corruption, you should do a Restore.  The Restore button is on the shuffle's Summary screen in iTunes.  This will erase the shuffle, re-install its software, and set it to default settings.  You can then set it up to sync or load it manually from your iTunes library, as desired.
    If you are asking about how to load content on an empty shuffle, please post back.

  • I saw a post on how to load iMovie 6 without deleting iMovie 9 or iLife 11 I can't find the post now does anyone know if this is possible. I do not want risk not being able to reload iMovie 9 it appears that I would have to reload the whole  iLife suit

    I saw a post on how to load iMovie 6 without deleting iMovie 9 or iLife 11 I can't find the post now does anyone know if this is possible. I do not want risk not being able to reload iMovie 9 it appears that I would have to reload the whole  iLife suit

    Could have been mine!
    Happily this is easily achieved, but it has to be done backwards.
    Delete iMovie 9 (just drag it to the trash). Now install iMovie 6 from the iLife 6 install disks.
    Now re-install iMovie 9. This automatically moves iMovie 6 into a folder it creates in your Applications folder called iMovie Previous Version.
    Now you have them both, and you can have both in the Dock as well.
    Alternatively you could try this method, suggested by poster Uitech:
    Open a terminal and type "touch /Library/Preferences/com.apple.iLife08.plist"
    (No quotes)
    Install iMovieHD6 from the iLife 6 install disk.
    This works with both Leopard and Snow Leopard Macs.

Maybe you are looking for

  • HELP! I cannot make or receive calls on my iPhone 4s?

    Ok so I updated my phone to iOS 7.1.2 & it made me restore my phone. I lost everything except my photos in my photo stream & my contacts. I can receive & send text/iMessages. I can also receive FaceTime calls. But I cannot receive or make regular pho

  • Windows Exe closes on Enter Key

    Hello! I'm using Captivate 5 on a Windows 7 64Bit machine. The issue I'm having is when I launch a project published to Windows Executable(Full Screen). It play fine however users are closing the file when they hit the Enter key on their keyboard. Pr

  • S750s - can't handle high volume :(

    Hi, I've had this problem for ages now, but have been too busy with work to do anything about it, but now that I've moved into my new house, I am aching to blow the roof off (metaphorically speaking) The problem? Crank the volume on the s750s anywher

  • IWeb Stops Responding When I Open Media Browser

    I haven't used my iWeb application in several months and now when I go in to update my web pages, every time I open the media browser I get the spinning beach ball and the application hangs. The only way to get it working again is to force quit and r

  • TS2972 Apple TV problems

    Just got Apple TV 2012. My movies are seen but can't access my library from tv. Saying to make sure it's connected to same network, which it is. Please help!