Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > How to stop folders from uninstalled application being packages

How to stop folders from uninstalled application being packages
Thread Tools
Brass
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status: Offline
Reply With Quote
Apr 16, 2007, 06:16 PM
 
I guess I could post this in the OS X forum, but since the problem was created by an application I developed, I thought I'd start here.

I've got an application that used be document based, and created package documents (ie, each document was a folder full of files, but appeared in the Finder as a single item). This worked fine.

However, I recently decided that the application really doesn't need to be document based, and it now simply saves all its support files in the same file format that it used for documents but just in the one location (under '~/Library/Application Support/'.

I think I've done all that's required to make the support folder NOT appear as a package, but any time I create a folder (using the Finder, eg) that has a name ending with what used to be the extension for the documents of my application, the new folder is treated as a package! Even if the application is completely deleted (trash emptied), any such new folder is treated as a package.

However, if I create a new folder with this extension using a different Mac OS X account, it is NOT treated as a package.

This implies that the problem is related specifically to my account. But I cannot find any preference file that could be doing this.

Does anyone have any ideas what could be causing this and how to fix it?

(I've tried restarting and that doesn't help either )
     
arcticmac
Dedicated MacNNer
Join Date: Apr 2004
Status: Offline
Reply With Quote
Apr 16, 2007, 11:27 PM
 
Two things to try.

First, try making sure the direcory doesn't have a "contents" directory inside of it. That tends to make the Finder treat it as a package.

The other thing to try would be to delete the LaunchServices database.
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Apr 17, 2007, 12:19 AM
 
LaunchServices is my guess.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Brass  (op)
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status: Offline
Reply With Quote
Apr 17, 2007, 12:23 AM
 
the problem exists for empty folders so...

Where is the launchservices database, and is deleting it going to cause any other problems?
     
Brass  (op)
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status: Offline
Reply With Quote
Apr 17, 2007, 12:30 AM
 
I've had a look in ~/Library/Preferences/com.apple.launchservices.plist (after dumping it to XML text), and I can't see anything in it that would relate to my application.

I loaded it into TextEdit, and did a Find, and it came up empty.
     
Brass  (op)
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status: Offline
Reply With Quote
Apr 17, 2007, 12:37 AM
 
hmmm... removing ~/Library/Preferences/com.apple.LaunchServices.plist and logging out/in did not help...

any other ideas?
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Apr 17, 2007, 01:38 AM
 
See this hint. I believe deleting the database will also reset the "Open With" setting for document types.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Brass  (op)
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status: Offline
Reply With Quote
Apr 17, 2007, 06:59 PM
 
Originally Posted by Chuckit View Post
See this hint. I believe deleting the database will also reset the "Open With" setting for document types.
aha! Thanks for pointing me to that. the lsregister command fixed it immediately.

Looks like Apple need to get this sort of thing working a bit better. It's not something anyone should ever have to worry about.

thanks!
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 10:14 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,