Anyway to auto-delete devices??

So, im using an app called DarwiinRemote that lets me control my Mac with the Nintendo Wii remote. Its great, but for some reason after I exit the app & then try to re-sync it, it doesnt work. I have to manually go to my bluetooth preferences & delete the Wii remote from my device panel, which is starting to be a pain. And I cant just leave the app running because then the Wii remote stays powered on & never sleeps, which kills the battery.
I know this is something that the app developers need to fix, but is there a way to auto-delete items in the device panel afterwards??
Im sure there is a terminal command or script that will do this, but I suck at those 2 things.

yes, a logout hook sounds just the thing for it. it will empty trash when a user logs out.
If you have OS X server this can be easily managed from the server via workgroup manager.
you can also do it by hand as follows.
log in as an admin user.
use TextEdit to make a *plain text* file with content
#! /bin/bash
rm -rf /Users/$1/.Trash/*
save it as logoutscript.sh somewhere safe, say in /Library/Scripts.
then change permissions on this file to make it executable. run this in terminal
chmod 755 /library/scripts/logoutscript.sh
then make a logout hook. run the following terminal command
sudo defaults write com.apple.loginwindow LogoutHook /library/scripts/logoutscript.sh
you'll have to enter your admin password (which you won't see). that's normal.
more on login and logout hooks
http://support.apple.com/kb/HT2420?viewlocale=en_US

Similar Messages

  • Anyway to auto delete trash

    Hello,
    We have a suite of macs that students use for their studies and we are trying to reduce some space on our servers, an issue is that students are not empty their trash, they put items in the trash but then leave it sat there, wondered if there any settings that could be put in place so that that is auto deleted upon log off or as soon as they drop an item in trash it is emptied?
    Any suggestions welcome.
    Thanks

    yes, a logout hook sounds just the thing for it. it will empty trash when a user logs out.
    If you have OS X server this can be easily managed from the server via workgroup manager.
    you can also do it by hand as follows.
    log in as an admin user.
    use TextEdit to make a *plain text* file with content
    #! /bin/bash
    rm -rf /Users/$1/.Trash/*
    save it as logoutscript.sh somewhere safe, say in /Library/Scripts.
    then change permissions on this file to make it executable. run this in terminal
    chmod 755 /library/scripts/logoutscript.sh
    then make a logout hook. run the following terminal command
    sudo defaults write com.apple.loginwindow LogoutHook /library/scripts/logoutscript.sh
    you'll have to enter your admin password (which you won't see). that's normal.
    more on login and logout hooks
    http://support.apple.com/kb/HT2420?viewlocale=en_US

  • Auto Delete Watched TV shows from iTunes - Mac version

    My workflow is as follows:  eyeTV records to a folder, iVI picks up show, pulls in meta data and tags the show, converts it to Apple TV 3 format, deletes the orgininal .eyetv file, exports to iTunes in the proper folder (movie, TV, etc...)  Then it shows up on my Apple TV under home sharing with all the beautiful meta data and artwork.  The problem is when I am done watching my show I have to manually go to my computer (which is a headless mac mini running as a server) and delete the files.  It's a real PITA.  Is there anyway to auto delete shows with a watch status - or does anyone know where I can get ahold of an apple script or something to do this?
    Thanks,
    Travis

    Have you considered a smart playlist of unwatched TV shows.
    You can construct it like this:
    Select iTunes application, the in top menu,
        select 'File' then 'New Smart Playlist'
        'Media Kind'  is 'TV Show'  
       add another level with 'Plays' is 0
    Name the playlist 'Unwatched TV Shows'
    Once you watch the show, it will be removed from the play list.
    If you would like scripts, there is an excellent source of scripts,
    Google for "Doug' Applescripts".
    He has hundreds of scripts for various iTune tasks.
    Most are free but you can donate if you like.

  • My Ipad2 auto deletes text!

    When I am writing text whether it is on a forum, email or whatever, my new IPAD 2, suddenly goes into auto delete mode and starts to erase all I've written. This is with my hands nowhere near the screen. If I bash the screen a few times I can get it to stop, but it has a mind of its own and can strike at any time. Any ideas whats causing this?

    I was kidding and trying to lighten the moment. As the King suggests, the reset may be a one time thing and also sometimes restarting the iPad will cure the problem as well.
    I don't know why users are so hesitant to shut this device off once in a while. And I am not singling you out trabant - honestly - I am speaking about my experience posting here on the site talking with other users. I shut my iPad off all the time if I am not using it for an extended period of time - like while I sleep (that's a joke ). Why leave it turned on if you will not be using it for hours.
    Anyway, shutting the power off and restarting may work wonders. I concede that you may also have a bigger issue but you must start somewhere and maybe one of these "fixes" just might do the trick. Don't assume that it will be an ongoing problem - until it really is one.
    Message was edited by: Demo

  • Podcasts no longer "Auto Delete"

    Hello,
    Wasn't sure which forum was best for this but just wanted to voice my frustration with Itunes 7.7 and the fact that my podcasts no longer "Auto-Delete" after being played. I checked my settings for each podcast and they are still set to "AUto-Delete". If anyone has any suggestions, please respond.
    Thanks!

    The auto-delete functionality in iTunes refers to deleting the podcasts from your computer. The control for removing played podcasts from the device is on the podcasts tab available when the device is attached.
    Whether or not podcasts are auto-deleted from you computer is based on the podcasts settings in iTunes. The settings button is on the bottom of the podcasts page (next to the undelete button). In the popup window under "Settings for:", select "Podcast Defaults" to change to default for all podcasts, or a specific podcast that you want to behave differently from the default settings.
    When choosing "Podcast Defaults", the two selections at the bottom of the window will be unlocked. When choosing any single podcast, uncheck the "Use Defaults" checkbox to unlock these fields.
    Changing the selection "When new episodes are available:" will affect how many (zero, one, or all) podcasts to download.
    Changing the selection "Episodes to keep:" will affect which, if any, podcasts are auto-deleted.
    As to removing podcasts from the device, this changed for me with the most recent update to the iPod software. Podcasts are removed from the iPhone if they have been played, but they remain on the iPod until they have been deleted from iTunes. I have not experienced a case where a podcast persisted on the device after it was deleted from the computer. I am hopeful that Apple will fix this with the next iPod software update.

  • Is there anyway to retrieve deleted text in my notepad?

    Is there anyway to retrieve deleted text in my notepad?

    Welcome to the Apple Community.
    Certainly no easy way, I'm afraid.
    The difficulty in restoring iCloud data from a back up is that the back up is older than the current version on iCloud and anything that is restored gets removed again when an iCloud sync occurs. I have previously suggested ways to recover contacts, calendars etc, and other users have confirmed that they work, as such I am making the following suggestions to recover lost notes, but please note, as yet success is unconfirmed.
    Recovering your notes is quite time consuming, you may wish not to save all your notes to save some time, if they are not of importance.
        1.    Ensure the device is connected to your local network.
        2.    Start the restore from iCloud back up.
        3.    Allow the devices settings to restore (watch for the confirmation of completion).
        4.    As the apps begin to restore pull the connection to your router WAN port (the one that goes to the telephone point).
        5.    Wait for the time out confirmation.
        6.    Open the 'Notes' app, and open your first note (assuming your deleted notes have now been restored).
        7.    Select the share option at the foot of the screen (rectangle with arrow) and choose mail.
        8.    Send the email to yourself (If they won't send, save them to draft)
        9.    Repeat steps 7 & 8, until you have copied all the notes you wish to save to email.
        10.    Reconnect the router to the internet and let the restore process complete.
        11.    Navigate to settings > iCloud and make sure 'Notes' syncing is enabled.
        12.    Open the 'Notes' app, check that iCloud notes have reverted to how they were before starting the restore.
        13.    Open the 'Mail' app and open the first email you sent yourself and copy the text you want in the note.
        14.    Open the 'Notes' app and create a new note in the iCloud, paste the text you copied.
        15.    Go to iCloud.com on a computer and check that the note has synced to iCloud.
        16.    Repeat steps 12, 13 & 14 until you have recovered all your notes.
    May I suggest that you carry out a back up to iTunes before you try anything, that way should things become even worse, you can at least restore back to where you are now.

  • Notes in the notes app are auto-deleting

    Anyone have an idea on this. When I create a note in the notes app, the note will auto-delete itself and the app will then show no notes. I've tried power cycling and a hard reset (using the power+home button) but that had no effect. iPhone 4S with 6.0.1

    I watched the video and I can't replicate it on my 4S or my wife's 4S. Both save notes as they should. You did the restart and reset next is to Restore the device with iTunes. Be sure to do a backup first
    Read here > http://support.apple.com/kb/HT1414
    Note: If restore from backup doesn't fix the issue try restore as new and see if that does

  • Text messages auto delete

    Text messages on my phone randomly get deleted. I have the option to keep them set to 'forever'. At one point I had 2.5 weeks worth of messages on my phone with no problems. Now it can be 1-2 days and they auto delete. Any ideas?

    Greetings, and welcome to the BlackBerry.com Support Forums.
    First thing? Check the File Free at Options > Status, what is the number at File Free? Now, remove the battery of your device, hold a minute, replace and reboot. What is the File Free now?
    Read this: http://www.blackberryforums.com/general-blackberry-discussion/116396-managing-your-bb-memory-lost-ca...
    And this: http://www.blackberryforums.com/general-blackberry-discussion/112029-losing-call-logs-sms-emails-opt...
    Additional links to read:
    http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB15345&sliceId=SAL_Pub...
    http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB14320&sliceId=SAL_Pub...
    http://www.blackberry.com/btsc/dynamickc.do?externalId=KB14213&sliceId=SAL_Public&command=show&forwa...
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Email auto deletion settings.

    I have had my email auto delete settings set the same for years.  I have spam folder set to delete in 1 day and my sent email and trash folder to auto delete in 30 days.  None of that is working anymore.  I have to physically delete these folder items myself.  It's not a big problem, just wondering why nothing is working like it use to.

    Do you have the account enabled on another device like a smartphone or tablet?  Are you now using an email client on your computer like Outlook, Thunderbird or Windows Live Mail?  Because if you are, the settings on those other devices will override the ones you have set in the Comcast Preferences for the webmail.

  • Cannot delete device

    I cannot delete two devices that I do not own from my iCloud account. I cannot delete them from iTunes because they are not associated with iTunes. There seems to be no way to delete them from the iCloud account. Any advice?

    Hi,
    I am not sure whether you can delete default device pool as it will be assigned to auto registered devices by default.
    You can't delete the device pool if it's the only one available in the database.
    See below link & tailored info below.
    http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/admin/6_1_1/ccmcfg/b02devpl.html
    If it is possible You cannot delete a device pool if any devices are assigned to it, if it is used for Device Defaults configuration, or if it is the only device pool in the database. If you try to delete a device pool that is in use, a message displays. Before deleting a device pool that is currently in use, you must perform either or both of the following tasks:
    •Update the devices to assign them to a different device pool. Refer to the "Deleting a Phone" section on page 82-6.
    •Delete the devices that are assigned to the device pool that you want to delete. Refer to the "Deleting a Phone" section on page 82-6.

  • Shows auto-delete from DVR.

    Since the recent updates I've had a problem with shows auto deleting from my DVR. Anyone else? It has nothing to do with the DVR being full. And it seems fairly random. I can have a show on there for weeks and it will remain but I can record something one night to find it gone the next morning.

    Haven't had 'random' deletes, but my DVR has been running near its capacity recently, and I've noticed that the autodelete algorithms are definitely somewhat over-aggressive - for example, clearing about 3 hours worth of stuff from the recent deletes folder *and* another 1 hour show in order to record a new 1 hour show. They also seem to have a few bugs, such as: a show stopped recording because of lack of space, even though there were other shows available to delete (only seen that once though).
    Do you use the 'Save Until I Delete' option? I find it useful for automatically ensuring that series recordings can't be auto-deleted, Unfortunately, haven't been able to find a way to set it in advance for single recordings, so have to go back and set it on shows after they have been recorded.
    In all the auto-deletes I've seen they do seem to remove the oldest first. Could the older shows that are saved on your DVR be marked 'Save Until I Delete"?
    Anyway, hope some of this helps ...

  • Z10 / BB!0 - Exchange Mails will be auto deleted after one month!???

    hi,
    i have a big problem with my Z10. after one month of use, i detected that ALL mails (sent mails also) are auto deleted from my exchange accounts which are older then one month!? i don´t find general settings to deactivate this STUPID setting!
    I´m verry angry, because I loose hundreds of mails from 4 diffrent exchange accounts!!!
    thanks for some hinds to avoid this in the future.
    BR david

    Hello Komanaut and welcome to the BlackBerry Support Community Forums.
    Sorry to hear you're experiencing issues with your email.
    To clarify, are the emails deleted off your device and your email account on the computer? Or just on your device? 
    Thanks!
    -HMthePirate
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • AppleTv auto deletes old content?

    My AppleTV got full and started auto deleting the oldest thing in it's library, without notifying me. Anyone else have this problem? Is this just something they don't bother telling anyone?

    Yes, check the sync setting for the AppleTV 'device' in iTunes.
    Automatic configuration deletes older/watched stuff or replace with newer unwatched stuff depending on available space etc - custom sync gives you more control but personally I'd rather just have a simple drag and drop for syncing content to AppleTV.
    Some people love this kind of automatic 'I know what you'll want to watch, and don't need' software paternalism, I don't, each to their own.

  • Auto delete everything but specified folder contents from txt file

    Hey Guys,
    I am brand new to using Powershell (like 48 hours into using it for work) and I've run into a bit of an issue.  I've only taken a programming concept classes so some of the stuff makes sense to me but a lot of it is new.  Basically I've made a
    script that automatically deletes any files over X amount of days.  My next step is to have an exceptions text that will have a list of folders that should not have its contents deleted.  This is what I have so far.
    $Date= Get-Date 
    $Days = "7"
    $Folder = "C:\publicftp\users"
    $LastWrite = $Now.AddDays(-$Days)
    #----- getting DO NOT DELETE listing from TXT ----#
    $Exceptions = Get-Content "c:\exclude.txt"
    $Files = Get-Childitem $Folder -Recurse -Exclude "c:\exclude.txt" | Where {$_.LastWriteTime -le "$LastWrite"}
    foreach ($File in $Files)
        if ($File -ne $NULL)
            Remove-Item $File.FullName -Exclude $Exceptions | out-null
    I've seen a lot of threads that show how to auto delete contents or how to exclude specific file types but I haven't seen an answer to my particular problem.  Any help would be greatly appreciated!  Thanks!

    Hi Rabbot,
    The script below may be also helpful for you, and uses the -whatif parameter in Remove-Item cmdlet, which doesn’t actually remove anything but simply tells you what would happen if you did call Remove-Item.
    $Exceptions = @()
    Get-Content "c:\exclude.txt" | foreach{
    $Exceptions += $_} #store the exception file to array
    $Folder = "C:\publicftp\users"
    $LastWrite = (get-date).adddays(-7) #over 7 days.
    $Files = Get-Childitem $Folder -Recurse | Where {$_.LastWriteTime -le $LastWrite} #filter files which over 7 days.
    Foreach ($file in $files){
    if ($Exceptions -notcontains $file.fullname){ #if the file is not listed in the exception array.
    Remove-Item $File.FullName -whatif} #use -whatif to test
    I hope this helps.

  • How can I delete devices from icloud account?

    How can I delete devices from icloud account?

    Welcome to the Apple community.
    Simply turn off "find my phone" and delete the iCloud account from your device.

Maybe you are looking for

  • DVD player doesn't play some DVDs

    I've had my macbookpro for several months now. I've been mostly satisfied, but the DVD player seems to be messed up. I have never had a problem with software or CDs, but every once in a while, the DVD player will not play movies. Most of the time, th

  • Where is the Default System Cache?

    Hi all, I have a webstart application in which I want to pass the -system flag to use the system cache. Could someone tell me where the default system cache is and how its used. Thanks for any suggestions,

  • Photoshop Elements 8 installation Error 2

    I received error message AdobeColorCommonSet RGB Error2 when installing photoshop elements 8 which was part of a bundle software package that came with my Bamboo Fun tablet.  I tried shutting down and reinstalling the software several times and conti

  • Ssid configuration can be done at config level as well as under interface level : which will be recommanded

    Hi, I need to configure two ssids in 1142 aps and i have gone some cisco documents where it is mentioned that we can configure ssid in config mode as well as under interface mode. which one will be convenient method to configure ? Particularly i am l

  • Failing Performa 450...

    I seem to be having problems with my old Performa 450. Started a week or so ago with the system not booting up properly but giving a flashing question mark on a diskette symbol on startup. Eventually it deteriorated so the system could not boot perio