• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Preference File Bug in 10.4.7
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Preference File Bug in 10.4.7


  • Subject: Preference File Bug in 10.4.7
  • From: Luther Fuller <email@hidden>
  • Date: Sun, 16 Jul 2006 17:25:47 -0500

On 6 Apr 2006, I commented on a problem, Subject: Mysterious Preferences File, where unwanted 'AppleNavServices' data was being written to my application's preference file. The unwanted data caused no problem, so I ignored the problem. In OS 10.4.7, something new seems to be happening that can't be ignored.

Here's what seems to be happening ...
1. When my application is launched, the first thing it does is call a 'getPrefsFile' handler that reads the CFBundleIdentifier from the bundle's Info.plist file and return an alias to the preference file.
2. If I call the handler that uses 'choose folder', then the Finder copies the original prefs file, then creates a new prefs file with the unwanted 'AppleNavServices' data.
3. The Finder fails to replace the old file with the new one. (I presume the new one is in a temp location.)
4. Subsequent launchings of my application result in an error that's hard to debug. The error is in the 'getPrefsFile' handler, but the Finder does NOT return errors to AppleScript, so the handler returns with an undefined result.
5. The problem is cleared if I do one of the following:
A. Restart B. Relaunch the Finder or C. Open the preferences folder. As the folder opens, you can see the old file disappear, then the new one appear.


I finally worked-around the problem by removing CFBundleIdentifier from my application bundle's Info.plist file and simply hard-wired the name of the preference file into my script. The Finder can no longer find the name of my preference file.

The bug seems to be step 3, above. Considering the bizarre behavior it causes, this must certainly be a bug. But, I don't know enough about the workings of the Finder to properly report this bug. Does anyone know more about what may be happening here?

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: scripting secure empty trash (was: no subject)
  • Next by Date: Replace word BUT with same pointsize/linespace
  • Previous by thread: Re: scripting secure empty trash (was: no subject)
  • Next by thread: Replace word BUT with same pointsize/linespace
  • Index(es):
    • Date
    • Thread