Re: Setting icon with make file
Re: Setting icon with make file
- Subject: Re: Setting icon with make file
- From: Brian Stern <email@hidden>
- Date: Thu, 9 Nov 2006 16:15:42 -0500
At 7:22 PM -0800 11/8/06, Tron Thomas wrote:
>> tell application "Finder"
>> update file "MyHD:Applications:Adobe Photoshop CS2:Plug-Ins:MyPackage"
>> end tell
>>
>>
>I tried copying and touch all sorts of files and folders in the
>application bundle and nothing would cause the Finder to update the icon
>for the application. I will try the AppleScript command and see how
>that works. It seems that if it so difficult for the Finder to
>determine when a bundle is updated there should be an explicit and
>obvious command that can be issued from the Terminal that would cause
>this to happen.
>
Try this in a shell script or in the Terminal. Replace $1 in the Terminal
with the full posix path to the file/folder to be updated.
osascript -e "tell app \"Finder\" to update posix file \"$1\""
--
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