Re: Anyone know how to trash finder window view settings?
Re: Anyone know how to trash finder window view settings?
- Subject: Re: Anyone know how to trash finder window view settings?
- From: OzSanta <email@hidden>
- Date: Thu, 27 Jan 2011 19:06:36 +1100
On 27/01/2011, at 6:53 PM, Axel Luttgens wrote: Le 27 janv. 2011 à 05:34, OzSanta a écrit : G'day
I've been writing a script to align icon positions on the desktop and finder windows.
Trouble is, I've managed to 'lock' the Applications and Utilities windows so they can't be altered. I think the prefs are corrupt.
Can anyone tell me how to trash the appropriate preferences please?
Perhaps do you have corrupt /Applications/.DS_Store and /Applications/Utilities/.DS_Store files? If this is the case, deleting them, after having ensured that no Finder windows display the contents of the Applications and Utilities folders, should be of some help. Note that if you're on a pre-Leopard system, you'll lose the Finder comments, if any, attached to the items contained by those folders. A logout/login sequence may be needed (or, equivalently in this case yet a bit more harsh, just a Finder relaunch thru the "Force Quit..." menu item). HTH, Axel
Thanks Axel.
I whipped this up and it seems to do the job.
tell application "Finder" try set t to container of (item 1 of ((items of window 1) as alias list)) as alias as text set tt to (t & ".DS_Store") as text as alias set name of tt to " temp1234567890" move ((t & " temp1234567890") as text) to trash quit delay 0.2 try activate end try on error errmsg display dialog errmsg end try end tell
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden