defaults -currentHost write -globalDomain AppleFontSmoothing -int 0
defaults -currentHost write -globalDomain AppleFontSmoothing -int 1
defaults -currentHost write -globalDomain AppleFontSmoothing -int 2
defaults -currentHost write -globalDomain AppleFontSmoothing -int 3
Then reboot to see the changes.
]]>The common property list format is:
For example, to launch svnserve replace bold text with following:
program ID:
org.tigris.Subversion
program executable path:
/usr/bin/svnserve (or your custom path)
program parameters (each in separate line enclosed with ‘string’ tag):
-d
–root=path to root
–log-file=path to log file
Save resulting file at path “/Library/LaunchDaemons/org.tigris.Subversion.plist”.
We’re now ready to make sure it will work. If you’ve got the svnserve daemon running, open up the Activity Monitor and locate the svnserve process. Select it and press the Quit Process button in the Activity Monitor toolbar. You should be asked for your administrator password. When the process exits it will disappear from the list.
After the process has closed, switch to the Terminal. We’re ready to test our LaunchDaemon to start it up again. In the Terminal, type the following:
Enter your administrator password. You should be returned to a new prompt in the shell if everything goes well.
To verify that our process is registered with launchd, we can print out a list of all the processes run with launchctl by running:
You should see the org.tigris.Subversion item in the list. You can further test that the LaunchDaemon works by simply restarting your system and again checking the Activity Monitor to verify that the svnserve process is running.
]]>Open Terminal application and execute following command (Replace YES with NO to revert to original look):
defaults write com.apple.Dock showhidden -bool YES
Requires the Dock to be relaunched to take effect, so type “killall Dock” and press enter.
Open Terminal application and execute following command (Replace YES with NO to revert to original look):
defaults write com.apple.dock no-glass -boolean YES
Requires the Dock to be relaunched to take effect, so type “killall Dock” and press enter.
Open Terminal application and execute following command (Replace YES with NO to revert to original title):
defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
Requires the finder to be relaunched to take effect, so type “killall Finder” and press enter.
Open Terminal application and execute following command (Replace TRUE with FALSE to hide hidden files again):
defaults write com.apple.finder AppleShowAllFiles TRUE
Requires the Finder to be relaunched to take effect, so type “killall Finder” and press enter.
Open Script Editor and enter these lines:
Select “File -> Save” to bring up the Save dialog. Give your program a name (“Get Path”, for example), save it somewhere safe (your user’s Documents folder), and set the “File Format” pop-up to “Application”, then click Save. Now navigate to the spot where you saved your program, and drag it to the Dock or to a Finder’s sidebar or toolbar area. When you need the path to an item, first select that item, then click on your program’s Dock, sidebar, or toolbar icon. You’ll briefly see your program load into the dock, then quit. When it quits, switch to your target application and press Command-V to paste the path.
]]>The only rest have to be made
]]>