Techsurvivors

Archives => 2003 => Topic started by: Gary S on December 08, 2003, 05:00:04 PM

Title: OSX.2.8 Won't Hold Window Settings
Post by: Gary S on December 08, 2003, 05:00:04 PM
I'm running X.2.8.

I've been having trouble with one window not holding it's settings....it's the Menu bar->Go->Computer window.

It's nothing earth shattering but it bugs me. Also after I do some filesharing the Icons in the Window become all jumbled up.

I don't have a jumbled screenshot but i have 2 that show what the problem looks like:

After setting the way I want them

After I close and open the Window

Anyone know how to fix this?  huh.gif

I've run DiskWarrior and rpaired Perms a number of times since this started happening a month or so ago.

TIA smile.gif
Title: OSX.2.8 Won't Hold Window Settings
Post by: pendragon on December 08, 2003, 06:07:04 PM
Gary, Just curious what happens when you select "All Windows" rather than "This Window Only." Do ya still have the problem?

Harv
Title: OSX.2.8 Won't Hold Window Settings
Post by: Gary S on December 08, 2003, 06:16:38 PM
I just tried all Windows Harv, and yes I still have the problem after choosing "All Windows".

The other 2 users on this computer don't have the problem.
Title: OSX.2.8 Won't Hold Window Settings
Post by: pendragon on December 08, 2003, 06:21:25 PM
Now that is strange. Curious and curiouser. Thinking.gif I'll keep thinking...such that it is.

Harv
Title: OSX.2.8 Won't Hold Window Settings
Post by: kps on December 08, 2003, 07:36:15 PM
Two choises....that may or may not work.

1. Open ~/Library/Preferences/com.apple.finder.plist in TextEdit. [the tilde or ~ stands for your HOME directory.]

In TextEdit scroll down to this section and change the IconSize from 32 to 60

CODE
<key>DesktopViewOptions</key>
    <dict>
  <key>ArrangeBy</key>
  <string>grid</string>
  <key>BackgroundFlags</key>
  <integer>0</integer>
  <key>BackgroundType</key>
  <string>DefB</string>
  <key>FontSize</key>
  <integer>12</integer>
  <key>IconSize</key>
  <integer>32</integer>
  <key>PropertiesLocation</key>
  <string>botm</string>
  <key>ShowPreviewIcon</key>
  <false/>
  <key>ViewMoreInfo</key>
  <false/>
    </dict>


Save and relaunch the finder from the Force Quit window under the Apple menu.

2. If that does not work, trash the Finder preference file altogether and redo all your finder prefs.
Title: OSX.2.8 Won't Hold Window Settings
Post by: Spartacus on December 09, 2003, 01:44:33 AM
I know this problem.

I still have it in Panther, too.
But so far, I couldn't recognize a pattern. Some windows ignore the global settings, other work just fine.
Furthermore, the size of the window that opens when I click on the Finder icon in the dock is much larger than the window that opens when I double-click the HD icon.

Like Gary said, it's nothing earth shattering but it's rather annoying.
Title: OSX.2.8 Won't Hold Window Settings
Post by: Gary S on December 09, 2003, 07:48:52 AM
I'll try that KPS later today when I get home. Thanks.

I'll let you know how it comes out, or in or whatever.  wink.gif
Title: OSX.2.8 Won't Hold Window Settings
Post by: Scott on December 09, 2003, 09:58:21 AM
It's a bug in the OS effecting a lot of people. Some windows stick and some don't. OSX is still a baby. smile.gif
Title: OSX.2.8 Won't Hold Window Settings
Post by: Gary S on December 09, 2003, 05:40:34 PM
kps,

I can't open com.apple.finder.plist in TextEdit. I tried the Control Key->Open with and tried TextEdit and it won't open it.

It opened with OmniOutliner when I double clicked on it. huh.gif
Title: OSX.2.8 Won't Hold Window Settings
Post by: kps on December 09, 2003, 06:32:07 PM
Maybe that's why the finder can't write your changes to the pref file? Do you have all your prefs show as OmniOutliner? May not be a huge deal, but could explain why your prefs aren't sticking.

Use GetInfo to change the file association back to a plain text file , TextEdit or BBEdit (if you have it). You could just trash it and start over again, hopefuly the file association will remain as a "default document" a blank doc icon.
Title: OSX.2.8 Won't Hold Window Settings
Post by: Gary S on December 09, 2003, 09:45:55 PM
kps,

QUOTE
Do you have all your prefs show as OmniOutliner?


No. Most of them look like generic prefs without icons. Some have TextEdit icons etc.

Should TextEdit be the default app to open all my prefs? Some are TextEdit and some are not.

