An applescript to change the background color for all finder windows

I'll start off by telling you what I am trying to achieve, then show you what I've tried.
I have a macbook with several HDD's attached. what I want is for each of those hdd to have a specific finder window background color. so no matter where I am in that hdd the background color will always be the same. so for instance if I set the background color of hdd 2 to blue then as long as I see a blue background I know that I'm within hdd 2.
I've tried setting up an applescript to do this but can only get it to change the open finder window, and none of the subfolders have their backgrounds changed.
here is what I have so far:
tell application "Finder"
tell the icon view options of the front Finder window
set the background color to {52942, 54484, 31097}
end tell
end tell
so how do I get this to apply to all subfolders without opening each one and running the script.
thanks in advance for any and all help with this

According to this article:
http://docs.info.apple.com/article.html?path=AppleScript/2.1/en/as2039.html
it seems that the various options can only be set while the window is open and in icon view.
Rather than manually opening the window of every single folder on the hard drive, it should be possible to write a script to open every folder in sequence, make sure it is in icon view, change its background, then close its window. I have never been any good at the "actions within actions" procedure needed for folders within folders, so maybe someone else with the necessary knowledge and experience might be able to assist in this regard. Such a script would probably take a few minutes to complete while it ran through "every folder of every folder", but it sure would be quicker to have the process automated than to do it by hand - computers are really good at repetitive tasks (as long as the instructions are accurate, of course!).
On the other hand, you might like to try the following:
open a few windows in icon view, choose Show View Options in the View menu (I'm in System 10.4), click the radio button All Windows, click the Color radio button under Background, then choose your color. It might achieve what you are trying to do.

Similar Messages

  • I have trouble reading in Black and White. changing the background color for all

    I have trouble reading in Black and White. On my PC I can change the background  color (and I am not just talking about for a word or pages document) but for eveything so anything that was a white background I can put in what ever color I like but it still prints in Black and white.. I can't see how to do this on the Macbook air. on my PC I do this in display. Sort of putting colored film over the screen I dont know what to do. Can anyone help?

    Hello Floridamacbookpro,
    You may be interested in the 'invert colors' Accessibility feature. This can be invoked by pressing the Control, Option, Command, and 8 keys on your keyboard. This only affects your display, and does not have any affect on printed items.
    Mac OS X displays inverted image colors (white on black, reverse type)
    http://support.apple.com/kb/HT3488
    Cheers,
    Allen

  • Change the background color for HToggleButton as State changed

    Hi , I want to change the background color of HToggleButton or HGraphicButton as its state changed as normal to focus and then focus to normal and same with actioned state .It is possible to change the image with different states but how can I do the same thing to change background color .I'll appreciate any help regarding this with thanks in adv.

    Satya,
    i_x denotes first column and not characctersitic 1.
    Also I am not sure if the check is to be for IS_SUM.
    Use Get_Cell_info class instance and then use the data returned by the same for checking IS_SUM and then change the cellstyle.
    Another thing to look out for is , the required change might be needed on DATA_CELL and notcharacteristic_cell.
    Arun
    Assigning points is a way of saying thank you on SDN

  • Changing the hightlight color for all existing highlighted text

    Is there a quick way to change the hightlight color of all existing highlighted text in a document? Thanks.

    Never mind I found it. Open the Comment panel, select all existing comments, right-click and select Properties, change to your desired setting, click OK.

  • How can i change the background colour of all folder windows at once

    how can i change the background colour of all old folder windows at once?

    There are, however, thousands of calendar apps available in the App Store. They use the same data that the built in app does. Perhaps one would better meet your needs.
    Best of luck.

  • Is there any way to change the default folder for new finder windows...

    ...Or even set a different folder as the "home folder"?
    I am recovering from an incredibly messy archive and install which refused to allow me to save my old user accounts, instead moving them all into "Previous Systems". In my haste to get the machine working again I just dragged and dropped my old home folder into the /users/ directory and changed the "short name" of the new account to match it. IT worked, but now I have an incredibly irritating problem. That is now indeed my home folder, as appears in the sidebar of all finder windows, albeit under my new short name instead of my old one. All my documents in iWeb, Garageband, etc are working now and default to the new folder.
    However, Finder has not recognized this, and every time I open a new Finder window or anything like that it defaults to the home folder created by the reinstall, which is now locked to this account (so all the folders have a red no entry sign on them). I would very much like to tell Finder to ignore this now defunct folder and default to my actual home folder instead - is there a way to do this without actually moving or changing any folders? Like a preference setting somewhere? I know there's the "Advanced Options" pane in Leopard but I've been completely unable to find anything like it in Tiger

    Finder > Preferences > new Finder Window opens
    [Recover from renaming your Home folder|http://www.thexlab.com/faqs/renamehomerecovery.html]
    [My home folder and desktop are different than before|http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh1952.html]
    [Return to Default Desktop, Apparent Loss of Home Directory|http://support.apple.com/kb/TS1876]
    [ChangeShortName tool|http://www.danfrakes.com/ChangeShortName.html]
    Message was edited by: Limnos

  • How do I change the background color for the knockout effect in Final Cut Pro?

    One person suggested to me before to change the video player background in the preference section. It did change the color in the preview, but once I export it. It reverts back to its original color.
    I want to change the black background you see in the photo below to a white background. PERMANENTLY (meaning even after I export the video, it remains white)
    It is the knockout effect: the video is playing within the text.
    PLEASE HELP!!! It's has been frustrating me for a long time.

    FRom the Generators browser you put one of the generators underneath the video. You can use the Custom Generator and set the color to white.

  • How to change the background color for lookup column options in sharepoint 2007

    Hi,
    I have a custom List with 10 fields,and in the edit form we want to display only 6 fields,
    So I have customized it with sharepoint designer 2007 ,designed a new custom edit form(Insert->ShaerPoint Controls->Custom List Form)
    We are using IE8 Browser,and the site has JQuery 1.8 loaded .
    The lookup columns is getting rendered as textbox and dropdown arrow image,instead of select html element.
    When we click on arrow image,its displaying the values magically,So I am unable to highlight the options with text "ABC" in yellow background color
    basically in the input textbox its storing all the lookup values as "ID|value "in choices attribute (I saw this in browser dev tools)
    I tried to set the textbox color everytime it loses focus using blur,however its always returning the previous value instead of current selected value.
    Is there any way we can achieve this,Any solutions/thoughts
    Thanks everyone..

    hi i bet you need to amend your jquery script to get onclick values and put it with like append HTML if you want to use Jquery.
    Also did you know you could use javascript in calculated column with type number?
    Check:
    http://sharepointwijzer.nl/sharepoint-blog/tech/icc-html-calculated-column-sharepoint-view
    Imposible is nothing

  • How to change the background color only for one HTML-Portlet?

    Hi all,
    I have created a HTML-Portlet in my root-page. The root page have a style: Main-Style.
    I want to change the background-color only for this one HTML-Portlet:
    <html>
    <header><title>Test</title></header>
    <body bgcolor="#999999">
    Test
    </body>
    </html>
    But this does not work...
    When I use the CSS, then it will change the background-color for the root-page too.
    Thans
    Leonid Pavlov

    could you try this
    <table bgcolor="#999999">
    <tr>
    <td>
    test
    </td>
    </tr>
    </table>
    I don't think you need <html><header><title>Test</title></header>
    <body></body></html> for your HTML-Portlet.

  • How do I change the background color on pages I try to print or view?

    when I installed/downloaded Mozilla/Firefox originally, I "set" an option that changed the "background" color for certain pages that I download. When I try to print some pages, the entire background (or some blank spaces) is printed in a purple color. (It uses too much ink to print a page.)
    Can't find where I can change the original settings I used and make the background white, or no color at all.

    Specifically to add a background color, no. The only workaround I am aware of is to add a text box to the document format and expand it to cover the entire page. Available colors will be limited, and you may need to experiment with the opacity.

  • How can i change the background colors on my iphone. The new white is hard on my eyes. I dont care for the grey boxes either.

    how can i change the background colors on the new update? I find the white a bit much. Also is there anyway I can change the grey boxes they seem out of place.

    That makes me sad. thannk you

  • In Pages 09' how do I change the background colors on the templates?

    I have been trying to change the background on one of the templates from red to green for a while.  I can't figure it out and i can't find answers online any where that are helpful at all.  I just need to changes the background color to what I want it to be and not what the programs sets them too.  Any ideas?  I'm totally stumped!
    Thanks for the help!

    Hi Burke,
    Here's the result, using Peggy's suggestion:
    Process:
    Click on the thin strip of red to the left of the title ("THE THOMPSONS") to select the background.
    You'll see the small x in each corner, indicating the object is locked.
    Go Arrange > Unlock (or press option-command-L) to unlock the object.
    Click on the Fill Color well in the format bar, and choose a new colour from the palette.
    Go Arrange > Lock (or press command-L to re-lock the object.
    Save the result.
    Regards,
    Barry

  • How can i change the background color in the mobile windows adobe reader app? i want to change it from black to white but don't know how.

    really want to change the background color of my documents in the mobile app. ive tried to search the answer online, in blogs and other various 'life hacks' blogs or articles, but so far everyone is talking about the desktop version. i really want to figure this out. is there even an option for the mobile version for windows? the only editing icons when a document is open are: export, home, make public, search in document, highlight/strikethrough/underline/comment and continuous/single view. if there isnt an option to edit background color, can i suggest that the makers of the windows mobile version make one, and make it fast please! any help would be appreciated. -CHANGE BACKGROUND COLOR

    hi, thanks for helping me ...
    i have used the above url and made changes to my OAF page, but i didn't get the desired output and its also giving as the above code output .
    i kept OraBgGrayVeryDark in Css style in property inspector for every region including PageLayout and i also did some changes in cabo/styles/*.css classes.
    eventhough it is picking the color upto footer level only and it is not applying for advanced table also.
    can anyone please give your views in this..

  • How to change the background color of a cell based on other cell background

    Hi,
    Sorry if this is a basic question - I am new to XML. I want to create a table column, with no data in it. I then want to change the background color of the column based on the background color of other columns. I.E.
    - If there are 3 or less cells in this row that are not green, color this cell green.
    - If there are 4 or less cells in this row that are not green, and 3 or less are not red, color this cell yellow.
    - If there are 4 or less cells in this row that are not green, and 3 or more are red, color this cell red.
    If there are 5 or more cells in this row that are not green, color this cell red.
    Many thanks for any assistance.

    Okay - I have this resolved.
    1. Create two variables (Yellow and Red):
    <?xdoxslt:set_variable($_XDOCTX, 'Yellow', 0)?>
    <?xdoxslt:set_variable($_XDOCTX, 'Red', 0)
    2. For each cell, set the background based on their individual traffic light criteria, and update the associated color variable by 1. By default the backgrd color is set to Yellow so I only have to check for the lower and upper bounds:
    <?choose:?>
    <?when:number(CHECKED_IN)<=1?>
    <?attribute@incontext:background-color;'Lime'?>
    <?end when?>
    <?when:number(CHECKED_IN)>3?>
    <?attribute@incontext:background-color;'Red'?>
    <?xdoxslt:set_variable($_XDOCTX, 'Red', xdoxslt:get_variable($_XDOCTX, 'Red') +1)?>
    <?end when?>
    <?otherwise?>
    <?xdoxslt:set_variable($_XDOCTX, 'Yellow', xdoxslt:get_variable($_XDOCTX, 'Yellow') +1 )?>
    <?end otherwise?>
    <?end choose
    3. I now want a cell that is Red if any of the cells in the row is red. Its yellow of there are 3 or more yellow cells in the row, and no reds. Otherwise its green. First, create an empty cell and make the default color green. Then add:
    <?if: number(xdoxslt:get_variable($_XDOCTX,'Red')) > 0?>
    <?attribute@incontext:background-color;'Red'?>
    <?end if?>
    <?if: number(xdoxslt:get_variable($_XDOCTX,'Yellow')) >= 3 and number(xdoxslt:get_variable($_XDOCTX,'Red')) = 0?>
    <?attribute@incontext:background-color;'Yellow'?>
    <?end if?>
    4. Finally, reset the variables for the next row:
    <?xdoxslt:set_variable($_XDOCTX, 'Yellow', 0)?>
    <?xdoxslt:set_variable($_XDOCTX, 'Red', 0)

  • How to change the background color of a desktop??

    any ideas how to change the background color of a desktop?? Now the default color is blue. I couldn't fine the API in JDesktopPane on doing that..
    JDesktopPane desktop = new JDesktopPane(); //(textArea);

    Try the method setBackground. For me it's work.

Maybe you are looking for

  • Problems syncing with iTunes 8

    My iPhone used to be able to plug into iTunes and the normal occurrence of the 'sync in progress' screen would show up and continue syncing as normal. Ever since iTunes 8, I plug n my iPhone and the screen goes off and iTunes freezes without successf

  • I did not find any difference from my iPad 2 and iPad 3?

    I did not find any difference from my iPad 2 and my iPad 3, I am wondering did they sell me the same iPad

  • Cannot download tells me invalid serial number

    Will not let me download, says invalid serial number

  • Auto configuration messages

    Hello, I'm trying to use the automatic configuration messages feature of Nokia website, configuring web/email/mms of a new phone. It seems that from Italy access to the service is not possible (since long ago, weeks). Why? Thanks!

  • CS4 Web premium prices

    I have moved this from the newgrounds forums since no one knew what I was talking about. Sorry if this is in the wrong fourm, there was no general/ Web premium forum, just individual product forums. I want CS4 Web Premium for christmas, and I am allo