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 17:43:48 GMT Organization: People for the Ethical Treatment of Pirates Lines: 59 Message-ID: References: X-Trace: individual.net 8p2SOXfB8mlCN6ExLFWpAA19hEcZgJR5mRoxYiU2YLF0S9dexC Cancel-Lock: sha1:BCWCHv0Dyqyn9lxZRs+cg7562ZY= 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:79121 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. You may be able to use the defaults command-line tool to set this property. You can see the list of DesktopViewSettings dictionary entries with this command: defaults read com.apple.finder DesktopViewSettings You should see output similar to this: { IconViewSettings = { arrangeBy = kind; backgroundColorBlue = 1; backgroundColorGreen = 1; backgroundColorRed = 1; backgroundType = 0; gridOffsetX = 0; gridOffsetY = 0; gridSpacing = 84; iconSize = 28; labelOnBottom = 1; showIconPreview = 0; showItemInfo = 0; textSize = 10; viewOptionsVersion = 1; }; } What you want to do (if possible) is use the "defaults write com.apple.finder" command (with additional syntax) to set the gridSpacing property. I haven't figured out the syntax needed just yet, and unfortunately I don't have time. Maybe someone else can help you with that. -- 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