Default custom icon
Hi, I restored from time machine my downloads folder.
If i recall there was a custom icon for the "download' folder. Something maybe with an arrow.
Now its just a plain blue folder. Any ideas how to restore the default looking icon?
Joe Chiarelli wrote:
Hi, I restored from time machine my downloads folder.
If i recall there was a custom icon for the "download' folder. Something maybe with an arrow.
Now its just a plain blue folder. Any ideas how to restore the default looking icon?
log out/in.
Similar Messages
-
Applying custom icons to all files of a type
I used to use ResEdit back int he day - and have used various tools on Mac and Windows to change icons. BUt I am stuggling with a default custom icon option for Mac OS X.
I have a set of farily simply icons for use with a number of file types that I use a lot - csv, psl, pti, tp3, xml, cfr, and others and I would like to always have newly created files get the custom icon.
Ideally this would be based on the extension - and they are not all from the same app.
I am not afraid to use the terminal or edit package contents. Although some of them are windows apps - and I already have a custom set in the virtual machine.
Some of the solutions I have seen out there such as Candy Bar seem to be only for application and folder settings.
In a couple cases - such as the .cfr and .pti - the apps do not have an open method where you can double click on the file and have it open - so I woudl be okay with something like reprogramming TextEdit to have the necessary icons and plist updates. Although when I tried to edit the plist file in TextEdit - all I did was render TextEdit unusable.
any help in the right direction will be appreaciated - I find it very helpful when I create 30 to 40 files ( a group of 5 differnet file types for each option ) to have icons that help me determine which ones I need to run a macro against - and which to send the customer - and which to upload to the vendor - etc.
Also missing the colorful icons in the sidebar and iTunes - as well an Unsanity Haxies - guess what audio feedback does make me more productive or at the very least more certain that the system is behaving as I expect.A new Cocoa-AppleScript application can be created from the AppleScript Editor > File > New from Template > Cocoa-AppleScript Applet menu item, pasting in the following script:
-- set icon
on run -- application double-clicked
tell current application's NSOpenPanel's openPanel()
setFloatingPanel_(true)
setTitle_("Choose file items to set an icon for:")
setPrompt_("Choose") -- the button name
setDirectoryURL_(current application's NSURL's URLWithString_(POSIX path of (path to desktop)))
setCanChooseFiles_(true)
setCanChooseDirectories_(false)
setShowsHiddenFiles_(false)
setTreatsFilePackagesAsDirectories_(false)
setAllowsMultipleSelection_(true)
set theResult to runModal() as integer
if theResult is current application's NSFileHandlingPanelCancelButton then tell me to quit -- cancel button
set theFiles to URLs() as list
end tell
repeat with eachFile in theFiles -- coerce the file paths in place
tell eachFile to set its contents to its |path|() as text
end repeat
open theFiles
end run
on open theItems -- items dropped onto the application
try -- get a path to the image to be used for the icon
set imageFile to POSIX path of (choose file with prompt "Select an image file for the icon:" of type "public.image")
on error -- cancel button
tell me to quit
end try
set errorList to {} -- this will be a list of problem files, if any
repeat with eachItem in theItems
if not setIcon(imageFile, eachItem) then
set end of errorList to (eachItem & return)
end if
end repeat
if errorList is not {} then -- oops, show items where there was a problem
display alert "Error setting icon." message "Icons of the following items were not set:" & return & return & errorList as text
end if
tell me to quit -- done
end open
to setIcon(imageFilePath, fileItemPath) -- set the icon of a file item
set mySharedWorkspace to current application's NSWorkspace's sharedWorkspace()
set myImage to current application's NSImage's alloc's initWithContentsOfFile_(imageFilePath)
try
return mySharedWorkspace's setIcon_forFile_options_(myImage, fileItemPath, 0) as boolean
on error errorMessage
return false
end try
end setIcon
After saving, the resulting application can be double-clicked, or you can drop files onto it (the script can't be run from the script editor). It can be tweaked further to include image files in the application bundle to select from (the icon images can be any image, not just icon files), or to be used in the Finder's toolbar, but for now the basic application should get you started. -
Mac OS 10.6.8 - Word 2011 customized icons reset to default
Customized icons for Word 2011 documents (obtained thru command-I and new icon pasting) disappear and are replaced by generic icons after reboot – how to keep customized icons thru and thru?
That particular Java update has broken MySQL database connections and several Java-powered websites (as opposed to websites that rely on other than "all Java").
I used my CarbonCopyClone to restore to "before the update".
If you cannot, then you need to find applications that are ready for the Java update. I hear-tell that Firefix has or will soon have an update thet can use _29 correctly. -
I built an AS3 component and designed a custom icon.
Right-clicked symbol in library, selected component definition and
clicked on the icon button (under description) to set an icon.
When I select custom... my finder pops up and I can navigate
to any folder on my machine but I can't select an icon, all .pngs
(and all other files) are greyed out.
Possibly related, if I select one of the normal icons (button
or something) it sets the icon correctly but I then can't set the
icon back to the default icon and I still can't set a custom icon.
I originally created the icons in photoshop, but I've also
tried exporting them from Fireworks -- no luck. I also tried
finding the default icons in my installation and editing them but
sadly this didn't work either (maybe I looked in the wrong place).
I'm using CS3 on Mac -- please tell me this isn't a bug, I
really don't want to have to buy a windows copy of Flash just to
add an icon to a component.It is a bug. Nivesh at Adobe support was kind enough to email
me the solution: you need to enable Version Cue for file operations
(Preferences / General category / Enable Version Cue). -
Automatically create folders then attach custom icon to each folder.
This is my current working script, does anyone know how I can now add customer icons to the folders in Applescript
Many thanks
Matt
set theWeekNumber to ""
repeat
display dialog "Please enter the week number:" default answer theWeekNumber
set theWeekNumber to text returned of result
try
if theWeekNumber = "" then error
set theWeekNumber to theWeekNumber as number
exit repeat
on error
set thePrefix to "INVALID ENTRY! "
end try
end repeat
set theAFolder to "AFolder_WK" & theWeekNumber
set theBFolder to "BFolder_WK" & theWeekNumber
set theEnd to "_PSD"
set theEnd2 to "todo"
tell application "Finder"
make folder at folder "Studio:Users:matthewchild:Desktop" with properties {name:theAFolder & theEnd}
make folder at folder "Studio:Users:matthewchild:Desktop" with properties {name:theBFolder & theEnd}
make folder at folder "Studio:Users:matthewchild:Desktop" with properties {name:theAFolder & theEnd2}
make folder at folder "Studio:Users:matthewchild:Desktop" with properties {name:theBFolder & theEnd2}
end tellThe following script uses a handler that will set a custom icon to a file item. In this example, you are prompted for the icon file and the file item to set to the icon, but you can just pass the desired image and folder paths directly to the handler.
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
font-weight: normal;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px; height: 340px;
color: #000000;
background-color: #FFD891;
overflow: auto;"
title="this text can be pasted into the AppleScript Editor">
-- assign an icon to a folder or file (requires Developer Tools)
-- any image file can be used for the icon
property startingDirectory : (path to home folder) -- a place for the file choice dialogs to start from
on run -- example
try -- check for tools
get "/Developer/Tools/" as POSIX file as alias
on error
error "Developer Tools not installed"
end try
set iconFile to (choose file with prompt "Choose an image file for the icon:" default location startingDirectory)
if (do shell script "/usr/bin/file " & quoted form of POSIX path of iconFile) does not contain "image" then -- check image file
error "The icon file is not an image"
end if
tell application "Automator Runner" to tell open panel -- using this panel allows the choice of a file or folder
set floating to true
set can choose directories to true
set can choose files to true
set allows multiple selection to false
call method "setShowsHiddenFiles:" of it with parameters {false}
set title to "Select an item to set to the custom icon:"
set prompt to "Set Icon" -- this is actually the button text
activate
if (display it in directory startingDirectory) is 0 then -- cancel button
error number -128
else
my (setCustomIcon from iconFile to (it's path names as text)) -- just one item
end if
end tell
end run
to setCustomIcon from imageFile to destination
Set the icon of a destination file item to the image contained in imageFile
parameters - imageFile [various]: an imagefile for the icon (Finder alias or POSIX text)
destination [various]: a destination item to set to the icon (Finder alias or POSIX text)
returns [boolean]: true if icon is set, false otherwise
set imageFile to imageFile as text
if imageFile starts with "/" then -- check for POSIX file
set imageFile to imageFile as POSIX file as alias
else
set imageFile to imageFile as alias
end if
set destination to destination as text
if destination does not start with "/" then -- check for POSIX file
set destination to POSIX path of destination
end if
try
tell application "Finder" -- copy the icon image to a temporary file
(duplicate imageFile to (path to temporary items) with replacing) as alias
set tempImage to quoted form of POSIX path of the result
end tell
set tempResource to quoted form of (POSIX path of (((path to temporary items) as text) & "TempResource"))
do shell script "/usr/bin/sips -i " & tempImage -- add a Finder icon to the image
do shell script "/Developer/Tools/DeRez -only icns " & tempImage & " > " & tempResource -- get the icon resource
do shell script "/usr/bin/file " & quoted form of destination -- determine the destination file type
if the result contains "directory" then -- folder
set theTarget to quoted form of (destination & "/Icon" & return) -- create Icon\r file
set Command to "rm " & theTarget & "; " -- remove any existing custom icon
set Command to Command & "/Developer/Tools/Rez -a " & tempResource & " -o " & theTarget & "; " -- add resource file to a folder
set Command to Command & "/Developer/Tools/SetFile -a V " & theTarget & "; " -- make it invisible
else -- file
set Command to "/Developer/Tools/Rez -a " & tempResource & " -o " & quoted form of destination & "; " -- add resource to a file
end if
set Command to Command & "/Developer/Tools/SetFile -a C " & quoted form of destination -- set custom icon attribute
do shell script Command -- do it
on error errmess number errnum -- oops
log errmess
-- display alert "Error " & errnum message errmess buttons {"OK"}
return false
end try
try -- remove temporary files
do shell script "rm " & tempImage & space & tempResource
end try
tell application "Finder" to update (destination as POSIX file)
return true
end setCustomIcon
</pre> -
Custom Icon Images for Folders in KM
Hello Everyody,
I have to display folders such as Pesonal Documents, Public documents, Recently used, Favourites etc which are there in the entry point repository in KM. Right now all these folders are being displayed with the default icon image specified. I want to replace these default images with custom images but couldnt see any property where i can change the image path for these folders. I checked the details of all these folders and even went through the properties but there it shows only the default image name speciefied for that folder and no active settings where i can change the image path for custom icon. Kindly suggest how to implement custom image for KM folder icons.
Thanking you all in advance,
Regards,
Sarabjeet.Hi,
If I understood, you have a KM navigation iview, where some folders apperar. You want to change the icon for each of them differently.
For this do the following:
First have a look into the KM.navigation iview and get the layout set property. Go to System config->KM->Content management->User interface->Settings->LayoutSet and find the layout set you are using. Go to appropriate resource renderer and check the "<b>Icon setting</b>". Change it to: <b>iconreplace</b>.
Now get the KM details for your folders and change the <b>IconSource</b> property to your image Example:
/etc/public/mimes/images/add.gif
Voila...the icons for these folders are changed!
Hope this is your case.
Romano -
Custom icon for desktop shortcut
Hi All,
I have a link in the portal which when the end users click should create a desktop shortcut to the portal.
I used this to create the desktop shortcut
var WshShell = new ActiveXObject("WScript.Shell");
strDesktop = WshShell.SpecialFolders("Desktop");
var oShellLink = WshShell.CreateShortcut(strDesktop + "
Portal.url");
oShellLink.TargetPath = "URL to the portal";
oShellLink.Save();
By default we get the IE icon for this shortcut. I want a custom icon to be associated with this shortcut.
I can use oShellLink.IconLocation but the icon needs to be in every users c:\windows folder.
Does somebody know how can I add this custom icon?
Many Thanks,
AkhileshGoogle for Favicon
"TonyEB" <[email protected]> wrote in
message
news:fb57gl$ea4$[email protected]..
> Hi,
>
> How do you incorporate an Icon in to your website so
that when someone
> puts a
> web short cut on their desktop it changes from the
default to your
> customized
> one. Where in DW CS3 do you put this file?
>
>
> Thanks
>
> Tony
> -
Custom Icon for Lync Custom Menus
We can create custom menus in LYNC Client by setting some registry values. But we are not able set custom icons fro the same(instead of default ICON). Is there any to set custom Icon for Custom Menus.
Thanks in advance,No the icon is not configurable via the registry values.
-
Custom Icon Not Appear in iTune
I am ready to submit my apps but I am stuck because of one simple problem that I cannot solve.
When I go through Project > Export Release, the custom icon does not show up in iTune, but they are shown in my iPhone, iPod and iPad
The default icon appears in the iTune but not the one I designed.
I have already included the all the different size icons to your build (29, 48, 57, 72, 114, 128 and 512) and see if that solves your problem but this did not solve the problem.
Please help me!
Thank you very much.Hi,
I have tried setting 512x512 image in the app.xml and i was able to get the icon image in iTunes.
If you are using the same icon file in AIR and embedding it to set it dynamically at runtime then you might have an issue. In this case, please create a copy of same image and use it in app.xml file.
Let me know if this helps.
- Hari -
Custom Icon goes with usb peripheral from Mac to different Mac
Okay, so I can change the icon on my usb flash drive to show a custom icon each time I plug it into the same Mac day after day, but what if I want to change to a different computer, say my Mac at home, the icon comes up as the default icon. Can I lock the icon so that it will appear the way I want on any Mac I plug it into?
I took a look at the Adobe PS CS CD, and it did the same thing I do with some of my internal drives, namely, it has a custom icon on the CD ".VolumeIcon.icns" which displays when the CD mounts, just as my own ".VolumeIcon.icns" custom icons do for internal drives. However, when I added a custom .VolumeIcon.icns to my firewire drive the custom icon did NOT display. I tried quitting the Finder and relaunching it, no custom icon. Shutdown the computer and the firewire drive, next time I restarted the firewire drive and it mounted it was still displaying the regular firewire drive icon. Don't know if USB drives would behave like my firewire drive or like a CD, but I expect they will behave like the firewire drive.
Francine
Francine
Schwieder -
Custom icon settings ignored in taskbar
I added custom icons for Chromium and Gimp to my custom icon theme, but even if the custom icons are correctly shown in menus and short links, after I launch one of these programs the default icon is shown instead of the custom one into the taskbar.
Any idea what the cause of this may be?
Dunno if it is relevant, but it seems that this affect only non-kde applications
I'm a Kde 4.3 user.
Last edited by Wu (2010-05-21 18:52:19)Hi,
If I understood, you have a KM navigation iview, where some folders apperar. You want to change the icon for each of them differently.
For this do the following:
First have a look into the KM.navigation iview and get the layout set property. Go to System config->KM->Content management->User interface->Settings->LayoutSet and find the layout set you are using. Go to appropriate resource renderer and check the "<b>Icon setting</b>". Change it to: <b>iconreplace</b>.
Now get the KM details for your folders and change the <b>IconSource</b> property to your image Example:
/etc/public/mimes/images/add.gif
Voila...the icons for these folders are changed!
Hope this is your case.
Romano -
Hi, i am trying to get custom icon for specific nodes of a tree. In my customTreeCellrenderer that extends the default predecessor, i have this function. The problem is that, the icons are not set to the node i want but the node after that node. Anyone got any suggestions as to what i am doing wrong ?
Thanks, Dave
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) {
ImageIcon error = new ImageIcon("illegal.gif");
super.getTreeCellRendererComponent(tree, value, sel,expanded, leaf, row,hasFocus);
DefaultMutableTreeNode node = (DefaultMutableTreeNode) value;
GroupNodeObject obj = (GroupNodeObject) node.getUserObject();
if(node.getUserObject() instanceof GroupNodeObject){
if(obj.isIllegal()){
this.setLeafIcon(error);
this.setClosedIcon(error);
this.setOpenIcon(error);
}else{
this.setLeafIcon(getDefaultLeafIcon());
this.setClosedIcon(getDefaultClosedIcon());
this.setOpenIcon(getDefaultOpenIcon());
return this;
}may be the next node is instance of GroupNode!!
just incase, check the code if the error is assigning the nodes!
This code looks ok. -
How to hide the default arrow icon of af:tree node
Hi All,
I am using Oracle JDeveloper 11g R2.
I want to hide the arrow icon which is displayed by default with af:tree node. The use case is to display custom icons for all the nodes. The problem is that when I am customizing icons of tree node, it is showing arrow as well as the icon with each node. Which doesn't seems fine. Can any one help/guide on how to hide the default af:tree node arrow icon.
Thanks in advance.
Regards
Bilal
Edited by: Bilal on 29-May-2012 01:32Hi,
Use Css to change the icon style:
af|treeTable::expanded-icon {
content: url("/adf/1.gif");//content : none;
outline: none ;
af|treeTable::collapsed-icon {
content: url("/adf/2.gif");//content : none;
outline: none ;
af|treeTable::leaf-icon {
content: url("/adf/3.gif");//content : none;
outline: none ;
Regards,
Raj Gopal K -
Create a Custom Icon to Replace the Standard URL Icon in Dock
I would like to change the "springy thing"/URL icon in my dock to a custom picture showing the logo for the webpage for that particular "springy thing." Is it possible to change the spring to a custom icon? If so, how can I do this? Your help is greatly appreciated! Thanks.
iBook G4 Mac OS X (10.4.8)Generic urls dragged directly to the "Dock" will use that default icon (or whatever icon is substituted), but every url will use that same icon.
If the goal is to have separate urls in the "Dock", each with its own custom icon, try dragging a url to the "Desktop" first, which should result in the creation of a ".webloc" file. The file can be given a custom icon the usual way via "Get Info", and added to the "Dock", but note that this requires that the ".webloc" file be stored somewhere for that "Dock" shortcut to remain valid. -
Unable to set custom icon for system drive
Title says it all. Can't paste new custom icon onto drive icon in the Info panel-nothing happens. Any ideas?
When a custom icon is applied to a folder (including the "boot drive" icon, which is really just the top level folder), an invisible "Icon\r" file is created inside that folder (or a ".VolumeIcon.icns" in case of a volume - I missed this in the last post, sorry) and the "Custom Icon" file attribute is set. In order to do these things, a user must have sufficient privileges to modify the folder.
In Leopard, the default permissions are:<pre>
$ lsbom -d /Library/Receipts/boms/com.apple.pkg.Essentials.bom |grep "^. "
. 41775 0/80</pre>
The owner is "root", group is "admin", both have "read & write" privileges, and everyone else has "read only" privileges.
Similarly, in "Tiger":<pre>
$ lsbom -d /Library/Tiger/BaseSystem.pkg/Contents/Archive.bom |grep "^. "
. 41775 0/80</pre>
Nothing has changed. But furthermore, since the "sticky" bit is set, this might even mean that a custom icon set by one "admin" would only be removable by the same "admin" (though this isn't something I have tested). But either way, at a minimum, "admin" privileges would normally be required.
So if you had previously modified the permissions on the boot drive to allow non-admins to make changes, then certainly you woudn't have to have "admin" privileges to do this. But that is not the "normal" state.
Beyond that, it's hard to say why you can't make the changes even as an "admin" without at least knowing what the current permissions are on "/" and "/.VolumeIcon.icns"...
Maybe you are looking for
-
My work address and my email will not sync
I have a black berry curve and my new work email is <Personal Content Removed> and it will not sync for me to get emails on my blackberry. I tried using the enterprise and the internet options and does not work. When I use the enterprise I do get a
-
I recently Did a windows update to install Internet explorer 9. When my Computer Restarted, I opened Mozilla, because it is my preferred Browser, and pages such as the ones stated above started loading with just text with no layout. I cleared the cac
-
hy Experts, My self shivaraj patil and i am working on BW & EP as Team Leader since from last 7 months, i have read much about data warehousing concept , data modeling and ,extraction process, I want to be expert in BW modeling and extraction, Can yo
-
Fault cases identification using Sql query
Hi , i have data in below format.using below data to extract the fault cases. operator machine fromdate todate 1491 QC03 2014-09-02 02:51:00.000 2014-09-02 06:10:00.000 1427 QC03 2014-09-02 06:11:00.000 2014-09-02 07:17:00.000 1491 QC03 2014-09-02 11
-
The problem here is, 1st of all we allow users to choose a language. Then they can choose the skill group from 2 options. SO these are the two primary skills that we have now what we want to do is we have different agents with different language pref