I've trashed the Finder prefs and it still exibits the same behavior in that window.
Title: OSX.2.8 Won't Hold Window Settings
Post by: Gary S on December 09, 2003, 10:01:07 PM
kps,

I booted into OS9.2.2 and trashed the Finder prefs and that window seems to be holding the settings for now. smile.gif

I'll see how it goes tommorrow.

 thanx.gif
Title: OSX.2.8 Won't Hold Window Settings
Post by: Gary S on December 09, 2003, 10:37:21 PM
I nailed it down to MacJanitor. Everything was fine in that window and then i ran MacJanitor monthly scripts and the window in question reverted to the small icons again. I ran permissions afterwords.
Title: OSX.2.8 Won't Hold Window Settings
Post by: kps on December 09, 2003, 10:47:52 PM
Did you "force quit" (relaunch) the Finder after trashing the pref in OS X? This step is necessary in order for the finder to create a new pref file. You shoudn't have to boot into OS 9.

Apple's .plists are in XML formated text, mine show up as BBEdit icons, others show up as TextEdit docs, some as blank document icons (generic), some are binary files and have an application specific icon (Adobe products) and some even have the old OS 9 type pref icon. If you install the Apple developer tools, most of the Apple .plists will change to the PListEditor icon (a developer app used for creating and editing .plists). It all depends on the application, but here we were dealing with Apple's stuff, so it's a XML formated text document with the .plist extention. Believe it or not, Panther is still capable of using the old 'creator codes' as well as the file extensions.

BTW, the Finder hides a lot of file extensions from view. For example the 'Terminal.app' shows in the finder as 'Terminal', but run a directory listing in the shell and all the extensions are visible. Come to think of it, I think you can also turn this on in Finder's preferences.

Anyhow, glad it's working for you.
Title: OSX.2.8 Won't Hold Window Settings
Post by: kps on December 09, 2003, 11:00:17 PM
Don't know why the monthly script would do that...all it does is rotate log files and counts logins and since you dont have monthly.local it does not even run that part. Monthly.local would be your own personal script which you would write for your own use. Maybe it's something in MacJanitor that doesn't jive with Panther...don't know, don't use it.

Here's the whole monthly script:

CODE
#!/bin/sh -
#
#    @(#)monthly    8.1 (Berkeley) 6/9/93
#

PATH=/bin:/usr/bin:/sbin:/usr/sbin
host=`hostname -s`

echo ""
echo "Doing login accounting:"
if type sort>/dev/null; then
    ac -p | sort -nr +1
else
    ac -p
fi

echo ""
echo -n "Rotating log files:"
cd /var/log
for i in wtmp install.log; do
    if [ -f "${i}" ]; then
    echo -n " $i"
    if [ -x /usr/bin/gzip ]; then gzext=".gz"; else gzext=""; fi
    if [ -f "${i}.3${gzext}" ]; then mv -f "${i}.3${gzext}" "${i}.4${gzext}"; fi
    if [ -f "${i}.2${gzext}" ]; then mv -f "${i}.2${gzext}" "${i}.3${gzext}"; fi
    if [ -f "${i}.1${gzext}" ]; then mv -f "${i}.1${gzext}" "${i}.2${gzext}"; fi
    if [ -f "${i}.0${gzext}" ]; then mv -f "${i}.0${gzext}" "${i}.1${gzext}"; fi
    if [ -f "${i}" ]; then mv -f "${i}" "${i}.0" && if [ -x /usr/bin/gzip ]; then gzip -9 "${i}.0"; fi; fi
    touch "${i}" && chmod 640 "${i}" && chown root:admin "${i}"
    fi
done
if [ -f /var/run/syslog.pid ]; then kill -HUP $(cat /var/run/syslog.pid | head -1); fi
echo ""

if [ -f /etc/monthly.local ]; then
    echo ""
    echo "Running monthly.local:"
    sh /etc/monthly.local
fi
Title: OSX.2.8 Won't Hold Window Settings
Post by: Gary S on December 11, 2003, 04:59:26 PM
Thanks for the explaination Karl.

I'm running X.2.8, not Panther.
The extensions are as you describe ie., Photoshopp etc. but none of mine are BBEdit and most of them are generic.

I'll do the trash of the Finder prefs again and Quot the Finder and see if that works. I could use Cocktail instead of MacJanitor to run my scripts.

Could I make an Apple script of what you posted as the monthly script and run that?
If so, do you have a daily and weekly or would the monthly take care of them all?
Title: OSX.2.8 Won't Hold Window Settings
Post by: kps on December 11, 2003, 06:46:35 PM
The three maintenance scripts all do different things and must be run separately.

They must run as root, so I don't know if you want to compromise your machine's security by putting your admin password into an Applescript. Aside from that, they are unix shell scripts and I don't think it's possible to duplicate them in Applescript alone.

The best solution I found is to change the times all three scripts run, to a time when the machine is most likely to be on. So if you check your email, let's say, every day at 9:00AM, then change the daily script to run at 9:15AM from 3:15AM. It'll run in the background and you wont even know it ran...AND there'll be no performance hit either. If you miss a day or even a couple, it's no big deal.

The weekly script is probably the most important and should be run on schedule. This script is set to run at 4:30AM each Saturday. But to be honest I've missed a week or two here and there with no ill effects.

The monthly script, we discussed. It doesn't do a heck of a lot, except for trashing old log files.

I posted the directions on how to change all this before in:

This thread

and This Thread

If you're interested or have further questions, I'll post comprehensive instructions and after you're done, you'll never again need MacJanitor.
Title: OSX.2.8 Won't Hold Window Settings
Post by: Gary S on December 12, 2003, 06:51:14 AM
KPS,

I will look at those threads in a minute and see if I can change the times. Just a few minutes ago I ran the MacJanitor Tasks in succession and copied them. Here are the results...I don't know if they will make much sense to you or not but they are kind of self-explanitory as to what they are doing. I don't understand them but you may.

MacJanitor daily tasks

Backing up NetInfo data

Checking subsystem status:

disks:
Filesystem    1K-blocks     Used    Avail Capacity  Mounted on
/dev/disk0s5   60046560 18147752 41642808    30%    /
fdesc                 1        1        0   100%    /dev
/dev/disk1s9    2096705   402652  1694052    19%    /Volumes/OS 9.2
/dev/disk1s10   1048327     8487  1039840     0%    /Volumes/Scratch Disk
/dev/disk1s11   6290159    77039  6213120     1%    /Volumes/Other System
/dev/disk1s12  15725333  1191363 14533970     7%    /Volumes/Applications Disk
/dev/disk1s13  14976829  2859627 12117202    19%    /Volumes/Backup Disk

Last dump(s) done (Dump '>' file systems):

mail:
/etc/mail/sendmail.cf: line 93: fileclass: cannot open '/etc/mail/local-host-names': Group writable directory

network:
Name  Mtu   Network       Address            Ipkts Ierrs    Opkts Oerrs  Coll
lo0   16384 <Link#1>                          2880     0     2880     0     0
lo0   16384 localhost   ::1                   2880     -     2880     -     -
lo0   16384 fe80:1::1   fe80:1::1             2880     -     2880     -     -
lo0   16384 127           localhost           2880     -     2880     -     -
gif0* 1280  <Link#2>                             0     0        0     0     0
stf0* 1280  <Link#3>                             0     0        0     0     0
en0   1500  <Link#4>    00:03:93:1c:ac:c4       11     8       76     0     0
en0   1500  fe80:4::203 fe80:4::203:93ff:       11     -       76     -     -
en0   1500  192.168.0     192.168.0.100         11     -       76     -     -
en0   1500  (16)00:00:ff:82:2d                  11     8       76     0     0


Rotating log files: system.log

Cleaning web server log files:
Done

MacJanitor Weekly tasks

Subject: Admin weekly run output

Rebuilding locate database:

Rebuilding whatis database:

Rotating log files: ftp.log lookupd.log lpr.log mail.log netinfo.log

Done

MacJanitor Monthly Tasks

Subject: Admin monthly run output

Doing login accounting:
   total        0.00

Rotating log files: wtmp

Done

MacJanitor run all tasks

Subject: Admin.local. daily run output

Removing scratch and junk files:

Backing up NetInfo data

Checking subsystem status:

disks:
Filesystem    1K-blocks     Used    Avail Capacity  Mounted on
/dev/disk0s5   60046560 18147784 41642776    30%    /
fdesc                 1        1        0   100%    /dev
/dev/disk1s9    2096705   402652  1694052    19%    /Volumes/OS 9.2
/dev/disk1s10   1048327     8487  1039840     0%    /Volumes/Scratch Disk
/dev/disk1s11   6290159    77039  6213120     1%    /Volumes/Other System
/dev/disk1s12  15725333  1191363 14533970     7%    /Volumes/Applications Disk
/dev/disk1s13  14976829  2859627 12117202    19%    /Volumes/Backup Disk

Last dump(s) done (Dump '>' file systems):

mail:
/etc/mail/sendmail.cf: line 93: fileclass: cannot open '/etc/mail/local-host-names': Group writable directory

