Results 1 to 5 of 5
  1. #1

    MrGecko's Avatar
    Member Since
    Oct 02, 2006
    Posts
    65
    Specs:
    se30 16MHZ 1.44MBHD Performa 630 CD 33MHZ 250MBHD iMac G3 333MHZ 60GBHD iMac G4 800MHZ 250GBHD
    shell script xml
    i have ben trying to make a shell script to make a xml boolean = true but when i try it makes the boolean a string here's my script
    #!/bin/sh
    defaults write com.apple.dock autohide true&&killall Dock&
    can anyone help me?

  2. #2

    surfwax95's Avatar
    Member Since
    Aug 27, 2005
    Location
    Fayetteville, AR
    Posts
    2,406
    Specs:
    15" Powerbook G4 24" iMac iPhone 3Gs
    I'm assuming the script is trying to turn on AutoHide and then restart the dock.

    If so, I would think you'd need a semicolon in between, such as:

    #!/bin/sh
    defaults write com.apple.dock autohide TRUE; killall Dock

    I'm no scripter, though I do mess around with the defaults a lot.
    I try to Command+Shift+/ when I can.
    They're - Their - There | Two - Too - To | You're - Your | MAC - Mac
    I was on the M-F honor roll for October, 2006.

  3. #3

    MrGecko's Avatar
    Member Since
    Oct 02, 2006
    Posts
    65
    Specs:
    se30 16MHZ 1.44MBHD Performa 630 CD 33MHZ 250MBHD iMac G3 333MHZ 60GBHD iMac G4 800MHZ 250GBHD
    Quote Originally Posted by surfwax95
    I'm assuming the script is trying to turn on AutoHide and then restart the dock.

    If so, I would think you'd need a semicolon in between, such as:

    #!/bin/sh
    defaults write com.apple.dock autohide TRUE; killall Dock

    I'm no scripter, though I do mess around with the defaults a lot.
    Did not work it changed the boolean to string

  4. #4

    surfwax95's Avatar
    Member Since
    Aug 27, 2005
    Location
    Fayetteville, AR
    Posts
    2,406
    Specs:
    15" Powerbook G4 24" iMac iPhone 3Gs
    Well, never tried to auto hide the dock via command line, but digging around in the defaults, it looks like the command is:

    $ defaults write com.apple.dock autohide -bool YES

    Try it with this command.
    I try to Command+Shift+/ when I can.
    They're - Their - There | Two - Too - To | You're - Your | MAC - Mac
    I was on the M-F honor roll for October, 2006.

  5. #5

    MrGecko's Avatar
    Member Since
    Oct 02, 2006
    Posts
    65
    Specs:
    se30 16MHZ 1.44MBHD Performa 630 CD 33MHZ 250MBHD iMac G3 333MHZ 60GBHD iMac G4 800MHZ 250GBHD
    Quote Originally Posted by surfwax95
    Well, never tried to auto hide the dock via command line, but digging around in the defaults, it looks like the command is:

    $ defaults write com.apple.dock autohide -bool YES

    Try it with this command.
    thank you sutrwax95 it works now

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. FTP Shell Script Q.
    By edwardlscott in forum OS X - Operating System
    Replies: 8
    Last Post: 03-06-2013, 02:37 AM
  2. Shell script help
    By Hyper in forum OS X - Development and Darwin
    Replies: 12
    Last Post: 05-22-2011, 12:36 PM
  3. Terminal -- shell script -- script will only read two lines of a file
    By Straitsfan in forum OS X - Apps and Games
    Replies: 0
    Last Post: 01-30-2011, 10:04 PM
  4. edit XML file using variable in shell script.
    By jc6 in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 10-23-2010, 07:36 PM
  5. Shell Script on Desktop
    By starrin in forum OS X - Operating System
    Replies: 2
    Last Post: 07-28-2004, 12:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •