Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.system > #79121

Re: View Options -> Grid Spacing

From Jolly Roger <jollyroger@pobox.com>
Newsgroups comp.sys.mac.system
Subject Re: View Options -> Grid Spacing
Date 2015-08-29 17:43 +0000
Organization People for the Ethical Treatment of Pirates
Message-ID <d4e9ajFu2slU2@mid.individual.net> (permalink)
References <agisaak-B653CE.11004829082015@shawnews> <d4e7mhFu2slU1@mid.individual.net>

Show all headers | View raw


On 2015-08-29, Jolly Roger <jollyroger@pobox.com> wrote:
> On 2015-08-29, Andre G. Isaak <agisaak@gmail.com> 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:
>
><http://macscripter.net/viewtopic.php?id=40430>

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

Back to comp.sys.mac.system | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

View Options -> Grid Spacing "Andre G. Isaak" <agisaak@gmail.com> - 2015-08-29 11:00 -0600
  Re: View Options -> Grid Spacing Jolly Roger <jollyroger@pobox.com> - 2015-08-29 17:16 +0000
    Re: View Options -> Grid Spacing Jolly Roger <jollyroger@pobox.com> - 2015-08-29 17:43 +0000
      Re: View Options -> Grid Spacing "Andre G. Isaak" <agisaak@gmail.com> - 2015-08-29 11:52 -0600
        Re: View Options -> Grid Spacing Jolly Roger <jollyroger@pobox.com> - 2015-08-29 19:45 +0000
          Re: View Options -> Grid Spacing "Andre G. Isaak" <agisaak@gmail.com> - 2015-08-30 08:41 -0600

csiph-web