• 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: Reply to Answer to Mounted Network Drives
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reply to Answer to Mounted Network Drives


  • Subject: Re: Reply to Answer to Mounted Network Drives
  • From: Chris Devers <email@hidden>
  • Date: Thu, 11 Feb 2010 16:40:54 -0500

For the problem of turning off icon previews, I figured out a better
approach: PlistBuddy:

>From the command line, this will show whether icon previews are on for
the Desktop:

    plist=~/Library/Preferences/com.apple.finder.plist
    PlistBuddy=/usr/libexec/PlistBuddy
    $PlistBuddy -c "Print
':DesktopViewSettings:IconViewSettings:showIconPreview'" $plist

This line turns them off for the Desktop view:

    $PlistBuddy -c "Set
':DesktopViewSettings:IconViewSettings:showIconPreview' false" $plist

And re-running this line verifies that it worked there:

    $PlistBuddy -c "Print
':DesktopViewSettings:IconViewSettings:showIconPreview'" $plist

The problem now becomes mapping out all the ways that icon previews
can be referenced in Finder's plist file, as it turns out that it can
show up in about a dozen places, and -- bafflingly -- it seems like
big chunks of the file wink in & out of existence when you use the
Finder normally, switching view modes etc. There must be some
secondary preference file (in ~/Library/Preferences/ByHost presumably)
that governs what to "put back" when the file gets rewritten, but I
haven't teased this out yet.

Anyway, I now have a crude little Perl script that just has a list of
these locations in the Finder plist file, and goes down the list to
set them all to be "false". Because it seems like it's easy to undo
the change, the current approach runs in a loop so that it
periodically reasserts the setting, which is a dumb way to solve the
problem, but unless there's a way to lock down a preference as
immutable somehow, I can't think of any better way to do it so far.


--
Chris Devers
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Reply to Answer to Mounted Network Drives
      • From: Ron Hunsinger <email@hidden>
References: 
 >Re: Reply to Answer to Mounted Network Drives (From: "Richard @ Beaver Promotions" <email@hidden>)
 >Re: Reply to Answer to Mounted Network Drives (From: Chris Devers <email@hidden>)
 >Re: Reply to Answer to Mounted Network Drives (From: Richard Lake <email@hidden>)
 >Re: Reply to Answer to Mounted Network Drives (From: Chris Devers <email@hidden>)

  • Prev by Date: Automator-users digest: Folder Contents
  • Next by Date: Re: Automator-users digest: Folder Contents
  • Previous by thread: Re: Reply to Answer to Mounted Network Drives
  • Next by thread: Re: Reply to Answer to Mounted Network Drives
  • Index(es):
    • Date
    • Thread