Can't empty trash after Safari Export as PDF

Discussion in 'OS X El Capitan (10.11)' started by blackxacto, Dec 31, 2015.

  1. blackxacto macrumors 6502

    blackxacto

    Joined:
    Jun 15, 2009
    Location:
    Middle TN
    #1
    El Capitan 10.11.2

    In Safari 9.0.2, I open a web page. I go to File/Export to PDF. I make the pdf upon the desktop. I IMPORT this pdf into iBooks 1.4.

    Then trash the pdf on my desktop. Go to Finder/Empty Trash. But get the message "Operation can't be completed . . ."

    I FORCE QUIT (Apple+Option+Escape) all apps+ relaunch the Finder.
    Still the pdf cannot be emptied from the trash. I must reboot to empty the trash.

    Why????? What is running to prevent a created pdf from being emptied?
     
  2. fisherking macrumors 601

    fisherking

    Joined:
    Jul 16, 2010
    Location:
    ny somewhere
    #2
    probably still sees itself connected to safari. try one of these ideas: highlight the pdf, hit command-option-delete, and...gone (forever, btw). or...quit safari, then try to trash the file/empty the trash. either way, much simpler than what you're now doing...
     
  3. Erdbeertorte macrumors demi-goddess

    Erdbeertorte

    Joined:
    May 20, 2015
    Location:
    Castle Grayskull, Eternia
    #3
    I could be the Preview App. Sometimes it's still running invisible and can only be killed in the Activity Monitor.

    A simple reboot should also help in most cases. ;)
     
  4. Partron22 macrumors 68000

    Partron22

    Joined:
    Apr 13, 2011
    Location:
    Yes
    #4
    Do you restore Apps on restart?
    Safari probably thinks you might want to read it in Safari soon, and is helpfully keeping it in some active cache so you won't have to do any onerous searching for the file.

    This being late 2015, as an end user, you should never even have to think about the file system. That's all in the past. -rolleyes-
     
  5. blackxacto thread starter macrumors 6502

    blackxacto

    Joined:
    Jun 15, 2009
    Location:
    Middle TN
    #5
    Yes, rebooting clears this, but why the heck do I have to do it???

    It is an interesting thought, Patron22, that Safari may be hanging on to the view like it does web windows upon quit sometimes. I tend to have the cookies trashed at Safari Quit. But will look into the Safari memory aspect, thanks.

    Course I have FORCE QUIT ALL APPS and RELAUNCHED FINDER, but Safari may still be hanging onto it somehow.
     
  6. blackxacto thread starter macrumors 6502

    blackxacto

    Joined:
    Jun 15, 2009
    Location:
    Middle TN
    #6
    What is restoring apps? Are you saying to reinstall my apps? Why?
     
  7. Partron22 macrumors 68000

    Partron22

    Joined:
    Apr 13, 2011
    Location:
    Yes
    #7
    I'm sorry, the Apple term is "Reopen windows when logging back in". It's a checkbox in the restart or shutdown dialog.

    It means about the same thing as "restore app state when you restart", and I've used that terminology for a long time. I forgot to speak Apple in my post.
     
  8. cynics macrumors G3

    Joined:
    Jan 8, 2012
    #8
    I have a similar problem with .m4v and iTunes all the time. Seems every time I drop a .m4v into iTunes I can not delete the original without quitting iTunes. Also I have the issue with Preview on occasion and have to force quit it because there is no signs of it running otherwise. This wasn't an issue until El Cap. Thankfully I don't need to reboot.
     
  9. fisherking, Jan 1, 2016
    Last edited: Jan 1, 2016

    fisherking macrumors 601

    fisherking

    Joined:
    Jul 16, 2010
    Location:
    ny somewhere
    #9
    "highlight the pdf, hit command-option-delete, and...gone (forever, btw)" or substitute 'pdf' for whatever file you're trying to get rid of. i do this with email attachments i no longer need (once they're sent), as they won't trash without me quitting Mail...
     
  10. Fishrrman macrumors G3

    Joined:
    Feb 20, 2009
    #10
    Sometimes you have to log out (and then log back in) or reboot in order to "clear things up" enough so that you can empty the trash without problems.

    That's just the way it is.
     
  11. fisherking macrumors 601

    fisherking

    Joined:
    Jul 16, 2010
    Location:
    ny somewhere
    #11
    or..."highlight the pdf, hit command-option-delete, and...gone (forever, btw)" or substitute 'pdf' for whatever file you're trying to get rid of. i do this with email attachments i no longer need (once they're sent), as they won't trash without me quitting Mail...
     
  12. blackxacto thread starter macrumors 6502

    blackxacto

    Joined:
    Jun 15, 2009
    Location:
    Middle TN
    #12
    I deliberately delete cookies and never enable this "Reopen windows". It seems such a nagging idea. I quit Safari and want to open Safari again where I always start. But it has nothing to do with the issue of emptying the stubborn trash, does it?
     
  13. Partron22 macrumors 68000

    Partron22

    Joined:
    Apr 13, 2011
    Location:
    Yes
    #13
    Depends on what Safari thinks of as current content when you shut down.
     
  14. blackxacto thread starter macrumors 6502

    blackxacto

    Joined:
    Jun 15, 2009
    Location:
    Middle TN
    #14
    This seems to work quick and easy. Thanks for the Delete Immediately tip.
    Sure wish I knew what computer process was holding the pdf from emptying the regular way.
     
  15. fisherking macrumors 601

    fisherking

    Joined:
    Jul 16, 2010
    Location:
    ny somewhere
    #15
    am pretty-sure the pdf somehow still sees it's connection to safari, makes sense since, when i try to delete something i'v attached in email, it won't delete...unless i quit IT'S associated app (mail). either way, this method works for me...
     
  16. Riwam macrumors 6502a

    Riwam

    Joined:
    Jan 7, 2014
    Location:
    Basel, Switzerland
    #16
    *********
    Since you solved the issue with the help of other users knowing a lot, you don't need any more hints.
    But just to add to things not very clear to understand (at least for me) allow me to post this experience I often had.
    I often cannot empty the trash without knowing why. :mad:
    Apparently the files in it are still being used by some application... only I don't know which one :confused: and receive no indication to tell me the one.
    The free tool of Titanium Software called "Onyx" which has a good reputation in my humble opinion well deserved, also at the end empties the trash.
    Another free tool of the same developer called "Maintenance" does the same.
    Why a tool can do it and I cannot remains for me a mistery :rolleyes:
    Ed
     
  17. blackxacto thread starter macrumors 6502

    blackxacto

    Joined:
    Jun 15, 2009
    Location:
    Middle TN
    #17
    I did a comparison of Active Apps in Activity Monitor App. I compared the active apps before opening Safari then exporting the pdf from Safari to desktop, then, a list of Active Apps following the export to desktop. Two apps stuck out as relevant, and proved that Force Qutting them allowed me to trash the pdf I had just trashed and tried to empty. The two active apps are: quicklookd and quicklooksatellite. Quitting either one allowed me to trash the pdf in the trash.

    Success!
     
  18. NoBoMac macrumors 6502a

    Joined:
    Jul 1, 2014
    #18
    Following works great too, and no need to kill/stop anything. From a Terminal window:

    Code:
    cd ~/.Trash
    rm -f *
     
  19. blackxacto thread starter macrumors 6502

    blackxacto

    Joined:
    Jun 15, 2009
    Location:
    Middle TN
    #19
    NoBoMac, would you explain what the command is saying in the code?
    I tried it and it works beautifully. Is cd a command? What is rm?
     
  20. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #20
    What those two commands are doing is first changing directories (cd) to the trash folder. Then the second is doing a force remove (rm) of everything in that folder (the * wildcard).
     
  21. blackxacto thread starter macrumors 6502

    blackxacto

    Joined:
    Jun 15, 2009
    Location:
    Middle TN
    #21
    Thank you NoBoMac & Weaselboy. Further, one can compile into an applescript to reside in the script icon on the desktop. Its so easy to click on the script icon and select this script.

    do shell script "rm -rf ~/.Trash/*"
     

Share This Page