I read the replies which everyone else submitted but I recommend a different approach which was inspired from the instructions provided to advanced power users of iPulse (which I previously wrote about). First, go into tcsh and within it read man defaults. The rest explains itself.

However, just for that extra support I'll point out the following:

1. Within tcsh, as entered from within Terminal, execute the command as follows:

[Arakus:~] aguila% defaults read

This will spill out to stream ALL the defaults OS X sees as it boots up. Needless to say it will "fly by". Of course, one could use head or tail to determine where along this output one wishes to read or review, but there is a better solution. Send the output to a text file and review that file from within your text editor. This is done by:

[Arakus:~] aguila% defaults read > OSXdefaults

Where OSXdefaults is the name of the text file to be created and which the output stream is to be copied into. I know you know what that is so no explanations are necessary here.

Now the output from this command is huge and so modifying the editor one uses so that line numbers are visible so that one can distinguish between one line and another a bit easier is something to consider. Within vim, if one has not already done so via a script or use of other command variables which can be executed within .bash_profile, activate the line number command so that it is executed whenever one is using vim. Otherwise one must activate the feature ad nauseum each and every time one is within vim, manually. Although there I wrote a how-to on the YDL FAQ website which works for YDL; there is a different variant which works for OS X. I'm working with Bill to get that posted eventually "real soon" now. The way I wrote it streamlines the process so that from WHATEVER shell one is working in vim understands that it is executing variables to be executed within WHATEVER shell it finds itself running in, this avoids writing scripts peculiar to each and every shell!

SO, let's suppose all this is already done and ready. Then all one does is:

[Arakus:~] aguila% vim OSXdefaults

and this is how the listing of vim appears within OS X:

41 AppleScrollBarVariant = Single;
42 AppleShowAllExtensions = 1;
43 NSFavoriteStyles = {
44 Bold = {NSFontTrait = 2; };
45 Italic = {NSFontTrait = 1; };
46 Outlined = {NSStrokeWidth = 3; };
47 Shadowed = {
48 NSShadow = <62706c69 73743030 d4010203 04050607 0a592461 72636869 76657258 24766572 73696f6e 5424746f 7058246f 6 26a6563 74735f10 0f4e534b 65796564 41726368 69766572 12000186 a0d10809 54726f6f 748001a3 0b0c1355 246e756c 6cd30d0e 0f101112 5d4 e5353 6861646f 77486f72 697a5624 636c6173 735c4e53 53686164 6f775665 7274223f 80000080 0222c040 0000d214 15161758 24636c61 73736 573 5a24636c 6173736e 616d65a2 1718584e 53536861 646f7758 4e534f62 6a656374 08111b24 29324449 4c515357 5d647279 868b8d92 97a0aba e b7000000 00000001 01000000 00000000 19000000 00000000 00000000 00000000 c0>;
49 };
50 };
51 NSNavRecentPlaces = (
52 "~/Documents/WP_DOX:Etc./Re\\U0301sume\\U0301s",
53 "~/Pictures/iPhoto Library/2005/02/14",
54 "/Applications/iPulse \\U0192",
55 "~/Documents/Recommendation_Ltrs",
56 "~/Documents/pdf_dox"
57 );
58 "com.apple.keyboard.fnState" = 0;
59 "com.apple.mouse.doubleClickThreshold" = 1.1;
60 "com.apple.mouse.ignoreTrackpadIfMousePresent" = 1;
61 "com.apple.mouse.tapBehavior" = 2;
62 "com.apple.sound.beep.sound" = "/System/Library/Sounds/Blow.aiff";
63 "com.apple.trackpad.scaling" = 0.6875;
64 "com.apple.trackpad.scrollBehavior" = 2;
65 "com.apple.trackpad.scrolling" = 0.875;
66 };


