Hi Ed,
Thank you very much for taking time to respond to my posting and for providing this AppleScript.
Yes, it works (at least in my testing so far!). Many, many thanks!
When you said "that's almost there," what is missing/lacking?
My goal is to incorporate your script into a QuicKeys shortcut which I have configured to run upon launch and QK is included in my user accounts' login items.
As such, that should do the trick (unless I'm overlooking something) of remembering and reopening the Finder windows that I leave open upon shutdown to compensate for the intermittent occasions when the Finder "forgets" to reopen them on my system.
Again, many many thanks!
Barry
Date: Fri, 20 Aug 2010 22:41:03 -0700
Subject: Re: Remember Finder windows left open at shutdown
Content-Type: text/plain; charset=us-ascii
Here's a version that's almost there.
When you run the first time, it remembers the positions of all windows then closes them.
When run the second time it tries to open all the windows it closed.
You should be able to save this as an applet and set it to run at startup, and run it before you shut down.
HTH,
ES
On Aug 18, 2010, at 4:16 PM, Barry Fass-Holmes wrote:
Hello,
I've searched the web, Apple's discussion forum on AppleScript, and this listserv's archives without finding a relevant posting.
Snow Leopard.4, on my MacBook Pro with various third-party utilities, intermittently "forgets" to reopen the Finder windows that were open when I powered down.
Could someone please tell me how to write an AppleScript that would compile a list of the currently open Finder windows? I would then use that in another AppleScript to reopen those windows upon execution after logging in so that the windows reopen after a cold bootup.
Thanks in advance,
Barry