Clear all dock items - with Terminal command

Hi!
I need an command for clearing all dock items. I have good command line skill but couldnt find a way to just clear it all. Somebody have?
Thanks.
(I know Server could help me do that but i belive server takes to much time to fully apply than just using small tools for wath my need is.)
Hmm. Found one way :-). Manually edit the prefs file on the user login.

Thanks for the replies.
@ mende1 - I did hold cmd-R to reach the recovery partition. How do I now leave safe mode (if it is stuck in that) and boot normally?
@ Thomas - DU seems to be successful in repairing the disk. It doesn't report any errors - just says what it is "checking", "updating" and "adjusting" (not a very long list at all) - but it concludes with partition map appears to be OK.
My other Mac has all my files so I don't mind reinstalling on this one, except for the fact that I would have to reinstall all the applications and I don't have them with me where I am at the moment.
If I choose to reinstall when booted with cmd-r will it re-download or install from a local copy? Re-downloading will take forever because I only have mobile (3G) broadband here.
Do I have any other options?
Thanks for helping.
/p

Similar Messages

  • Reboot loop: Help me delete all login items with Terminal

    I updated my Macbook (5,1) from Lion to Mountain Lion and began soon thereafter to get the error that the computer had restarted after a problem. For a few days the computer would nevertheless reach desktop after a restart and could be used.
    I thought that perhaps the error came from the login items and saw on Rogue Amoeba's site that SoundSource isn't yet compatible with ML. Removing it seemed to cure the problem.
    But as of this morning the computer is stuck in a restart "loop". It shows the apple and spinner and a grey progress bar. When the bar is almost completed (a millimeter or so remaining) the computer restarts and does the same thing all over.
    I have now managed to get to the recovery partition with cmd-r. I have repaired the disk with DU and I would like to remove all login items using Terminal but haven't got a clue how to do it. I have searched but don't find good walkthroughs. So I would very much appreciate help on how to do this.
    My login items are Skype, Dropbox and iTeleport.
    Cheers and many thanks
    /p

    Thanks for the replies.
    @ mende1 - I did hold cmd-R to reach the recovery partition. How do I now leave safe mode (if it is stuck in that) and boot normally?
    @ Thomas - DU seems to be successful in repairing the disk. It doesn't report any errors - just says what it is "checking", "updating" and "adjusting" (not a very long list at all) - but it concludes with partition map appears to be OK.
    My other Mac has all my files so I don't mind reinstalling on this one, except for the fact that I would have to reinstall all the applications and I don't have them with me where I am at the moment.
    If I choose to reinstall when booted with cmd-r will it re-download or install from a local copy? Re-downloading will take forever because I only have mobile (3G) broadband here.
    Do I have any other options?
    Thanks for helping.
    /p

  • Can we clear more line items with different currency within one Vendor

    Dear All,
    Please guide us the following issue is
    Can we clear two line items with different currency within one Vendor (i.e., Down Payment entry passed in EUR and Invoice in JPY).
    Thanks in advance.
    Regards
    Srinivas

    Hi
    I suppose this should be possible in F-44, for any difference in forex enter a new line item 'Charge off diff.' to Dr/Cr Forex gain/loss account
    Thank You,

  • Charge off difference whening clearing customer open item with bank receipt

    Hi,
    Our company users will use F-32 to clear customer open item with bank receipt, sometimes, our invoice is 100 RMB issue to customer, the customer finally pay 99.98, then in F-32, we use charge off difference to post 0.02 difference to a account.
    The user then want to control this, saying for example, if the customer pay only 90, whening using charge off differnce, the system will pop up a error message.
    Can this be done in SAP, or we need to use user exit, then which user exit?
    Thanks.

    Dear,
    This is done through customer tolerance group using transaction OBA3. Here enter the maximum amount in Loss under the Permitted Payment Differences. you are able to hold tolerance for customer clearing.
    Is this what you wanted?
    Regards,
    Chintan Joshi.

  • ALE BOM. Updates ALL! items with validity date & change no.

    Hi All,
    We are having problems where ALE-BOM sent with change in validity date (with change no) to a particular item. What happens is that ALE-BOM will instead update ALL! items with the same validity date and change number.
    Next,when we process ALE again for the same BOM with a different validity date(with change no), then only that
    particular item is updated with validity date and change no.
    Would anyone know what could be the problem that when changes are sent for the first time all items are updated?
    [Version: SAP 4.6C/ SAPKH46C48]
    Regards,
    Neeth

    Dear:
                   The error itself telling you the correction. You profit center which is assigned to your cost center has a validity date less than the one you are now assigning.You can check in KE52 against the profit center assigned to your cost center master data. However the best thing is to go to KS01 and create this cost center with desired validity date.
    This will resolve your issue.
    Regards

  • How to clear vendor open items with customer open items in APP?

    Hi Experts,
    Our vendor is our customer - in this scenario how to clear vedor open items against customer open items. I have defined vedor is customer means I have given customer number in vendor master record, selected chek box 'clear with customer'.  Still problem is not solved, hence I am requesting you to help me in this regard.
    Thank you very much,
    Regards,
    Ganesh.

    Hi
    In FBCJ after payment you have clear manually vendor balance in F-44.
    If you want SPL GL in FBCJ then write a Substitution .
    1. step 001 - Special G/L Substitution
    2. Prerequisite - Transaction code = 'FBCJ'
    3. Substitution posting key -- Exit (need help from abap) exit name
                                              G/L Exit (need help from abap) exit name
                                              Special G/L Ind Exit (need help from abap) exit name
    you can't do this without ABAP help
    Best Of Luck
    Tanmoy

  • Clearing forex open item with INR receipt

    Hi,
    We have a scenario were original customer invoice is in foreign currency.  However, the money remitted by the customer is directly credited in the bank, not in the same foreign currency, but in Indian currency.  In this case, the system is able to clear if we manually enter the forex gain or loss.  But this gain or loss is calculated with reference to the current exchange rate and not with exchange rate as at the invoice posting.
    Any idea how this could be handled?
    Thanks
    Muru

    Lawrence,
    The issue came because the user was trying to clear a Forex open item with local currency.  In F-28, he was entering the local currency amount as receipt.  The rate at which the receipt is converted is different from the rate maintained for forex valuation (M rate).
    If the receipt is posted in the original document currency, the complication is avoided.  However, I would be interested to know if you are aware of some other way of handling this.
    Thanks
    Muru

  • Clearing a open item with two bank accounts at a time

    anybody answer the below question please
    how can clear the vendor line item using two bank accounts at a time

    hi Samala,
    you can do it manually in F-53, enter a bank account with amount, than enter vendor number, and click to select open items. Here don't select any open item, but click on Overview. Now you should see the item with the bank account you already entered, on the bottom of the screen you can enter a new line now, with another bank account, when it is done, you can click on process open items again, select, simulate, post, ...
    hope this helps
    ec

  • Can't open profile manager for mac with terminal command

    i have tried to open profile manager version 0.3.0 11/4/11 3:31 PM
    with every command that an extensive search has revealed. each attempt yields a "no such file or directory response"; e.g.,Last login: Tue Nov 29 00:26:23 on ttys000
    Welcome to Darwin!
    r-c-wolins-computer:~ rcwolin$ /Functions/firefox.app/Contents/MacOS/firefox -profilemanager
    -bash: /Functions/firefox.app/Contents/MacOS/firefox: No such file or directory
    r-c-wolins-computer:~ rcwolin$. i'm using a macbook 3,1 with os 10.6.8 and ff 4.0.1. what am i doing wrong and how can i rectify it?
    thanks for your help. this is making me crazy.

    yes i did. it is in the applications folder. however, the default path when i open a shell won’t get me there and i don’t know how to change it. it should be /don’t forget to smash the state [my computer’s name]/macintosh hd/applications/browsers/firefox.app [or something to that effect].
    also, when i drag profilemanager .app into terminal shell i get
    r-c-wolins-computer:~ rcwolin$ /Applications/ProfileManager.app
    -bash: /Applications/ProfileManager.app: is a directory
    does this mean that profilemanager.app is a directory? if it is, how do i access it?
    further, if /Firefox.app/Contents/MacOS/firefox-bin -profilemanager is supposed to be where the command indicates, it isn’t. how do i get it there?
    thanks for your help. you bailed me out before when i was perplexed about .sqlite files. i appreciate it.

  • Add "Serch Domain" in Network Preferences with Terminal command

    Hi!
    I'd like to add a Search Domain in the Network setting using a Terminal command. With this I can use ARD3 to end the command to several machines at once wihtout having to go to each machine and do it in the GUI.
    I know you can write to preference files with the Terminal, but I don't know what to type.
    Please help.
    Thanks in advance!

    Hey Camelot,
       You're getting a lot of mileage out of that new command. Kudos for finding it.
    Hi Martin,
       Naturally Camelot's command is the most elegant solution. The Systems Preferences settings for the network are stored in the /Library/Preferences/SystemConfiguration/preferences.plist property list file but I think that's only consulted at boot. The search path is too deep to be comfortably manipulated by the "defaults" command but we could probably do it with sed if that would help.
       When the network comes up, the above information is combined with data from DHCP to create the /var/run/resolv.conf file, which is linked to by the classic /etc/resolv.conf file. That has a "search" field that holds the search domains in a whitespace delimited list. I don't know how often that's consulted but that's the final source of the information.
    Gary
    ~~~~
       Life would be so much easier if we could just look at the
       source code.
          -- Dave Olson

  • Done Something Dumb, Please Help With Terminal Command

    OK, So I couldn't figure out why I was no longer getting Growl notifications with mail.app and GrowlMail after I upgraded to 10.5. Turns out it has something to do with the bundle version it is running. I ran the following 2 terminal commands found here : http://www.davidroessli.com/logs/2007/01/gettinggrowlmail_towork/
    they were:
    defaults write com.apple.mail EnableBundles 1
    defaults write com.apple.mail BundleCompatibilityVersion 2
    Once I launched mail.app again the application told me that it had shut off support for the Plaxo plugin that I use. Now neither Growl nor the Plaxo plugin work. Long story short, can someone explain to me how to put mail.app back the way it was before I foolishly ran terminal commands? Thanks in advance

    Email the author. Growl isn't supported by Apple.
    You are aware that the article was written quite a while before 10.5.2 was released? It's not a good idea to implement modifications that are not tested on the current version of OS X without checking first with the author of such modifications. It's especially not a good idea to use the "defaults write" command without knowing how to undo the change.
    The first command is undone by substituting 0 for 1. Change the second one from 2 to 3.

  • Open With menu won't clean up with Terminal command

    After upgrading to 10.6 last month I can't clean up my open with menu. I ran the following in Terminal and it did nothing to clean up the duplicates:
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
    I used to run the following in Tiger and it never failed to clean up the duplicates:
    /System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServic es.framework/Support/lsregister -kill -r -domain local -domain system -domain user
    Must I delete “com.apple.LaunchServices” file located in Home/Library/Preferences
    OR
    Remove launch services preference files, "com.apple.LaunchServices.plist" and "com.apple.LaunchServices.QuarantineEvents" in /username/Library/Preferences/ folder and then run the commands to clear and rebuild the launch services?

    Thanks Andy. Running the following in Terminal cleaned up your problem with the Open With menus?
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
    In December cnet.com wrote about running that command: "It gave only temporary relief to people dealing with sluggish Save and Save as menus." Using Onyx to clear caches and reset launch services was suggested instead. In October and March cnet.com wrote about rebuilding launch services to stop Finder caused crashes in Snow Leopard by trashing the launchservices preference files from user/library and then running the following in Terminal (custom file associations will revert back to default):
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -kill -seed -rfv -all user, system, local
    When I was still running Tiger last year and had a Launch Services problem caused by crashes in the Finder due to misplaced folder aliases, BD Aqua in this forum linked me to The X Lab @
    http://www.thexlab.com/faqs/resetlaunchservices.html#Anchor-Reset-47857
    where I learned all I needed to do to straighten things out was delete the following cache files from HD/Library/Caches:
    com.apple.LaunchServices-0140.csstore
    com.apple.LaunchServices-014nnn.csstore
    The information about resetting Launch Services at the X Lab stops with Leopard. There are no cache files in Snow Leopard like those from Tiger above and their equivalents in Leopard.

  • Startup Items with Terminal

    Hello.
    Is it possible to place files into a users startup items via the Terminal? I have a need to write some UNIX scripts to configure systems, and this is part of the config. The items are Flash files which need to run when the machine logs into a specific account.
    Thanks, A.

    Yann Bizeul wrote:
    This is not done using startup items, account specific actions are configured more easily using Accounts preference pane, by tweaking Startup tab.
    Actually, it is called the *Login Items* tab. Anything that can be configured as an application can be added to run at login time. One way to do what the OP wants is to wrap the code in an AppleScript saved as an application using the "do shell script" Applescript command, allowing some pre or post processing in the script, or calling a series of shell scripts if desired. Or for more elaborate, interactive processing with easy access to the Mac GUI, it can all be made into an AppleScript Studio project.

  • Inadvertently deleted user folder with terminal command - HELP!

    Hi
    I was using terminal to delete my hosts file using the following command:
    sudo rm -rf /Users/xxx/.ssh/known_hosts
    Unfortunalely, I misplaced a space after the username, and deleted most of my user files. I thought something weird was happening when all the desktop icons dissappeared, and restarted immediately.
    Now I am missing all of my docs, and desktop files. Some things are preserved, like itunes library and iPhoto library. My backup is over 6 months old.
    I took out the hdd, put in an external enclosure, and hooked it up to another SL machine. I ran stellar phoenix overnight, but the recovered files all seem to be weird system files, mostly .plist files, nothing recent.
    Any suggestions?
    Thanks

    ro-76 wrote:
    Thanks for the reply.
    My main backup is over 6 months old.
    then I suggest you start backing up regularly. there is no excuse not to do it.
    I use dropbox to backup the stuff I'm working on at the moment, but not the older stuff.
    I found it strange that I could not recover anything with Stellar Phoenix. Is there something special about deleting using terminal? Does it completely erase the file?
    not unless you use srm which you didn't. but NOT data recover software as you tried is perfect nor can it be expected to be. when you delete a file either from finder or from terminal it's unlinked from the directory but the actual space it's stored on the drive is not immediately overwritten by new data. that's what makes data recovery even possible. however, from that moment on it's treated as free space and can be overwritten at any instant. as soon as this happens data recovery becomes impossible. the only true way to protect your data is to *back up*.
    I'll try Data Rescue 3.

  • How to clear multi open item with multi line in FI?

    Hi Colleagues,
         If I select two open items which amount is 50, 50,  and I use FB05 to clear them, now one document with two line generated, one line is I entered outside, the other one is amount 100 open item which clears the 50, 50 two items.
         So is there a way to generate the clearing document like this: a document with 3 lines are generated, one line is I entered outside, the other two is amount 50 and 50?
         Thanks a lot.
    BR,
    Chris

    Hi,
    You can use transaction code F-30 to clear items as this transaction is combination of three transactions viz. F-03, F-44 and F-32. In the transaction code you ca even enter exchange i.e. no need to maintain separately as in case of F-03, F-44 and F-32 picks up the exchange rate as maintained in OB08. Hence there can be separate exchange rate for the same day which is not possible through OB08.
    Hence, you can use only one transaction in case you want to clear G/L through F-03, Vendor through F-44 and Customer through F-32.
    Hope, this solves your issue else revert.
    Regards,
    Tejas

Maybe you are looking for