hkdty211 |
Wysłany: Nie 12:58, 29 Maj 2011 Temat postu: styler hair straightener Mac OS X utility scripts |
|
Mac OS X: utility scripts (bash scripts) Series -9 collection of Mac OS X: utility scripts (bash scripts) Series -9-- add application icon to the Dock
Although it already has,the hair straightener 10 80 What is the bottom lin, such as lucidsystems the additemtodock and dockutil Dock items and other utility management, (this does not involve the many tricks that Dock utilities, interested can refer to here) ,hair straightener au, the following script is very simple, it is just an example,hair straightener irons Mother's Day 】 【 heart a heart to his mother 's,purple straightener,hair straightener prices 25 kinds of energy your w, the lack of many features, such as it can not remove or replace an icon - in fact, it is easy to implement; such that it can not add a folder, or URL - This is reference to using the in some cases for administrators to restrict, but slightly modified for the following program can do.
to use: just copy the following contents to a file, change the executable file properties, you can run.
#,styler hair straightener! / Bin / bash
# ------------------------------ -----------------------------------------
# A simple script to add application's icon to current user's Dock
#
# Name: addapptodock
#
# Operating System:
# Tested on 10.4 and 10.5
#
# 2009 Tony Liu
# Copyright GNU GPL
# Version 0.0.1
#
# Version History
# 0.0.1: 2009 -10-23 Initial
# ----------------------------------------- ------------------------------
#
# Usage: see below, or run it in terminal.
#
num_argumnets = $ #
if [to the Dock. > exit 2
fi
App_Name = --------
# Check if it exists
# ---------------------------
App_Check = `defaults read com.apple.dock persistent-apps | grep-w '
# This item is in the dock
echo
exit 1
fi
# ---------------------------
# Adding Application
# ---------------------------
if [-d [-f -add $ App_Name _CFURLStringType 0
else
echo
exit 0 |
|