How I can execute a user logout script in mountain lion?

I've read that logouthook have been deprecated but I can't find how execute a logout script without this method.
Anyone may help me?
Regards
Alessandro

Hello baltwo,
I've read these article yesterday but the first one is about the LoginHook that Apple, in the second article, says that are deprecated.
The second article say to use launchd instead LoginHook and LogoutHook.
I've tried to do this but launchd works (I think...) only to launch a login script with the option RunAtLoad.
Nothing is specified with regard to the logout script.
PS.
Launchd with login script work only with restart but not with a shutdown and a power-on ... I'm investigating this behavior!!
I'm sorry for my poor english.

Similar Messages

  • Where can I find user system files in Mountain Lion?

    I'm testing Mountain Lion on a separate drive at the moment. Can anyone explain to me how to find the system files in User> (name)> Library> Application Support? Or any of the system files at all? What happened to them?
    I've always used this folder (in SL) to get to some specific files that I need to share with my wife.
    Any help much appreciated. Thanks.

    Press Option key and select Go > Library in the menu bar. To show that folder, open Terminal and copy:
    chflags nohidden ~/Library

  • How I can recover my user admin password of my computer?

    How I can recover my user admin password of my computer?
    I have an I mac 27 Inch 2009 3.06 GHz Intel core 2 Duo. I cant remember my user admin password to enter my computer to make changes, how can I recover it? I have being entering as a guest user.

    You can't recover the password, but you can reset it.
    If the user account is associated with an Apple ID, and you know the Apple ID password, then maybe the Apple ID can be used to reset your user account password. In OS X 10.10 and later, this option also works with FileVault, but only if you enabled it when you activated FileVault. It's not retroactive. Otherwise, see below.
    Note: If you've activated FileVault, this procedure doesn't apply. Follow instead these instructions.
    Start up in Recovery mode. When the OS X Utilities window appears, select
              Utilities ▹ Terminal
    from the menu bar at the top of the screen—not from any of the items in the OS X Utilities window.
    In the window that opens, type this:
    resetp
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window opens. Close the Terminal window to get it out of the way.
    Select the startup volume ("Macintosh HD," unless you gave it a different name) if not already selected. You won't be able to do this if FileVault is active.
    Select your username from the menu labeled Select the user account if not already selected.
    Follow the prompts to reset the password. It's safest to choose a password that includes only the characters a-z, A-Z, and 0-9.
    Select
               ▹ Restart
    from the menu bar.
    You should now be able to log in with the new password, but the Keychain will be reset (empty.) If you've forgotten the Keychain password (which is ordinarily the same as the login password), there's no way to recover it.

  • How i can show the user input in alv list on the top

    hi all,
                   please tell me how i can show the user input in alv list on the top.
                         and  also tell me how i  can hide the toolbar in alv.
    regards
    vikas saini

    Hi,
    Use the Below Code.
    form top_of_page.                                          
      data : it_header type slis_t_listheader,
             is_header type slis_listheader.
      is_header-typ  = c_h.
      is_header-key  = space.
      is_header-info = 'Pending Order Information Report'(018).
      append is_header to it_header.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
        exporting
          it_list_commentary = it_header.
    endform.                    "top_of_page
    and finally pass it to .
    call function 'REUSE_ALV_GRID_DISPLAY'
          exporting
            i_callback_program     = sy-repid
            i_callback_top_of_page = 'TOP_OF_PAGE'
    call function 'REUSE_ALV_GRID_DISPLAY'
          exporting
            i_callback_program     = sy-repid
            i_callback_top_of_page = 'TOP_OF_PAGE'
    Regards.
    Arbind

  • How servlet can execute a command?

    Hi
    I need help on following:
    1- How Servlet can execute a command?
    2- I that possible a servlet instantiates an applet or frame?
    Would apreciate any command(prefered sample code) on this.
    Thanks...Ali

    I'm not quite sure what you mean by an applet based application either... . but as I mentioned in the previous post, you could send such a page back to the client that contains an applet tag; which will subsequently display an applet on the client machiene.... and applets can comunicate to any and all servlets residing on the machiene from where they were downloaded with out any problem....
    Have a look into Http-tunneling....
    hope this helps
    Regards
    Omer

  • How can I make a bootable disk for Mountain Lion?

    How can I make a bootable disk for Mountain Lion?

    Make Your Own Mountain/Lion Installer
    1. After downloading Mountain/Lion you must first save the Install Mac OS X Mountain/Lion application. After Mountain/Lion downloads DO NOT click on the Install button. Go to your Applications folder and make a copy of the Mountain/Lion installer. Move the copy into your Downloads folder. Now you can click on the Install button. You must do this because the installer deletes itself automatically when it finishes installing.
    2. Get a USB flash drive that is at least 8 GBs. Prep this flash drive as follows:
    Open Disk Utility in your Utilities folder.
    After DU loads select your flash drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    Click on the Erase button. The format process can take up to an hour depending upon the flash drive size.
    3. Locate the saved Mountain/Lion installer in your Downloads folder. CTRL- or RIGHT-click on the installer and select Show Package Contents from the contextual menu. Double-click on the Contents folder to open it. Double-click on the SharedSupport folder. In this folder you will see a disc image named InstallESD.dmg.
    4. Plug in your freshly prepared USB flash drive. You are going to clone the content of the InstallESD.dmg disc image to the flash drive as follows:
    Double-click on the InstallESD.dmg file to mount it on your Desktop.
    Open Disk Utility.
    Select the USB flash drive from the left side list.
    Click on the Restore tab in the DU main window.
    Select the USB flash drive volume from the left side list and drag it to the Destination entry field.
    Drag the mounted disc icon from the Desktop into the Source entry field.
    Double-check you got it right, then click on the Restore button.
    When the clone is completed you have a fully bootable installer that you can use without having to re-download Mountain/Lion.
    Note: The term Mountain/Lion used above means Lion or Mountain Lion.

  • How many computers can be upgraded with one 1 purchase mountain lion?

    How many computers can be upgraded with one 1 purchase mountain lion?

    What if I have a Mac with a different apple ID. Can I sign out of that ID and sign in with my other ID and still download it with one purchase?

  • How can I do a clean install of Mountain Lion?

    I have an older MacBook Pro that I'm selling. I upgraded to Mounbtain Lion, but there was not an option to do a clean install (wiping everything clean and starting fresh). I want to do this to make sure all of my data is removed before I sell it. How can I do a clean install of Mountain Lion in order to accomplish this? In the past, from DVDs, it was easy. Thanks!

    Budrew wrote:
    Sure, but I would imagine that it will be common for people to sell their Macs with upgraded OSs.
    That was only OK when you bought the Upgrade DVD and included both the original system discs and the disc you used to upgrade the OS.
    Since Apple has now gone to the Download only model of OS X you now always need to install the Original OS or an Upgraded version that you have the DVD disc for.
    If a Mac came with Leopard and you upgraded to Snow Leopard and then to Lion or Mt Lion you must remove Lion or Mt Lion and reinstall either Leopard or Snow Leopard and include all the discs for that system, Originals and the Upgrde Snow Leopard DVD.
    If your system came Snow Leopard and you installed Lion or Mt Lion thenn again you remoeve Lion or Mt Lion and reinstall Snow Leopard and include the original discs that came with the system
    If your system came with Lion and you upgraded to Mt Lion then you remove Mt Lion and reinstall Lion.
    The reason for all of that is because with the Download only OS all upgrades are TIED to YOUR Apple ID, not to the computer. So the new owner can not reinstall Lion or Mt Lion, whichever you upgraded to, without using your Apple ID.

  • How do I partition my MacBook Pro so I can keep Snow Leopard and also install Mountain Lion?

    How do I partition my MacBook Pro so I can keep Snow Leopard and also install Mountain Lion?
    I want to install the latest OS, but I already know that I will lose a lot of my software unless I can partition the hard drive and have two "bootable" drives.
    How do I retain everything I have, partition the drive, then reloa the software I own according to which OS it will work under?

    msmedia wrote:
    I do not currently own OS X ML.
    I am currently running OS X (10.6.8 Snow Leopard) on my MacBook Pro. It has a 2.8GHz Intel Core 2 Duo Processor. I want to upgrade to Mountain Lion, but many of my software titles will not operate with ML and I cannot afford to replace some of them (Adobe Creative Suite, for e.g.)
    After I back-up my HD and then partition the HD, how do I use the back-up to reinstall what I want to the SL partition, and then place the rest on the ML partition.
    I have not done what you want to do, so can only offer some general thoughts in support. Take value from the following where you can. No guarantees.
    If it was me, I would use a disk clone utility (e.g. Carbon Copy Cloner) to image the existing Snow Leopard disk to an external drive. Then verify that the external drive would boot and run Snow Leopard normally.
    I would then purchase and download the Mountain Lion upgrade installer, but not run it. Use Lion Diskmaker to make a bootable USB stick, and perform a clean install of Mountain Lion, replacing the Snow Leopard on your MBP. This way, you make absolutely certain that no third-party drivers or other SL cruft remains to make Mountain Lion unstable. Update to latest ML point release. Fix permissions. Let TimeMachine make a full backup of your ML installation to a different external drive. Then turn of Time Machine.
    In Disk Utility, use the + sign at the bottom of the ML partition to add another GUID, HFS+ Journaled partition for Snow Leopard. Resize to taste. Name it differently from your ML partition. Exhale.
    Now ideally, you would like to reverse the external clone and put it back into the new SL partition. Then fix permissions. And demonstrate that you can boot into individually stable OS X installations. This would save you alot of work. Resist copying your home directory into ML just yet.
    If you cannot successfully achieve the preceding paragraph, you will be faced with a full SL and application reinstall.
    The ~/Library contents for SL and ML are sufficiently different that you do not want to mix them. You may want to salvage Safari bookmarks.plist. And, ML created folders in the home directory may have different permissions or ACL settings than in SL. So, my rule of thumb would be to copy folders that you created in SL, and only the contents of matching named OS created folders such as Music, Pictures, Downloads, etc.
    For each operating system, you probably want the Time Machine settings to exclude the opposite OS X partition. If you use the same host name in Sharing prefs, then you will mix SL and ML backups on the same Time Machine back up drive. If you use different host names, they will be distinct folders in the Time Machine backups.backupdb and allow discrete restores per host. You may also want to gag Spotlight from indexing the opposite OS X partition.

  • How can I edit iCal server addresses in Mountain Lion? I keep getting an error with regards to my google calendar and I understand that the way to fix the problem is adjust the server address, but I cannot access it because the preferences are restrictive

    How can I edit iCal server addresses in Mountain Lion?
    I keep getting an error message with my google calendar, and I heard that if I delete the extra slash at the end of the address the problem will be fixed. But the iCal account preferences take me to system preferences > accounts every time I want to edit the account.
    Does anyone know where I can edit the server address?

    You should ask in the iCloud forum, this is for iMacs. https://discussions.apple.com/community/icloud/icloud_on_my_mac

  • HT1338 Yesterday, I purchased Mountain Lion OSX and tried to download it but I don't think it worked.  How can I tell if I am using Mountain Lion and how do I get help if the download was unsuccessful?

    Yesterday, I purchased Mountain Lion OSX and tried to download it but I don't think the download worked.  How can I tell if I am using Mountain Lion and how do I get help if the download was unsuccessful?

    Click your Apple menu icon top left corner of your screen.
    From the drop down menu click About This Mac.
    If Mountain Lion is installed, it will say:  v10.8
    If not, launch the App Store. From the App Store menu bar click Store > Check for Unfinished Downloads
    FYI ..  for downloading Mountain Lion from the App Store, a high speed (broadband) internet connection is strongly recommended by Apple as noted here > iTUNES STORE - MAC APP STORE - TERMS AND CONDITIONS
    If you need to reinstall OS X or repair the the startup disk Mountain Lion Recovery, that requires broadband access to the internet via Wi-Fi or an Ethernet connection. OS X is downloaded over the internet form Apple when OS X Recovery is used for reinstallation.

  • Where can I learn how to setup and use the new features in Mountain Lion?

    Where can I learn how to setup and use the new features in Mountain Lion?

    MacWorld has a Superguide, TidBITS has Take Control books, and probably a flock of other publishers have physical books.

  • How do I clear the "recent" user account pictures in Mountain Lion?

    How do I clear the "recent" user account pictures in Mountain Lion? A friend posted a stupid photo as one of the pictures as a joke and I cant figure out how to remove it from the recent pictures.
    Thanks

    To completely remove the files, from the desktop click Go>Go to Folder and type
    ~/Library/Containers/com.apple.ImageKit.RecentPictureService/Data/Library/Images /Recent Pictures/
    Then move the files you don't want to trash.
    Make sure to empty trash and restart before viewing your recents again, or they will reappear.

  • I am really dissatisfied about the Mavs, how can i put it back to my Mountain Lion? since I've downloaded the Mavs, my iMovie, photo, contacts, notes has not been working properly at all. Please help! thanks

    i downloaded the Mavs about 2 days ago. it restarted automatically as it stated... i have not really used it again until tonight. and boy was i so ******!
    after downloading the new OS update, the list below stopped and wont work properly:
    Contacts
    iPhoto
    iMovie
    Notes
    if theres anyone who can help me downgrade it back to Mountain Lion, id GREATLYYY appreciate it a lot.
    Thanks!

    You don't need to downgrade. If it worked in Mountain Lion it will work in Mavericks. Do this:
    Reinstall Lion, Mountain Lion, or Mavericks without erasing drive
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported then click on the Repair Permissions button. When the process is completed, then quit DU and return to the main menu. Select Restart from the Apple menu.
    Reinstall Mountain Lion or Mavericks
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
         Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is
                    three times faster than wireless.

  • How to download purchased installation image of OS X Mountain Lion

    How to download purchased installation image of OS X Mountain Lion for clean boot installation.

    When, and if, you can get Mountain Lioin to download, it will automatically try to install itself. If you want to create a bootable installation disk (disc), quit the installer. You'll have a file in your Applications folder a file named "Install OS X Mountain Lion.app". Get yourself either a 8GB+ USB flash drive or use a dual-layer DVD and use Lion DiskMaker to create a bootable installation flash drive or DVD (the USB flash drive will be faster).
    Don't know why you're having trouble with the download, though....
    Clinton

Maybe you are looking for

  • File size (using java.io.File)

    Hello all, When I want to create an app to be used as file browser, I should like to know the size of a file in a directory. The java.io.File class gives me quite some functionality, but not the functionality to display the file size. Does anyone kno

  • I can't add any new lists to my Reminders

    When I click 'new list' or the plus button in the top right hand corner, it just takes me back to the 'my calendar' list. I've searched through my settings and I can't find anything to do with it there. My software is up-to-date (iOS 8.1.3) and I hav

  • Datasource problem - error 8 when starting extraction program

    Hello, we are using a datasource (data mart) to write data from one cube to another. When running the infopackage we get the 2 errors below. When testing with the extractor checker, everything was fine. Datasource was replicated, transfer rules are a

  • Quicktime export problem - failed(10)

    Hi there. Quicktime V7.1 has suddenly stopped working on my computer. Whenever I try to export, a few seconds after it displays 'calculating time', I get the message Failed(10). This seems to be irrespective of the format of the original video or the

  • Help with line-in levels, please

    I finally got round to plugging my bass into GB, via my iMonster cable. However, the line-in levels was way too high... I had to turn everything right down (both the internal input controls in sys prefs and the out put on my bass) - both were set at