New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

shell script xml


Post Reply New Thread Subscribe

 
Thread Tools
MrGecko

 
MrGecko's Avatar
 
Member Since: Oct 02, 2006
Posts: 65
MrGecko is on a distinguished road
Mac Specs: se30 16MHZ 1.44MBHD Performa 630 CD 33MHZ 250MBHD iMac G3 333MHZ 60GBHD iMac G4 800MHZ 250GBHD

MrGecko is offline
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?
QUOTE Thanks
surfwax95

 
surfwax95's Avatar
 
Member Since: Aug 27, 2005
Location: Fayetteville, AR
Posts: 2,410
surfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud of
Mac Specs: 15" Powerbook G4 24" iMac iPhone 3Gs

surfwax95 is offline
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.
QUOTE Thanks
MrGecko

 
MrGecko's Avatar
 
Member Since: Oct 02, 2006
Posts: 65
MrGecko is on a distinguished road
Mac Specs: se30 16MHZ 1.44MBHD Performa 630 CD 33MHZ 250MBHD iMac G3 333MHZ 60GBHD iMac G4 800MHZ 250GBHD

MrGecko is offline
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
QUOTE Thanks
surfwax95

 
surfwax95's Avatar
 
Member Since: Aug 27, 2005
Location: Fayetteville, AR
Posts: 2,410
surfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud of
Mac Specs: 15" Powerbook G4 24" iMac iPhone 3Gs

surfwax95 is offline
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.
QUOTE Thanks
MrGecko

 
MrGecko's Avatar
 
Member Since: Oct 02, 2006
Posts: 65
MrGecko is on a distinguished road
Mac Specs: se30 16MHZ 1.44MBHD Performa 630 CD 33MHZ 250MBHD iMac G3 333MHZ 60GBHD iMac G4 800MHZ 250GBHD

MrGecko is offline
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
QUOTE Thanks

Post Reply New Thread Subscribe


« Creating shared objects (dylibs) | Java programming »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Making a Shell Script Executable surfwax95 OS X - Development and Darwin 10 08-25-2010 04:15 PM
Shell Broken ? A.I. BOT OS X - Operating System 3 08-28-2006 01:32 PM
Shell script question Niwrad OS X - Development and Darwin 14 06-28-2005 04:58 PM
Shell Script on Desktop starrin OS X - Operating System 2 07-28-2004 11:25 AM
tsch script - nested loop dynamic variable reference lizardthefish OS X - Development and Darwin 0 03-04-2004 11:53 PM

All times are GMT -4. The time now is 06:42 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?