• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: DS_Store files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DS_Store files


  • Subject: Re: DS_Store files
  • From: Tom Robinson <email@hidden>
  • Date: Fri, 10 Apr 2009 08:06:03 +1200

On 2009-04-10, at 02:15, Luther Fuller wrote:

One of my scripts sets bounds of folder windows. There seems to be a problem with the bounds not sticking with some folders.

I couldn't get 'set bounds' to stick under 10.4.9 but it's been fine under 10.5. My workaround was to make a different change to the window which would trigger the save:


tell application id "com.apple.finder"
tell front window
set bounds to {MyX, MyY, MyX + MyWidth, MyY + MyHeight}
set current view to icon view

-- Now we destroy our exact placement to get the bounds change to stick (OS X 10.4.9)

--tell application "System Events" to tell process "Finder" to click button 2 of window 1 -- Zoom
--tell application "System Events" to tell process "Finder" to click button 2 of window 1
end tell
end tell



You could also try deleting the .DS_Store file in the problem folder and maybe its parent folder.


Another cause might be because the changes are only written periodically, so if Finder crashes you can lose the last x folder changes.

AFAIK there's no documentation and no-one's been able to decipher the .DS_Store files. I wish they were .plists or similar.

Cheers

_______________________________________________
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
  • Follow-Ups:
    • Re: DS_Store files
      • From: Luther Fuller <email@hidden>
References: 
 >DS_Store files (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Mail Search surrogate
  • Next by Date: Re: Mail Search surrogate
  • Previous by thread: DS_Store files
  • Next by thread: Re: DS_Store files
  • Index(es):
    • Date
    • Thread