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


Click here to return to the 'Enable Disk Copy's expert mode for hidden features' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Enable Disk Copy's expert mode for hidden features
Authored by: robJ on Jul 19, '03 11:18:44PM
For those who don't want to fool with Terminal, here's an AppleScript script that will:

1. Add the setting (enabled) if it doesn't exist in the plist
2. Toggle the setting on subsequent executions

set write_ to "defaults write com.apple.diskcopy expert-mode "
try
	set currentMode to do shell script ¬
		"defaults read com.apple.diskcopy expert-mode"
on error e -- setting doesn't exist in plist - add and enable
	do shell script write_ & "1" -- Enable
	display dialog e
	return
end try

-- On subsequent runs, toggle the setting.
if currentMode is "0" then
	do shell script write_ & "1" -- Enable 
else
	do shell script write_ & "0" -- Disable
end if



[ Reply to This | # ]