2198 {
2199 GUID = 827254862;
2200 "tile-data" = {
2201 "file-data" = {
2202 "_CFURLAliasData" = <00000000 00b20003 00010000 be1782a8 0000482b 00000000 000006ed 00080c 52 0000bc06 6c740000 00000920 fffe0000 00000000 0000ffff ffff0001 00040000 06ed000e 00220010 0046006f 006c0064 006 9006e 00670040 0068006f 006d0065 002e0061 00700070 000f001a 000c004d 00610063 0069006e 0074006f 00730068 00200048 00440012 001d4170 706c6963 6174696f 6e732f46 6f6c6469 6e674068 6f6d652e 61707000 00130001 2f00ffff 0000>;
2203 "_CFURLString" = "/Applications/[EMAIL PROTECTED]";
2204 "_CFURLStringType" = 0;
2205 };
2206 "file-label" = "[EMAIL PROTECTED]";
2207 "file-mod-date" = 3154537944;
2208 "file-type" = 9;
2209 "parent-mod-date" = 3196609710;
2210 };
2211 "tile-type" = "file-tile";
2212 },
5158 "edu.stanford.folding" = {
5159 "NSWindow Frame Display" = "124 338 480 402 0 0 1280 832 ";
5160 "NSWindow Frame configWindow" = "456 380 399 349 0 0 1280 832 ";
5161 };


If one reads this carefully there are ALL SORTS of stuff (variables) which one can now modify at will. Although I omitted the first 40 lines trust me, stuff like your personal Apple ID, real name and email, everything which OS X knows about you and what is loaded on it (AND where it is) will spill out here. However, if one believes the computer should do some work then in order to find out what variables are available for the function defaults to use, then one does the following:

[Arakus:~] aguila% defaults read edu.stanford.folding
{
    "NSWindow Frame Display" = "124 338 480 402 0 0 1280 832 ";
    "NSWindow Frame configWindow" = "456 380 399 349 0 0 1280 832 ";
}
[Arakus:~] aguila%

Explanation: The system responds with what is exactly displayed in lines 5158-5161above. This means that the variables have values assigned to them. The way to read this is:

variable = value; where value is separated by a space and invoked singly. That is, one value is assigned to a variable as in using the write command. To your query, according to how the use of the write command of the defaults function (again see man defaults, as I explained above) in order to control the [EMAIL PROTECTED] client such that the application will not stop up when you open a new Terminal window, the following should work:

defaults write edu.standford.folding NSWindow Frame configWindow 0

The rest should be a piece of cake, no more difficult than solving for the Henderson-Hasselbach equation!

One more comment: I believe that Apple is not so much hiding stuff as many of us are not familiar with Unix internals as we should be. Explicitly I'm stating that Apple is merely implementing typically Apple stuff like how the OS behaves in a completely reliable and consistent Unix way or has become very much more Unix than many standard other Unix variants... kind of Unixy and very Apple at the same time. The way the defaults function works is indicative of this.

Best wishes....

On Apr 15, 2005, at 8:20 PM, Clinton MacDonald wrote:

Friends:

This is OFF TOPIC, but I need help from Smart Friends(TM). If you choose to ignore it, I don't blame you.


Where can I find, modify, or kill Terminal.app shell startup items in Mac OS X (10.3.8)?

Long ago, I set up the [EMAIL PROTECTED] command line client to run when I started a Terminal session. I do not recall how I did this. Now, I want the application *not* to start up when I open a new Terminal window, but I can't for the life of me figure out how to stop it.

I am running the tcsh shell, but the same problem occurs if I switch to the bash shell. I thought that this might be a weird line in my startup script, but I cannot for the life of me find the startup script (and how could the same script affect both tcsh and bash?). If I move the offending [EMAIL PROTECTED] executable (fah5, if that matters), then I cannot start a shell at all. If I use control-C to kill the fah startup, it kills the shell session. Grrrr!

Here is what I see in the Terminal (I have switched back to tcsh for this demo):

-- ------(Included text)----------

Last login: Fri Apr 15 18:37:10 on console
Welcome to Darwin!
/Applications/\ OS\ X\ Goodies/fah5; exit
[dhcp-66-230-20-nn:~] clint% /Applications/\ OS\ X\ Goodies/fah5; exit

