hkdty211
hulajnoga
Dołączył: 30 Kwi 2011
Posty: 97
Przeczytał: 0 tematów
Ostrzeżeń: 0/10 Skąd: England
|
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,[link widoczny dla zalogowanych], 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) ,[link widoczny dla zalogowanych], the following script is very simple, it is just an example,[link widoczny dla zalogowanych],[link widoczny dla zalogowanych],[link widoczny dla zalogowanych], 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.
#,[link widoczny dla zalogowanych]! / 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
Post został pochwalony 0 razy
|
|