New to Mac, afraid I ruined my new Macbook Pro Retina

Discussion in 'MacBook Pro' started by Hieveryone, Apr 11, 2014.

  1. Hieveryone macrumors 68030

    Joined:
    Apr 11, 2014
    #1
    I bought a new 13 inch Macbook Pro Retina.

    I opened terminal and used the following codes to speed up Safari (it wasn't slow, I just thought maybe it would be even faster).


    defaults write com.apple.Safari WebKitInitialTimedLayoutDelay 0.25

    defaults write com.apple.Safari WebKitResourceTimedLayoutDelay 0.0001


    I don't think much happened so I posed the exact same codes again except with 1.0 at the end of each, which I think is default.

    Do you think I damaged anything? Is it back to default now like it was when I first bought it?
     
  2. Hieveryone thread starter macrumors 68030

    Joined:
    Apr 11, 2014
    #3
    Does anyone know if these commands even changed anything in the first place? I'm thinking these commands might have been applicable only to older versions of Safari.
     
  3. I'm a ROb macrumors member

    Joined:
    Aug 14, 2007
    Location:
    Netherlands
    #4
    I just ran these commands:

    Code:
    defaults read com.apple.Safari WebKitInitialTimedLayoutDelay
    defaults read com.apple.Safari WebKitResourceTimedLayoutDelay
    and both times the reply was:

    Code:
    The domain/default pair of (/Users/<<USERNAME>>/Library/Preferences/com.apple.Safari, WebKitResourceTimedLayoutDelay) does not exist
    My guess is: you didn't change a thing.
     
  4. simonsi macrumors 601

    simonsi

    Joined:
    Jan 3, 2014
    Location:
    Auckland
    #5
    Perhaps you should ask before running commands where clearly you don't know what they will do....
     
  5. joe-h2o macrumors 6502a

    Joined:
    Jun 24, 2012
    #6
    These commands didn't damage your Mac - at worst they messed up the preferences for Safari, but my guess is that they did nothing.

    There *are* commands that you can run in the terminal that will do irreparable damage to your install (note, not your hardware, just the install of OS X and your data) that would require you to reinstall and restore from backup so it is strongly recommended that you find out what a command will do before you execute it and that you double check for typos so that a stray / or missing " doesn't cause you a world of hassle.

    Also don't assume that someone who posted a command on the internet has double checked it for typos or errors. If you just blindly cut and paste you might regret it.

    TL:DR; Be careful when executing commands in the terminal when you do not know what they will do.
     
  6. Hieveryone thread starter macrumors 68030

    Joined:
    Apr 11, 2014
    #7

    Do you know how to change my preferences for Safari back to default?

    Thanks!

    ----------


    I ran them individually with the numerical value after i.e. first I ran

    defaults write com.apple.Safari WebKitInitialTimedLayoutDelay 0.25

    then

    defaults write com.apple.Safari WebKitResourceTimedLayoutDelay 0.0001
     
  7. TheIguana macrumors 6502a

    TheIguana

    Joined:
    Sep 26, 2004
    Location:
    Canada
    #8
    FYI, the code that corresponds to these preference lines was removed eons ago from WebKit (in the 2005 era). So in effect they don't do anything (except maybe a minor placebo effect ;) )
     
  8. goMac macrumors 603

    Joined:
    Apr 15, 2004
    #9
    I don't think there is a magic command to speed up Safari.

    As other's have mentioned, these commands don't do anything anyway, so you didn't damage any thing.

    If you're worried about that sort of thing, then don't run commands in Terminal. You don't need to anyway unless you know what you're doing. There ARE commands that could force you to reinstall everything, so best you just don't mess with Terminal if you don't know how to use it.
     
  9. Qaanol macrumors 6502a

    Joined:
    Jun 21, 2010
    #10
    To summarize what everyone else is saying, Safari does not use those settings anymore, your Safari preference file did not have entries for those keywords before you ran those commands, and to restore the file to its proper state you should run:

    defaults delete com.apple.Safari WebKitInitialTimedLayoutDelay
    defaults delete com.apple.Safari WebKitResourceTimedLayoutDelay
     
  10. Altemose macrumors G3

    Altemose

    Joined:
    Mar 26, 2013
    Location:
    Elkton, Maryland
    #11
    You didn't do an damage as those codes weren't used since the Panther or Tiger days out of memory!

    To reset your Safari preferences, simply click "Safari" in the menu bar by the :apple: and hit "Reset Safari". Select the appropriate check boxes for what you want reset and you are good to go.

    I recommend staying away from Terminal if you don't know what commands do!
     
  11. simon48 macrumors 65816

    simon48

    Joined:
    Sep 1, 2010
    #12
    I doubt that would reset preferences outside of the GUI, but I could be wrong.
     
  12. Altemose macrumors G3

    Altemose

    Joined:
    Mar 26, 2013
    Location:
    Elkton, Maryland
    #13

    It doesn't. It resets all user preferences but is the best method to prevent the OP from executing the commands that could cause issues.
     
  13. simon48 macrumors 65816

    simon48

    Joined:
    Sep 1, 2010
    #14
    What? I sounds like you just contradicted yourself.
     
  14. Altemose macrumors G3

    Altemose

    Joined:
    Mar 26, 2013
    Location:
    Elkton, Maryland
    #15
    Sorry, it does. Choosing Reset Safari from the menu bar resets all preferences that the average user has business touching :D That is probably the best explanation I can give.
     
  15. simon48 macrumors 65816

    simon48

    Joined:
    Sep 1, 2010
    #16
    As well as the ones they do. ;)
     
  16. Altemose macrumors G3

    Altemose

    Joined:
    Mar 26, 2013
    Location:
    Elkton, Maryland
    #17
    Exactly :D Some advanced users may try Terminal commands, advanced searching in the Finder, and deleting caches, but the average person has no need or business doing that.
     
  17. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #18
    You are fine. Those changes you made were never applied because Mavericks caches plist files and you would have had to follow this process to get rid of the default cached version for your changes to stick. You did not do that, so no changes to the Safari plist were saved.
     
  18. squarebreathing macrumors member

    squarebreathing

    Joined:
    Feb 16, 2016
    Location:
    Baltimore
    #19
    Who told you to do this? Sounds like the old "Delete System 32 to make your Windows Faster" troll trick lol (By the way, never ever do this!). Stay out of Terminal unless you know what you are doing.
     
  19. Schranke macrumors 6502

    Schranke

    Joined:
    Apr 3, 2010
    Location:
    Copenhagen, Denmark
    #20
    Well he did not post back in two years. I think he broke his safari:D
     
  20. Altemose macrumors G3

    Altemose

    Joined:
    Mar 26, 2013
    Location:
    Elkton, Maryland
    #21
    Since Safari was down, he could not download Firefox or Chrome either instead... :D
     

Share This Page