Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting icon with make file



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Setting icon with make file (From: Tron Thomas <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.