os x

Spotlight Indexing

Shell commands to control Spotlight indexing on volumes.

  • To only turn off indexing on a volume:

Login Hooks

How to execute scripts when a user logs into, or out of, an OS X workstation.

Apple tech note
Bombich.com article
Scripting Login Tasks in OS X

Create a hook:

sudo defaults write com.apple.loginwindow LoginHook /path/to/script

See what the login hook is set to:

sudo defaults read com.apple.loginwindow LoginHook

Technology:

Snow Leopard Deployment Issues

Collection of assorted issues that came up deploying some OS 10.6 "Snow Leopard" iMacs.

  • Adobe Acrobat Crashes on OS X With Network Account - an alternative way of achieving this solution, since we have OS X Server, was to use MCX to automatically redirect the folders for network users:
    Action - deleteAndCreateSymblink
    Destination Folder Path - /Users/Shared/9.0_x86/
    Folder Path: ~/Library/Application Support/Adobe/Acrobat/9.0_x86

Technology:

chflag

OS X flags for further controlling what can be done with folders and files.

http://www.macosxhints.com/article.php?story=20031017061722471

  • arch - "archived flag"
  • opaque - "opaque flag"
  • nodump - "nodump flag"
  • sappnd - "system append-only flag"
  • schg - "system immutable flag"
  • uappnd - "user append-only flag"
  • uchg - "user immutable flag"

Lock a file from being moved, renamed or deleted:

Technology:

OS X Font Management

Notes on handling fonts in OS X, particularly 10.6 Snow Leopard.

Font Management in OS X - lots of tips on managing fonts in various versions of OS X, and what to do about Apple's versions of Helvetica, etc.

How to Clear the Font Cache

Undoing Font Book - how to reset Font Book's cache.

Technology:

ImageMagick for OS X

Installing ImageMagick on OS X 10.3 (Panther) and OS X 10.6 (Snow Leopard).

Recommended Libraries

  • libtiff

    wget http://dl.maptools.org/dl/libtiff/tiff-3.8.2.tar.gz
    tar zxf tiff-3.8.2.tar.gz
    cd tiff-3.8.2
    ./configure
    make
    sudo make install
  • libjpeg
    wget http://www.ijg.org/files/jpegsrc.v7.tar.gz
    tar zxf jpegsrc.v7.tar.gz
    cd jpeg-7
    ./configure
    make
    sudo make install

ImageMagick installation
To get the latest version of ImageMagick:

Capturing Web Pages

Options for automating the capture of a screen shot of a web page.

Paparazzi!
Paparazzi! is an OS X application for capturing screenshots of web pages. It is AppleScriptable to automate the capture of a page:

tell application "Paparazzi!"
  capture "http://www.google.com/"
  repeat while busy
    delay 1
  end repeat
  save in POSIX file "/Users/foo/Desktop/google.png" as PNG with icon
end tell

webkit2png

Technology:

Handy programs for scripting on OS X

  • MacOSX::File - A collection of Perl modules to manipulate files on MacOS X (set file/creator codes, copy files while preserving the resource fork,etc.)
    Installing on Panther resulted in a "gcc2" error when trying to install from CPAN. Manually still required a tweak even though the latest version has a patch for Panther:

    curl -O http://search.cpan.org/CPAN/authors/id/D/DA/DANKOGAI/MacOSX-File-0.71.tar.gz
    tar zxvf MacOSX-File-0.71.tar.gz
    cd MacOSX-File-0.71
    perl Makefile.PL
    make CC=gcc3
    make test

Technology:

Finding files (quickly) from OS X's command line

Pages

Subscribe to RSS - os x

Recent Updates

  • 2 years 2 days ago
  • 2 years 2 days ago
  • 2 years 4 days ago
    php 8.x
  • 2 years 5 days ago
    10.6.7
  • 2 years 1 week ago
    Drop Centos 5/6 stuff