shell script xml

Joined
Oct 2, 2006
Messages
65
Reaction score
0
Points
6
Your Mac's Specs
se30 16MHZ 1.44MBHD Performa 630 CD 33MHZ 250MBHD iMac G3 333MHZ 60GBHD iMac G4 800MHZ 250GBHD
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?
 
Joined
Aug 27, 2005
Messages
2,406
Reaction score
210
Points
63
Location
Fayetteville, AR
Your Mac's 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.
 
OP
MrGecko
Joined
Oct 2, 2006
Messages
65
Reaction score
0
Points
6
Your Mac's Specs
se30 16MHZ 1.44MBHD Performa 630 CD 33MHZ 250MBHD iMac G3 333MHZ 60GBHD iMac G4 800MHZ 250GBHD
surfwax95 said:
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
 
Joined
Aug 27, 2005
Messages
2,406
Reaction score
210
Points
63
Location
Fayetteville, AR
Your Mac's 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.
 
OP
MrGecko
Joined
Oct 2, 2006
Messages
65
Reaction score
0
Points
6
Your Mac's Specs
se30 16MHZ 1.44MBHD Performa 630 CD 33MHZ 250MBHD iMac G3 333MHZ 60GBHD iMac G4 800MHZ 250GBHD
surfwax95 said:
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
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top