SitePoint Sponsor

User Tag List

Results 1 to 13 of 13
  1. #1
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    deleted files help

    Hi,
    it might not be right forum to ask this question but i think people might have idea. i accidently deleted my style files from within dreamweaver. i m using mac os. where does it go? can i get it back.if yes how?
    All those who wander aren't lost.

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,172
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    Have a look in the Trash folder (trash bin icon in the Dock).

  3. #3
    Sploghm bronze trophy Victorinox's Avatar
    Join Date
    Nov 2008
    Posts
    749
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    If it's not in the Trash then you may be able to extract the data from the browser's cache file. If using Safari, this can be found in [user account]/Library/Caches/com.apple.Safari/Cache.db

    Use a text editor such as the free TextWrangler to open the cache file. How long this will take, or if it can be opened at all, depends on the size of the file and your system (a 100MB cache file opens here in around 8 seconds.).

    With the file open in the editor, set it to soft wrap the text for easier reading and then search for some CSS that you know the stylesheet contains. If/when you find the code, copy it and paste into a new text file.

  4. #4
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    i was using firefox and dreamweaver.any chance?
    All those who wander aren't lost.

  5. #5
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    how do i open cache.db, which tools?
    All those who wander aren't lost.

  6. #6
    Sploghm bronze trophy Victorinox's Avatar
    Join Date
    Nov 2008
    Posts
    749
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by nofel View Post
    how do i open cache.db, which tools?
    As mentioned above, a text editor. Even TextEdit should do it.

  7. #7
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    i was able to retrieve some bits of my css. i wonder why not full.is there a way for getting my css fully back from cache?
    All those who wander aren't lost.

  8. #8
    Sploghm bronze trophy Victorinox's Avatar
    Join Date
    Nov 2008
    Posts
    749
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    If you revisit one of the pages in Safari's History menu and it shows the styles correctly then you should be able to access the CSS via the Resources panel of the Web Inspector (this is found in the Developer menu that can be turned on in the Advanced section of Safari's Preferences).

  9. #9
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,172
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    Quote Originally Posted by nofel View Post
    i was able to retrieve some bits of my css. i wonder why not full.is there a way for getting my css fully back from cache?
    Did you ever look in the Trash?

    Always make sure you have your computer backed up. Even if you get a cheap external hard drive and set up Time Machine, you'll have a backup of everything.

  10. #10
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ralph.m View Post
    Did you ever look in the Trash?

    Always make sure you have your computer backed up. Even if you get a cheap external hard drive and set up Time Machine, you'll have a backup of everything.
    Yes, i saw in trash but DW doesn't save it. i think its a stupid IDE for not trashing it into trash.I had to work all the way..all night long but finally did it and learn my lesson .
    All those who wander aren't lost.

  11. #11
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Victorinox View Post
    If it's not in the Trash then you may be able to extract the data from the browser's cache file. If using Safari, this can be found in [user account]/Library/Caches/com.apple.Safari/Cache.db

    Use a text editor such as the free TextWrangler to open the cache file. How long this will take, or if it can be opened at all, depends on the size of the file and your system (a 100MB cache file opens here in around 8 seconds.).

    With the file open in the editor, set it to soft wrap the text for easier reading and then search for some CSS that you know the stylesheet contains. If/when you find the code, copy it and paste into a new text file.
    That really helped me.pulling the base of my css layout from cache. i use aptana, i wish they have browse all version feature. but thanks!
    p.s - like u said get it from history, what is the right way to access something like that from history. do i need to offline to do that because new stuff will replace the old one right?
    All those who wander aren't lost.

  12. #12
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thank you all. I had to work all again but i managed!
    All those who wander aren't lost.

  13. #13
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ralph.m View Post
    Have a look in the Trash folder (trash bin icon in the Dock).
    Sad thing DW doesn't throw it into trash. ....just FYI
    All those who wander aren't lost.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •