Applescript to delete caches and folders in Saved Application State

I don't know if this can be done, but I'd like to write and Applescript to perform these functions:
1) to delete caches from all 3 cache folders and the ~/Library/Saved Application State folder
2) to run at  logout, shutdown or startup (any of those is fine)
3) to run  with admin credentials already provided
Can this be done?
Thanks.

You're not going to find anything useful in that folder. To clear an application's saved state, launch it while holding down the shift key. I very strongly advise you not to use the shell unless you're sure you know what you're doing.

Similar Messages

  • Lately have a problem forwarding email from FoxNews,I click on Goggle to use it says Safari cannot connect with the server, have tried deleting cache and cookies and also resetting Safari with no success, can you help me?

    LATELY HAVING A PROBLEM FORWARDING EMAIL VIA GOGGLE FROM FOX NEWS ARTICLES, WHEN I CLICK ON GOGGLE I SEE SAFARI CANNOT CONNECT WITH SERVER.
    HAVE TRIED DELETING CACHE AND COOKIE, HISTORY AND RESETTING SAFARI WITH NO SUCCESS.
    ANY HELP YOU CAN GIVE ME TO RESOLVE THIS ISSUE WOULD BE GREATING APPRECIATED.
    THIS IS MY FIRST TIME USING THIS FORUM, NEW AT THE COMPUTER WORLD.
    HOPE YOU'LL BE ABLE TO HELP ME RESOLVE THIS PROBLEM.
    THANK YOU!

    It isn't Goggle.  Did you make sure you went to Google?

  • My Macbook Air can delete files and folders and take them to Trash Can but cannot delete from Trash Can . Cannot empty trash securely.

    My Macbook Air can delete files and folders and take them to Trash Can but cannot delete from Trash Can . Cannot empty trash securely.

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • How to get to folder in /Library/Saved Application State/com.adobe.flashplayer.installmanager.savedState

    I have a file saved in a folder which according to a find ?/ -name "" search is located here /Library/Saved Application State/com.adobe.flashplayer.installmanager.saved
    But I can't browse through this folder structure in Finder (I have run command to allow me to see hidden folders if that is required).
    Please can someone help me to find out how to get to this file. It's an excel spreadsheet.
    Thank you

    When I try to save another excel file that I have also opened from a password protected zip file, the automatic folder selected is "wzQL.8t0UHS". When I try to save a file with exactly the same name as the file that is missing into the folder "wzQL.8t0UHS" it tells me that the file already exists and asks if I want to replace it.
    My assumption was therefore that it was some kind of cache where the file is intact.
    When I've done a search on the name of the file I am looking for in Finder, I do not find the file.

  • I am having trouble deleting files and folders after creating in the same .VI

    I have a larger .VI that runs an automated balancing routine for a large rotating mass.  The test needs to create some folders and files so that as the rest is run multiple times, there is a way to track how units did under test and when they were tested.
    The attached .VI is only the portion of the code that creates the files and folders, waits for user input, and then deletes them if the test is cancelled before data is collected.  There are other elements, but they are irrelevant given that I can't even get the stripped down code to work.  I have checked the permissions on the deepest file (within both folders) and I am unable to get 777(oct) permissions on this file which could be the only problem I have.  Does anyone have any suggestions?
    Attachments:
    test1.vi ‏47 KB

    Here are a couple of things:
    Frame 0: the pane properties are saved with the file, so once they are set you never need to set them again. Delete the property node and associated constants.
    Frame 1:
    Shouldn't "Serial#" be a control (and an integer)? You do a complex song and dance to add leading zeroes. Simply format your serial number with format "%04d"
    Shouldn't "Operator" be a control?
    Frame 2: That loop needs a small wait statement. Since STOP is always true when the loop ends, the later case structure seems unneeded.
    Frame 3:
    the STOP function seems unneeded. the VI will stop anyway since there is no code left.
    never use default tunnels for references.
    All your error outputs are "disconnected" and write to the same indicator. Mist likely you'll loose intermediary errors.
    Overall, you should use a state machine architecture instead of sequences. It will be much more flexible and will take even less diagram space. The indicators can be outside the state case, so all states can write to them. No locals needed.
    LabVIEW Champion . Do more with less code and in less time .

  • Deleted Cache and now Im in big trouble!!

    My MBP became so full I had to delete all the cache as well as other files - since found out I shouldnt have deleted all cache files.
    Now, when I open any InDesign file it says it cannot open the file as the file has been damaged and gives 'Error code 4'
    There is still various Adobe InDesign files in the trash which I can drag back but ive deleted cache on HD and on my user library, so dont know where to restore each one to.
    Can anyone help??
    Thanks in advance
    S

    My recollection is that error code 4 is a serious database corruption error in the file, and I don't see how the caches could have any bearing on that. Can you open ID, create, save and reopen a new file?
    The sort of good news is that Markzware has a pretty good record of error code 4 recovery, though it comes at a cost. How many files do you have that exhibit this error? How long would it take to recreate them? The Markzware mthod involves sending the files throgh Quark using the ID2Q plugin, then saving the file and opening that in ID using the Q2ID plugin. If you have Quark already, the two plugins will set you back about $400, but if you don't have Quark, that's pretty expensive. Markzware will do the job for you for about $200/file on a no-recovery/no-fee basis. See Fix Your Bad InDesign Files!

  • Permanently Deleting Photos and Folders from iPhoto

    I just purchased my first iMac on April 2, 2008 and simply love it. Goodbye Windows. WooHoo...
    OK, now for my question. I am a semi-professional photographer that commonly takes about 500-1,000 photos during any given photo shoot. Normally (on Windows with Adobe Photoshop), I would load all 1,000 photos into my Adobe Catalog and review them. After a few days of edits and review, I may only want to keep the best 50-100 photos and I delete the others. But when I use iPhoto, even if I delete the 900 extra photos from my Library, they still sit in the iPhoto Library folders and take up space. I have opened the iPhoto Library Package and can see the Data, Modified and Original folders with all of the unwanted files, but I was advised by Apple Support to NEVER delete or remove files by opening the iPhoto "Package".
    Is there any way to physically remove the unwanted photos from iPhoto once they are in my iPhoto Library, or do I need to edit and review them outside of iPhoto before I load them into the iPhoto Library which seems to be a permanent thing?
    This is a common process for photographers who take a lot of photos. It's nice to be able to review and edit them before deciding on the best ones to keep. Surely there must be an option from within iPhoto that would physically removed the deleted photos and update the iPhoto Library correctly, without having to open the iPhoto Package and risk corrupting the Library.
    Since each photo will be between 4MB (jpg) to 10MB (RAW) in size, do I need to use another application for my initial sorting, review and editing, then only import into iPhoto the "Keepers"? If so, what application should I be using?
    Any help or suggestions would be greatly appreciated.

    JeanneV
    As stated above:
    Put the pics in the iPhoto trash and then iPhoto Menu -> Empty the Trash
    This removes the pics from iPhoto and the Hard Drive.
    A couple of notes:
    1. You need to be in the Library view to do this. If you delete from an album it only removes the pics from the Album. To put pics from an Album directly into the trash use the -delete keystroke
    Are you sure that you're in the Library View? This is the most common reason this doesn't work. On a longer shot there may be minor issues with your HD, but first make sure that you're in the Library View when deleting.
    Also, I want to have iPhoto write the "Modified" version of my images on top of the "Original"... to save HD space. Can that be done?
    No. iPhoto preserves your Original file no matter what. This is hardwired into the application and there is no easy way to defeat it.
    You may export all your pics from iPhoto. Empty out the iPhoto Library (put the pics in the trash, empty the trash) then re-import the one previously exported. But this is long winded and will need to be done as your library grows. And, of course, this will defeat the Non-Destructive editing feature of iPhoto.
    You can run a library from an external disk:
    1. Quit iPhoto
    2. Copy the iPhoto Library Folder as an entity from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Of, if you don't want your Original file preserved, then simply don't use iPhoto. There are alternatives out there. Search on MacUpdate.
    Regards
    TD

  • Saving application state, iPad

    Hi
    I'm working on my first game for IiPad developed in Flash pro. CS6 (Air 3.7).
    It seems like Air is handling when the game is moved to the background and I just use Event.DEACTIVATE and Event.ACTIVATE to pause timers and animations etc.
    But when the App is closed by IOS (or by the user) the application state should saved so the user can continue when he reopens the app - or so I've read.
    Or saw one example of this listening to Event.SUSPEND and saving the data in SharedObject.
    Is it necessary to save every state of any bullet flying around or is it OK the just continue from the last level played ?
    Would an app that doesn't save the application state get rejected from App store?
    Any help appreciated
    Thanks!
    Rolf

    Thanks Colin. It seems a bit over-kill to save the exact application state in the game i'm working on.
    I think I'll just let the user start over if the application is closed. - I was afraid that Apple would reject the app.
    Thanks again.
    Rolf

  • Little help please regarding deleting files and folders...

    My wife has a MBP and has accumulated some old items in her documents folder that she'd like to delete. She has a USB mouse but the "right click" doesn't appear to work. She's running 10.4.11 and can't reveal the files in icon mode to facilitate dragging to trash. Certainly there is a sequence of keystroke commands that will allow these files to be effectively trashed, but our "control/delete", or "apple/delete", or "option/delete" doesn't do the trick after highlighting the subject file. Help please! TIA!

    To delete a file or folder, high light it then using the keyboard type Command Delete and that will delete it. If you have multiple files and/or folders the same keyboard commands apply.
    Regards,
    Roger

  • B04 - Best practice with regards delete privilege and folders

    Hi,
    Many depts sales, finance etc.
    Sales Dept as example
    Just installed BO4 and want to give Sales Dept their own folder and allow users full control over their own documents within Sales Flder but ensuer they don't have permission to delete other Sales users reports in this folder nor delete Sales folder itself.
    Would defined schedule access privilege achieve this.
    Want to ensure delete privilege tight and users can only delete their own reports and can't delete folders.
    Many Thanks

    Hi Philip,
    You can achieve this by creating your own Access Level where you can include the right "Delete object that the user owns".
    For the requirement: Sales Group should only be able to see Sales Folder:
    Assign View Object right to Sales Group first on the Public Folder keeping the option "Apply to sub-objects" unchecked. Then you can assign the custom Access Level to the Sales Folder which includes the right as per your requirement.
    Regards,
    Nakul Mehta

  • When deleting cache and cookies will my passwords be deleted also

    will my passwords be deleted when i clear my cookies and cache

    Passwords will not be deleted if you just clear the cookies and the cache. What you will lose when deleting cookies is the "Remember me" option on websites, so you will have to log into the websites again.

  • Problem with Read-only user being able to add and delete files and folders.

    The setup:
    Computer #1
    iMac (intel) running 10.5.5
    File sharing ON
    Sharing folder on external USB drive called 'iTunes' (but not the drive volume itself)
    Users:
    - Everyone = Read Only
    - Admin(me) = Read/write
    - UserA = Read Only (with account PW and username identical to local login for computer below)
    Computer #2
    UserA's iBook G4 running 10.4.11
    When I go to finder>network>iMac>connect it prompts me to login which I do and then select 'iTunes' folder which is visible and mounts successfully. I can see all files, access them all. Life seems great. Then I discover that I can also modify and delete files from the iBook, and create and delete directories.
    I'm new to networking and although I've setup and managed minimal networking tasks on PCs before, this is my first foray into the Mac networking world. Please help.
    What am I doing wrong? What haven't I set?
    Thanks in advance.

    Sorry, I should have clarified this in the first email.
    When I login from the iBook, I am logging in under a read-only user (not as myself, who is admin on the iMac). The user on the iBook has only been given read-only permissions on the iMac yet is able to add and delete files.
    This read-only login/PW however, is the admin account on the iBook, but that shouldn't allow this person to write on the iMac so far as I understand things...right?

  • Running FF 17 I can no longer see the hotmail login screen. I have tried in safe mode, deleted cache and cookies, etc.

    Running any version of FF I cannot see the hotmail login screen. It acts like the page has loaded but it is blank.

    Under Web Console I see the following (refreshing doesn't help):
    [08:52:44.211] Unknown pseudo-class or pseudo-element '-webkit-scrollbar-button'. Ruleset ignored due to bad selector. @ https://login.live.com/login.srf?wa=wsignin1.0&ct=1354306710&rver=6.1.6206.0&sa=1&ntprob=-1&wp=MBI_SSL_SHARED&wreply=https:%2F%2Fmail.live.com%2F%3Fowa%3D1%26owasuffix%3Dowa%252f&id=64855&snsc=1&cbcxt=mail:6
    And
    [08:52:44.819] ReferenceError: evt_Login_onload is not defined @ https://login.live.com/login.srf?wa=wsignin1.0&ct=1354306710&rver=6.1.6206.0&sa=1&ntprob=-1&wp=MBI_SSL_SHARED&wreply=https:%2F%2Fmail.live.com%2F%3Fowa%3D1%26owasuffix%3Dowa%252f&id=64855&snsc=1&cbcxt=mail:1

  • Why do i need to always clear cache and cookies before an application downloads?

    I just upgraded to 3.6.8 and i'm using windows xp. I noticed that the mozilla became slower and everytime i tried to open websites or applications, it won't download until i clear the cookies and cache, but still it's really slow. Is there any other other I can do?

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).<br />
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]<br />
    <br />
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.<br />
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.<br />
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")<br />
    Create a new profile as a test to check if your current profile is causing the problems<br />
    See [[Basic Troubleshooting#Make_a_new_profile|Basic Troubleshooting&#58; Make a new profile]]<br />
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins"<br />
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)<br />
    See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox<br />

  • Saving application state on application unload?

    Hi,
    I want to save my application's state in the shared local
    object when it gets unloaded (ie, when the user goes to another web
    page or when the user closes the browser. Is there a on unload
    event for the _root flash movie? How do I do this? Thanks.

    No there isn't. You need to solve this from
    javaScript.

Maybe you are looking for

  • "This file attachment is too large to be viewed." What?

    I created a 15.6MB m4v for iPhone using compressor to test being able to email clips to a client for review on his iphone. A couple of strange things. First, when the message is received, the attachment now reads that it is 20.6MB in size. Second, wh

  • MARS 6.0.5 with ACS SE 4.2.1 both as an AAA authentication server and as a reporting device

    Hi all, I want to use the ACS SE to authenticate MARS users. As per the User Guide: Admin -> System Setup -> Authentication Configuration -> AAA Server Configuration -> Add. I only have two options: "Add AAA server on new host" and "Add AAA server on

  • TS1424 Anyone know how to fix 'An unknown error occurred (-3212)'

    I cannot connect up to itunes via my pc.  I keep getting 'an unknown error occurred (-3212)'.  It has worked before on this pc and can still link on my phone.  I have tryed to repair by downloading itunes again without success

  • FM SLIN.

    hi guys, I am trying to use FM EXTENDED_PROGRAM_CHECK in my program to list error types,Errors,warnings. I dont know how to fetch the error text  using above FM from RESULT_HEAD  parameters Suggestion please. Thanks. Ambi

  • LG Cosmos 2 vn251 Battery life, charge seems not to last.  Why?

    I just got this phone about 3 weeks ago.  It needs to be recharged about every day and a half, sometimes less.  It also seems to discharge very rapidly sometimes when only two bars are left.  I am a very light user--2 or 3 short calls a day, maybe 2