aranhamo said:
Here we introduce the user (as opposed to application and OS developers). How many times have you heard users complain that they can't move an app out of /Applications, or organize apps in /Applications into a million different subdirectories? (They <i>can</i> do all this, but it often has unintended consequences, like breaking Software Update)
I know this is slightly off-topic, but that issue should be quite easy to solve.
Software Update could find any application easily enough by searching -
- Initially, in its default install location (/Applications, presumably).
- If not found, check for a Preference file for that app (one line of code), if the preference file exists, it would know the app has been, and probably still is installed.
- Each time the app launches, it could write its location to the preference file; then Software Update (or anything else) could find the app by looking in the preference file.
- If all else fails, do a search (by application name or bundle identifier) of the Applications folder and subfolders for the app (10 lines of code, at most). This shouldn't take longer than a second or two, even for the busiest Applications folder.
The way Software Update currently works is the result of lazy coding. If the Apple engineers who wrote the original Inside Macintosh volumes & guidelines met the current Apple engineers, they'd slap them about the place with a wet fish for this laziness.