Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Turn Acrobat Toolbar On and Off' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Turn Acrobat Toolbar On and Off
Authored by: catcher on Mar 14, '08 07:54:25AM
Thanks to the folks here, I've gotten rid of that pesky toolbar. Combining some of the hints, I've come up with an approach that works for me, lets me toggle the toolbar on and off, and does it with a single command-line script (note: this requires using the command line).

First, disable PDFMaker repair, as described by iynque. Then, use pdf-maker-toggle (the script, below) by calling it as "pdf-maker-toggle disable" or "pdf-maker-toggle enable" from the command line.

If scripting is foreign to you, doing this manually is probably easier, and you might cause damage to your system that will be difficult for you to undo. "disable" simply moves the files out of the way as described in the original hint. "enable" returns your seats to their original, upright position.


#!/bin/bash

OFFICE_ROOT="/Applications/Microsoft Office 2004"
PEN_DIR="${OFFICE_ROOT}/PDFMakerLib.holding-pen"
EXCEL_FILE="${OFFICE_ROOT}/Office/Startup/Excel/PDFMaker.xla"
LIB_FILE="${OFFICE_ROOT}/PDFMakerLib"
POWERPOINT_FILE="${OFFICE_ROOT}/Office/Startup/PowerPoint/PDFMaker.ppa"
WORD_FILE="${OFFICE_ROOT}/Office/Startup/Word/PDFMaker.dot"
MODE="$1"

if [ "${MODE}" = "disable" ]; then
  if [ -e "${PEN_DIR}" ]; then echo "PDF Maker already disabled" ; exit; fi
  mkdir "${PEN_DIR}"
  mv "${LIB_FILE}" "${PEN_DIR}/PDFMakerLib"
  mv "${EXCEL_FILE}" "${PEN_DIR}/PDFMaker.xla"
  mv "${POWERPOINT_FILE}" "${PEN_DIR}/PDFMaker.ppa"
  mv "${WORD_FILE}" "${PEN_DIR}/PDFMaker.dot"

else
  if [ "${MODE}" = "enable" ]; then
    if [ ! -e "${PEN_DIR}" ]; then echo "PDF Maker already enabled" ; exit; fi
    mv "${PEN_DIR}/PDFMakerLib" "${LIB_FILE}"
    mv "${PEN_DIR}/PDFMaker.xla" "${EXCEL_FILE}"
    mv "${PEN_DIR}/PDFMaker.ppa" "${POWERPOINT_FILE}"
    mv "${PEN_DIR}/PDFMaker.dot" "${WORD_FILE}"
    rmdir "${PEN_DIR}"

  else
    echo unknown mode: ${MODE}

  fi
fi


[ Reply to This | # ]