Note: Please read the license agreement (fah5 -license). Further
use of this software requires that you have read and accepted this agreement.


[snip]

Launch directory: /Users/clint/Library/[EMAIL PROTECTED]
Executable: /Applications/ OS X Goodies/fah5

[23:38:38] - Ask before connecting: Yes
[23:38:38] - User name: ClintMacD (Team 0)
[23:38:38] - User ID: 266048840CB7347C
[23:38:38] - Machine ID: 1
[23:38:38]
[23:38:38] Loaded queue successfully.
[23:38:38] + Benchmarking ...
^C
[dhcp-66-230-20-nn:~] clint%

-- ------(End included text)----------

A directory listing shows now obvious startup files in my Home dir:

-- ------(Included text)----------
[dhcp-66-230-20-96:~] clint% ls -aFl
total 2652096
drwxr-xr-x 29 clint staff 986 9 Apr 17:56 ./
drwxrwxr-t 6 root admin 204 6 Aug 2004 ../
-rw-r--r-- 1 clint staff 3 21 Nov 2003 .CFUserTextEncoding
-rwxr-xr-x 1 clint staff 15364 15 Apr 13:32 .DS_Store*
-rw-r--r-- 1 clint staff 0 21 Nov 2003 .MCXLC
drwx------ 3 clint staff 102 15 Apr 17:52 .Trash/
-rw------- 1 clint staff 498 15 Apr 18:38 .bash_history
-rw-r--r-- 1 clint staff 43 13 Apr 2004 .bash_profile
drwxr-xr-x 3 clint staff 102 7 May 2004 .emacs.d/
drwxr-xr-x 2 clint staff 68 14 Aug 2004 .java/
drwxr-xr-x 13 clint staff 442 7 May 2004 .jedit/
drwxr-xr-x 4 clint staff 136 25 Nov 2003 .jpi_cache/
-rw-r--r-- 1 clint staff 20 30 Nov 17:20 .lpoptions
-rw-r--r-- 1 clint staff 193 9 Apr 17:56 .recentf
drwx------ 3 clint staff 102 23 Nov 2003 .ssh/
-rw-r--r-- 1 clint staff 1461 17 Jun 2004 .start_bibsphere.log
-rw-r--r-- 1 clint staff 2048 27 Jun 2004 .user60.rdb
drwx------ 32 clint staff 1088 14 Apr 18:36 Desktop/
drwx------ 50 clint staff 1700 9 Apr 17:56 Documents/
-rw-r--r-- 1 clint staff 678912000 15 Apr 18:40 Downloads 2004-07-22.dmg
-rw-r--r-- 1 clint staff 678912000 15 Apr 18:37 Journal PDFs.dmg
drwx------ 53 clint staff 1802 13 Apr 12:24 Library/
drwx------ 22 clint staff 748 17 Mar 14:42 Movies/
drwx------ 5 clint staff 170 6 Aug 2004 Music/
drwx---rwx 3 clint nobody 102 1 Feb 11:59 Network Trash Folder/
drwx------ 9 clint staff 306 12 Nov 16:36 Pictures/
drwxr-xr-x 12 clint staff 408 21 Mar 16:18 Public/
drwxr-xr-x 7 clint staff 238 18 Dec 2003 Sites/
drwxrwxrwx 2 clint nobody 68 1 Feb 11:58 TheVolumeSettingsFolder/
-- ------(End included text)----------


The ".bash_history" and ".bash_profile" files contain no reference to startup items (and I'm running tcsh, anyways).

What gives?

Thanks for any and all help you can give me!

Best wishes,
Clint

--
Dr. Clinton C. MacDonald | <mailto:clint DOT macdonald AT sbcglobal DOT net>


_______________________________________________
yellowdog-general mailing list
[email protected]
http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general
HINT: to Google archives, try  '<keywords> site:terrasoftsolutions.com'


_______________________________________________ yellowdog-general mailing list [email protected] http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general HINT: to Google archives, try '<keywords> site:terrasoftsolutions.com'

Reply via email to