THe easiest way would be to wrap the defaults command in a AppleScript
do shell script 


for example 

do shell script "defaults -g com.apple.iCal" BreakMeBad"

If you want the script to ack like a toggle then you need a bit more work..

add at the top 
property myStatus

THen the AppleScript command will remember myStatus's value between runs.

if myStatus is equal to 1 
then
 set myStatus to 0
...
else
 set myStatus to 1
 ...
end if


You would probably want to add in a statement to have AppleScript speak the 
state.

Best wishes,

Jonathan
 

-- 
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To post to this group, send email to macvisionaries@googlegroups.com.
To unsubscribe from this group, send email to 
macvisionaries+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/macvisionaries?hl=en.

Reply via email to