network:
Name  Mtu   Network       Address            Ipkts Ierrs    Opkts Oerrs  Coll
lo0   16384 <Link#1>                          5004     0     5004     0     0
lo0   16384 localhost   ::1                   5004     -     5004     -     -
lo0   16384 fe80:1::1   fe80:1::1             5004     -     5004     -     -
lo0   16384 127           localhost           5004     -     5004     -     -
gif0* 1280  <Link#2>                             0     0        0     0     0
stf0* 1280  <Link#3>                             0     0        0     0     0
en0   1500  <Link#4>    00:03:93:1c:ac:c4       20   156       99     0     0
en0   1500  fe80:4::203 fe80:4::203:93ff:       20     -       99     -     -
en0   1500  192.168.0     192.168.0.100         20     -       99     -     -
en0   1500  (16)00:00:ff:82:2d                  20   156       99     0     0


Rotating log files: system.log

Cleaning web server log files:
Done

Subject: Admin weekly run output

Rebuilding locate database:

Rebuilding whatis database:

Rotating log files: ftp.log lookupd.log lpr.log mail.log netinfo.log

Done

Subject: Admin monthly run output

Doing login accounting:
   total        0.00

Rotating log files: wtmp

Done
Title: OSX.2.8 Won't Hold Window Settings
Post by: kps on December 12, 2003, 06:30:18 PM
Gary, by running "MacJanitor Run All Tasks" you ran daily, weekly and monthly twice. No need for that, either run the individual scripts or run ALL tasks. All MacJanitor is, is a GUI interface to those three unix scripts, nothing more.

A lot of what those scripts do is completely irrelevant to the average Mac user. FTP logs are only relavent if you're using your Mac as an FTP server, mail is only relavent if you turned on sendmail, which is off by default, it has nothing at all to do with the Mail application or your email from your ISP....'whatis' database is important if you're using the CLI to find unix commands, etc.  Most of those logs will be empty, but there are also relavent logs and relavent processes, such as backing up the netinfo database.

Anyway, if you want to change when cron runs these scripts, let me know.
Title: OSX.2.8 Won't Hold Window Settings
Post by: kps on December 15, 2003, 06:07:01 PM
Gary and others...

Check this out:

http://www.macworld.com/2003/12/secrets/handson/
Title: OSX.2.8 Won't Hold Window Settings
Post by: Gary S on December 16, 2003, 04:25:21 PM
Thanks kps.

I'm going to try that CronniX amd see if I can set it to do the tasks at different times.
Title: OSX.2.8 Won't Hold Window Settings
Post by: Gary S on December 16, 2003, 09:22:53 PM
I can't download CronniX. It starts to download as code instead of a Disk image. sad.gif
Title: OSX.2.8 Won't Hold Window Settings
Post by: kps on December 16, 2003, 11:48:52 PM
I had no problem downloading with Safari from here:

http://www.koch-schmidt.de/cronnix/download.html

Make sure you're downloading the .dmg and not the .dmg.gz file.

I never used it, so I had a look at it. From trying the app I would recommend that you  be careful editing the system cron file and don't create any user cron files. Cronnix, by default, will open a new blank crontab file under your user name. If you save it, cron will try to run it and the system crontab file. If there are no commands in the user crontab, you may start logging error messages in Console.

To make changes to the system crontab, open it from: Menu bar-->File-->Open System Crontab. You'll be prompted for the admin passwd.

I still think the safest and easiest way to change system files is in the Terminal... these GUI front ends tend to obfuscate things to the degree where it's easier to make a mistake there than in the CLI.
Title: OSX.2.8 Won't Hold Window Settings
Post by: Gary S on December 17, 2003, 07:00:35 PM
I downloaded it with Safari.

KPS,
I know what you mean about the obfuscation, even if I haven't heard the word obfuscate used in a long time. wink.gif

It looks like I could reeeeely screw things up with that CronniX.

Maybe it's time I should start to learn about using the Terminal. I can't screw anything up there....right. wink.gif  laugh.gif

I guess they call it the Terminal for a reason.
Title: OSX.2.8 Won't Hold Window Settings
Post by: pendragon on December 17, 2003, 08:43:45 PM
Perhaps wishful thinking, but now that 10.3.2 is released, I wonder if this window issue has been addressed/resolved. Thinking.gif

Harv
Title: OSX.2.8 Won't Hold Window Settings
Post by: kps on December 17, 2003, 09:07:26 PM
QUOTE
Maybe it's time I should start to learn about using the Terminal. I can't screw anything up there....right.


 biggrin.gif

The reason I think it's safer to use term, is that YOU remain in control, rather than an application to which you "hand over" the control when you type in that admin passwd...

Cronnix is relatively simple and safe in terms of changing the time values, so go ahead Gary, you'll be fine...just don't change any other values.
Title: OSX.2.8 Won't Hold Window Settings
Post by: Gary S on December 18, 2003, 11:07:56 AM
I'll try just the Time values and that's it.

thanks KPS! smile.gif