PDA

View Full Version : "Preview" open old files every time I'm trying to open a new file




V4705
Aug 1, 2011, 12:12 PM
Ok so thats the senario,
I got a "PDF" file, I double click it, it open in "Preview", after few seconds this PDF file is "covered" by an old files I opened in the past. I close every one of them and close Preview, Try to open a different PDF and still the same issue.

WTH? Nothing work normally in Lion?
SL, I miss you :(



Partron22
Aug 1, 2011, 12:23 PM
Restore sanity by not restoring (http://www.macworld.com.au/help/four-lion-terminal-hacks-34335/)Terminal commands to disable Resume in Preview and QuickTime Player X:

defaults write com.apple.Preview NSQuitAlwaysKeepsWindows -bool false

defaults write com.apple.QuickTimePlayerX NSQuitAlwaysKeepsWindows -bool false

V4705
Aug 1, 2011, 12:25 PM
Thank you!

aldejesus
Aug 1, 2011, 12:51 PM
Ok so thats the senario,
I got a "PDF" file, I double click it, it open in "Preview", after few seconds this PDF file is "covered" by an old files I opened in the past. I close every one of them and close Preview, Try to open a different PDF and still the same issue.

WTH? Nothing work normally in Lion?
SL, I miss you :(

Instead of cmd+Q, use cmd+opt+Q. This will prevent programs (ALL) to open previous windows(Documents, Pictures, etc.)

FSMBP
Aug 1, 2011, 12:57 PM
Useful thread! I'm glad Apple has tweaks to fix some of Lion's features that are too helpful.

MDS0LDI3R
Sep 15, 2011, 02:22 PM
Thank you! I was still getting files I viewed weeks ago in Preview when I open the application..

schiotz
Sep 15, 2011, 04:04 PM
Another possibility is to make it a habit to close Preview with Command-W instead of Command-Q.

That will close the windows one by one, until no window is open (Preview will continue to run until the memory is needed by some other process, the side effect of this being faster startup times next time you use it). Command-Q is interpreted at "stop the application, but remember the state". Don't use Command-Q to quit applications until you have closed all windows with Command-W, otherwise old windows reappear (can be disables on a per app basis or globally).

/Jakob

MikhailT
Sep 17, 2011, 02:27 AM
Another possibility is to make it a habit to close Preview with Command-W instead of Command-Q.

That will close the windows one by one, until no window is open (Preview will continue to run until the memory is needed by some other process, the side effect of this being faster startup times next time you use it). Command-Q is interpreted at "stop the application, but remember the state". Don't use Command-Q to quit applications until you have closed all windows with Command-W, otherwise old windows reappear (can be disables on a per app basis or globally).

/Jakob

As mentioned already, "Command + Option + Q" is the keyboard shortcut for "Quit and Discard all Windows". It's much faster to do that than to close each window. This can be used on any apps that uses resume/autosave.

nightowlll
Dec 30, 2011, 05:45 PM
I work as a photographer and take hundreds of pictures every day.

OSX LION SUCKS!! I hate the auto opening of old files that preview does from prior work. I realize they may have been thinking of "helping" but whoever the idiot was that thought up that idea was a bona fide dumb ass! Now when actually "previewing" my shots, I have to close the program using three more keystrokes instead of a quick click of the mouse. I happened to forget to close the way mentioned in this thread a couple of times and preview opened literally around 50 files. annoying as HELL!

my opinion of OSX LION is that this new operating system is a waste!

I have no use for preview anymore. I will continue to do all of my preview and edit work in Adobe CS5.

What a disappointment!!!

Joos24
Dec 30, 2011, 07:52 PM
I work as a photographer and take hundreds of pictures every day.

OSX LION SUCKS!! I hate the auto opening of old files that preview does from prior work. I realize they may have been thinking of "helping" but whoever the idiot was that thought up that idea was a bona fide dumb ass! Now when actually "previewing" my shots, I have to close the program using three more keystrokes instead of a quick click of the mouse. I happened to forget to close the way mentioned in this thread a couple of times and preview opened literally around 50 files. annoying as HELL!

my opinion of OSX LION is that this new operating system is a waste!

I have no use for preview anymore. I will continue to do all of my preview and edit work in Adobe CS5.

What a disappointment!!!

Maybe it's the user that doesn't know that Apple gives he/she the OPTION to simply turn that feature off in preferences rather than wasting so much steam on a forum. :rolleyes:

donsherio
Jan 6, 2012, 07:41 AM
Maybe it's the user that doesn't know that Apple gives he/she the OPTION to simply turn that feature off in preferences rather than wasting so much steam on a forum. :rolleyes:


So I wrote a completely different response for you about it not being obvious where this "option" was in Preferences until I realized you meant SYSTEM Preferences. It's sort of Apple's fault for calling them both the same sort of thing, but whatever. I think the reason why people DON'T look in System Preferences for this option is because not EVERY app behaves this way with restoring old windows. Because of this, it doesn't become apparent that it's a system-wide feature and so people go digging in the wrong places.

Honestly, if Apple was thorough enough like in the past, they would do things like make notes about "If you want to adjust this setting, click here to open System Preferences" like they have with their Screen Saver/Power Usage settings.

All in all TO STOP MAC OS LION FROM OPENING OLD WINDOWS, OPEN SYSTEM PREFERENCES > GENERAL > UNCHECK 'RESTORE WINDOWS WHEN QUITTING AND RE-OPENING APPS

Hope that helped for everyone on the thread :D

squeakr
Jan 6, 2012, 08:59 AM
Another alternative, if one wants to have certain documents open at restart but not all open documents, they can hold Option while clicking the close button for that particular document and it will not open automatically the next time. I use this as in support I am usually referencing the same documents/ manuals repeatedly and this saves me from hunting for them through finder (if they happen to get cleared from my recent menu).

tkermit
Jan 6, 2012, 10:37 AM
As mentioned already, "Command + Option + Q" is the keyboard shortcut for "Quit and Discard all Windows". It's much faster to do that than to close each window.

⌥⌘W is the keyboard shortcut to close all windows. There's no need to manually quit Preview.app anymore.

Joos24
Jan 6, 2012, 10:45 AM
So I wrote a completely different response for you about it not being obvious where this "option" was in Preferences until I realized you meant SYSTEM Preferences. It's sort of Apple's fault for calling them both the same sort of thing, but whatever. I think the reason why people DON'T look in System Preferences for this option is because not EVERY app behaves this way with restoring old windows. Because of this, it doesn't become apparent that it's a system-wide feature and so people go digging in the wrong places.

Honestly, if Apple was thorough enough like in the past, they would do things like make notes about "If you want to adjust this setting, click here to open System Preferences" like they have with their Screen Saver/Power Usage settings.

All in all TO STOP MAC OS LION FROM OPENING OLD WINDOWS, OPEN SYSTEM PREFERENCES > GENERAL > UNCHECK 'RESTORE WINDOWS WHEN QUITTING AND RE-OPENING APPS

Hope that helped for everyone on the thread :D

Actually every app that's coded to deal with this feature of reopening apps behaves the same way. All this feature is doing is restoring the session. If you have one document open within an app such as viewing a PDF in Preview it re-opens that document. If you have Mail open at full screen it restores at full screen. Same goes for iCal and a few others. The only app I find that ignores this command is iTunes. Even with the feature turned off iTunes still opens up in full screen if it was in full screen when I quit it. iTunes has always seemed like it was a completely separate app on the Mac.

You're saying it's Apple's fault for not putting it in the users face where they should turn off this feature?? Really? Think about it, how are they going to do that for every feature on the Mac? That's impossible. The user needs to figure some things out for themselves. It's bad enough this forum complains that Apple is dumbing down the system and making it too fool-proof so infants can understand it, yet you're saying they make it too difficult to figure out how to turn off "automatically restore windows".

Have you ever took a good look at Windows 7's Control Panel? Even the most astute geek tends to get confused. It's very hard to figure out half the functionality in Windows 7.

Restoring Windows is a "System-Wide" feature. Not to put you or anyone down but that should be pretty obvious. The place to always start is System Preferences-General. I don't think you needed to place that in BOLD text. I'm inclined to believe that more people know to go System Preferences than you think.

thundersteele
Jan 6, 2012, 03:00 PM
It's funny how after so many years, people still don't get how OSX apps work.

There's no need to ever quit preview. If you're done looking at one document, you close it (Cmd-W).

The resume feature just builds on the above. It's actually quite convenient because you can reboot without closing apps, and you can exactly restore the session where you left off.

gmrvt
Jan 17, 2012, 12:12 PM
my check box is unchecked in System Pref. I've tried the commands in Terminal. Still opens every @#$## pdf preview I've ever looked at. Very frustrating....

fsroghani
Jan 27, 2012, 07:07 AM
Another possibility is to make it a habit to close Preview with Command-W instead of Command-Q.

That will close the windows one by one, until no window is open (Preview will continue to run until the memory is needed by some other process, the side effect of this being faster startup times next time you use it). Command-Q is interpreted at "stop the application, but remember the state". Don't use Command-Q to quit applications until you have closed all windows with Command-W, otherwise old windows reappear (can be disables on a per app basis or globally).

/Jakob

schiotz:
Thank you very much for your help, I tried everything to fix this damn problem but non of them worked, even Command+Option+Q, but I tried Command-w and its fixed now

thestickman
Feb 3, 2012, 01:42 PM
my check box is unchecked in System Pref. I've tried the commands in Terminal. Still opens every @#$## pdf preview I've ever looked at. Very frustrating....

Same issue here. The windows ALWAYS reopen when I boot back up. Very annoying.

Icy1007
Feb 5, 2012, 03:32 PM
Wirelessly posted (iPhone 4: Mozilla/5.0 (iPhone; CPU iPhone OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A405 Safari/7534.48.3)

You're doing it wrong then.

CodeBreaker
Feb 7, 2012, 10:01 AM
Pressing SHIFT and launching an app prevents it from opening previously opened documents.

macuser3334
Apr 7, 2012, 07:02 PM
Hi -- I notice a slightly different problem with the new version of preview. I have my trackpad set up so that when I swipe down with four fingers, I see the App Expose. When I open a .pdf in Preview, and then swipe down to view the App Expose, I see all of the .pdfs I've opened in the past, even though these files are no longer open. I have turned off the setting in my system preferences which causes applications to resume old windows when you open an application, so this can't be the problem. This is a very annoying feature. Any suggestions?

Mal
Apr 7, 2012, 09:10 PM
It's not a GUI preference, but those are pulled from ~/Library/Preferences/com.apple.Preview.LSSharedFileList.plist. If you were to delete the contents of that file, and then lock it so it couldn't be changed, you should be able to prevent that behavior. Haven't tested it, but in theory it should work.

jW

funkyrimpler
Apr 21, 2012, 01:29 PM
OSX LION SUCKS!! I hate the auto opening of old files that preview does from prior work. I realize they may have been thinking of "helping" but whoever the idiot was that thought up that idea was a bona fide dumb ass! N
What a disappointment!!!

The worst part is opening up an image to show somebody, and Preview so helpfully opening up 250 porn images....mu girlfriend thought it was funny the first time...

Mal
Apr 21, 2012, 04:25 PM
The worst part is opening up an image to show somebody, and Preview so helpfully opening up 250 porn images....mu girlfriend thought it was funny the first time...

That's your own fault, btw, not Apple's. There are multiple documented and easy ways to avoid this (although the easiest way to avoid the above problem is to not view porn, but I know many people here seem to think that it's absurd to even consider that level of self-control), so learn how to use the computer you're sitting in front of and you won't have those problems.

jW

blow45
Apr 21, 2012, 09:27 PM
That's your own fault, btw, not Apple's. There are multiple documented and easy ways to avoid this (although the easiest way to avoid the above problem is to not view porn, but I know many people here seem to think that it's absurd to even consider that level of self-control), so learn how to use the computer you're sitting in front of and you won't have those problems.

jW

What a nasty condescending reply on all counts. :mad: Who do you think you are to tell him what content he should or shouldn't be viewing on his computer just so you make a point that apple's system isn't broken and buggy. We've read everything here from shift to open the app, option when shutting down a window, system prefs and terminal commands and still the system creates obvious problems for users.

And what's your answer to showing ones full history of opened files within in app expose? Since you are so well versed in exercising self control, you know how to "how to use the computer you're sitting in front of", can you then tell us what a user should do in a scenario where he goes to in app expose and exposes some (non porn) recently used item that he'd rather not show for privacy reasons to the person they are using their mac with? Say in a car delearship that you've been opening competitors brochurers, or with your boss that you been looking at mags or private expenses, or in any scenario where you simply do not want your recently opened files to show up upon an app expose. Is there an option for the average user (without editing and locking plist files, I can do this, but not many are or should be able to go to that level of complexity) for this or is the os in the "computer you are sitting in front of" rather bs in several of its ui choices these days?

The op who said that whoever chose this ui modification must have been a "bona fide dumb ass" seems to be rather young and not so delicate in expressing their view, but he was absolutely right.

It just works, has become yeah well it works, sometimes it has a bug and when you close all windows in safari (one by one) and log out and log back in and start safari, it reopens all windows upon re-opening, and there's also the option and cmd keys when shutting down windows in preview and terminal command and system preference choice, and yeah well as for showing all your recent history every time you do an expose for a couple of windows, there's not really an option for this but you can edit a plist file...

What is all that garbage? Is that it just works? Or is it, it works like crap. And we are supposed to be insulted as well by your likes that we don't know how to use the "computer (we) are sitting in front of"? For crying out loud...:rolleyes: It's that kind of sickening mixture of arrogance and ignorance that you have that's probably shared by the people responsible for lion that have created such a **** ui out of the world's best designed os a few years ago.

Btw, the only thing absurd is the level of condescension in your reply. Maybe you should be viewing porn I guess instead, all that exercise in self control isn't helping all that much apparently.

martosprint
Apr 23, 2012, 06:42 PM
Finally a solution to that Preview problem that I've had also. The command + W works great.
Thanks for that one. 

soulsurfer
May 2, 2012, 05:41 PM
Hi All,
I've tried all the proposed solutions, from command line to unflag system pref.s/general etc. etc. No result at all except for a very quick log-out from preview using Option+cmd+Q, but my 288 no-name docs open each time I try to open a new file with preview... Please find a solution, it is very frustrating :mad:

soulsurfer
May 2, 2012, 07:22 PM
WOW, well, following this "procedure" I've solved the problem in empiric way.
I've opened finder "go to" pressing OPT in order to switch to Library, than I've searched for all related preview files simply using spotlight on Library, and erased all .plist and .lockfile and all the content of com.apple.Preview.savedState folder.
I've tried to re-open Preview and finally all works!!!
I've switched from PC to iMac just 2 weeks ago, this is my first fight with the machine, and I WON! I'm happy (but I need little to be...)
Hope it could help who have the same problem.
Maurizio:D:D:D

iJimmy
May 11, 2012, 04:41 AM
WOW, well, following this "procedure" I've solved the problem in empiric way.
I've opened finder "go to" pressing OPT in order to switch to Library, than I've searched for all related preview files simply using spotlight on Library, and erased all .plist and .lockfile and all the content of com.apple.Preview.savedState folder.
I've tried to re-open Preview and finally all works!!!
I've switched from PC to iMac just 2 weeks ago, this is my first fight with the machine, and I WON! I'm happy (but I need little to be...)
Hope it could help who have the same problem.
Maurizio:D:D:D
After a few days of searching, this resolved my issue.

It was annoying waiting for +200 images opening when I only wanted to open 1...

blakjava
Nov 23, 2012, 04:27 PM
It's funny how after so many years, people still don't get how OSX apps work.

There's no need to ever quit preview. If you're done looking at one document, you close it (Cmd-W).

The resume feature just builds on the above. It's actually quite convenient because you can reboot without closing apps, and you can exactly restore the session where you left off.

It's even funnier to assume that everyone has been using OSX as long as you have. Some of us have recently moved to OSX from Windows and are still getting used to this new operating system.:D

AppleCultist
Feb 25, 2013, 03:31 PM
Maybe it's the user that doesn't know that Apple gives he/she the OPTION to simply turn that feature off in preferences rather than wasting so much steam on a forum. :rolleyes:

Yes, I don't know either! In plain non-cultist English how does one intuitively stop Preview from acting like an ******* every single freaking time and opening every single freaking document in existence!

There is nothing intuitive about.
Thank you.

On edit, I finally found the preferences for this awful program and it doesn't give me the option to turn off the ******* mode of loading every single document ever opened with this stupid thing. Is there a third party alternative? Something that actually intuitive?

On edit again, I finally saw the answer in the response after the response from the snippy Apple Cultist I quoted here:

How to stop Preview from opening every freaking window it ever opened Hint to google spiders this is the answer:

All in all TO STOP MAC OS LION FROM OPENING OLD WINDOWS, OPEN SYSTEM PREFERENCES > GENERAL > UNCHECK 'RESTORE WINDOWS WHEN QUITTING AND RE-OPENING APPS

Tesselator
Mar 2, 2013, 08:15 AM
Hehehehehe... Sorry, no offense intended on ANY level but I just sprayed coffee all over laughing when I noticed a user named "blow 45" <giggles>, had an adverse reaction to the remark: "(although the easiest way to avoid the above problem is to not view porn...)".

Hhehehe... Ooooh, the irony of it all... :D

benwiggy
Mar 2, 2013, 08:44 AM
I don't think there's any major change to the GUI metaphor (either on Windows or OS X) that has not provoked a massive backlash from users who have establish their own familiar workflow. However, these changes do happen from time to time, and change is the price of progress.

It has been pointed that OS X is likely to move to a framework similar to that on iOS, where the user will neither know nor care whether an app is actually loaded into memory or not. That will be handled by the OS. With faster SSD load times, most apps will launch very quickly if not already in memory (or Inactive Memory).
If the app does need to be quit, because of memory usage by other more active apps, then when it is reloaded, it will carry on where it left off.

So the only thing the user has to do is open and close his document windows. Personally, I haven't had any problems with documents being open that I didn't open. If you are used to Quitting as a means of closing all windows, then you will need to modify this behaviour (or the shortcut).

There are ways to disable Auto-resume: but I suspect that future versions of OS X will not allow disabling. So best to get used to it now.

I'm not saying whether one method is better than the other: merely "this is how it is".

Tesselator
Mar 2, 2013, 09:01 AM
There are ways to disable Auto-resume: but I suspect that future versions of OS X will not allow disabling. So best to get used to it now.

As long as there is a terminal we will be able to disable. If not or if the terminal get's kicked in future releases people will just add it back in and/or develop alternative applications that don't behave so badly.

I took the tips from the linked solution on the previous page and disabled the behavior for Preview and QT - where such behavior clearly doesn't belong.

ashtreex
May 21, 2013, 12:11 PM
I've been using OS x and Preview for donkey's years.

I don't think it is intuitive at all to have to change an application behaviour that is:
- different from the earlier versions,
- different from other much used operating systems, and
- different to third party applications that also run on Macs,

by going to a system preference called "General". Why should users have to go to all this trouble to achieve standard behaviour?

benwiggy
May 22, 2013, 02:31 AM
I've been using OS x and Preview for donkey's years.
I don't think it is intuitive at all to have to change an application behaviour that is different from the earlier versions
You think this is the first time that a fundamental metaphor of GUI has changed, in the 40 years since it was invented?

"Intuitive" means "it behaves like you're used to". So of course a new behaviour is not intuitive.

But you still had to learn the original way, and before you learnt it, it was unnatural, unintuitive and strange. Once you have learnt it, the important thing is that everything is consistent. That's what makes the experience intuitive.

Things will be different in the future! :D Luckily, we all have brains which are very good at adapting and learning.

Window 8 has radically changed many UI conventions. Even .. gasp .. Linux .. is coming up with new UI paradigms. We're not still using the same interfaces and computers that we were 20 years ago.

"Remember the days when you used to have save documents by hand?"
"Yeah. And when you had to reload every document after you quit an app."
"Crazy."