Re: Cocoa-dev Digest, Vol 3, Issue 1329
Re: Cocoa-dev Digest, Vol 3, Issue 1329
- Subject: Re: Cocoa-dev Digest, Vol 3, Issue 1329
- From: Brian Stern <email@hidden>
- Date: Wed, 8 Nov 2006 00:09:43 -0500
>I tried touch the application folder as the last step in the make
>process. This did not change the icon. What else would work around the
>Finder bug?
Try touching the enclosing folder.
To monkey around with this some more open a Finder window and manipulate
the contents of the dir from the Terminal. Try touching a file, mkdiring
something, modifying the contents of the file or folder. mv-ing the name
of a file or folder. Notice which things the Finder notices.
This really isn't a Finder "bug." When does a folder become a package?
When it is created? No. When stuff is created inside it that packages
have? No. When stuff is created inside it and then the contents of that
stuff is written? I guess so. Do you really expect the Finder to pay
attention to every write to a file inside a folder that might turn that
folder into a package? This would keep the Finder pretty busy.
Creating packages isn't that common an event. It's done mainly by
developer tools, installers, and the Finder itself. Most of the time a
package already exists and is copied from one place to another. In the
case where they're created de novo the Finder just needs to be notified.
touch the enclosing folder to notify the Finder. Also an AppleScript like
the following works for me to get it to notice a package named MyPackage:
tell application "Finder"
update file "MyHD:Applications:Adobe Photoshop CS2:Plug-Ins:MyPackage"
end tell
--
Brian Stern
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden