Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Jolly Roger Newsgroups: comp.sys.mac.system Subject: Re: View Options -> Grid Spacing Date: 29 Aug 2015 19:45:48 GMT Organization: People for the Ethical Treatment of Pirates Lines: 45 Message-ID: References: X-Trace: individual.net AHEWMKWoS19/4BR9ZgLg6Ac+66VV9rz7l371vPhxxyDn/wjAMQ Cancel-Lock: sha1:sYdluB2U2j6W/an68zboX2W/N1U= X-Face: _.g>n!a$f3/H3jA]>9pN55*5<`}Tud57>1Y%b|b-Y~()~\t,LZ3e up1/bO{=-) User-Agent: slrn/1.0.1 (Darwin) Xref: csiph.com comp.sys.mac.system:79137 On 2015-08-29, Andre G. Isaak wrote: > In article , > Jolly Roger wrote: > >> On 2015-08-29, Jolly Roger wrote: >> > On 2015-08-29, Andre G. Isaak wrote: >> >> Does anyone know if there is a way to get/set the Grid Spacing option >> >> for a specific folder from the Terminal rather than the Finder? >> > >> > It looks like you can do it through AppleScript, which can be run >> > through the command line with the osascript command: >> > >> > >> >> Ewww. I just realized that's using GUI scripting, which is almost >> certainly not what you want. >> >> Anyway in OS X 10.10, it looks like the preference setting is stored in >> the com.apple.finder defaults in the gridSpacing element of the >> IconViewSettings dictionary, which is in the DesktopViewSettings >> dictionary. > > Thanks for the pointers. > > Just to clarify, I'm looking to change the settings for specific > folders. I think your suggestions pertain to the default view settings. I think you're right. In that case, you're looking at modifying the .DS_Store file located within the desired folder's directory. I don't know of any command-line tools that allow you to modify DS_Store file contents. The best description I've found of DS_Store file contents is here: I suppose you could set a folder the way you want, then examine its .DS_Store file to see if you can figure out which bit to set. Probably more work than it's worth though. -- E-mail sent to this address may be devoured by my ravenous SPAM filter. I often ignore posts from Google. Use a real news client instead. JR