PDA

View Full Version : changing background color of a window in finder




vnraju
Aug 20, 2007, 02:09 AM
how to change the background color of a window in finder?



MongoTheGeek
Aug 20, 2007, 09:07 AM
how to change the background color of a window in finder?

Click on the window. Under the view menu select show view options. There is a radio button at the bottom. Only Available in Icon View.

in applescript

tell application "Finder"
set background color of icon view options of window 1 to {0, 65534, 65534}
end tell

vnraju
Aug 21, 2007, 12:00 AM
thanks for reply ....but i want to change it (back ground color change) in Cocoa using obj-C
any suggestions will be appreciated..

kainjow
Aug 21, 2007, 12:16 AM
NSAppleScript (http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSAppleScript_Class/Reference/Reference.html) is your friend.

vnraju
Aug 21, 2007, 01:14 AM
but my plan is coding in obj-C in Cocoa

whooleytoo
Aug 21, 2007, 07:08 AM
but my plan is coding in obj-C in Cocoa

But you can still run AppleScripts from your Objective-C code; using the tips above.

(This flexibility is a good thing, you can use Cocoa, Carbon, AppleScript & Unix shell scripts all in one application).

MongoTheGeek
Aug 21, 2007, 07:53 AM
But you can still run AppleScripts from your Objective-C code; using the tips above.

(This flexibility is a good thing, you can use Cocoa, Carbon, AppleScript & Unix shell scripts all in one application).

Coming is leopard is Script Bridge which has got to be one of the most kick ass things to happen to AppleScript since... hmm... its creation

/wrote code to build and send applescript commands
//Page and a half tell the scriptable text editor to turn a few words red.
///In MacApp 2.0 --Object Pascal FTW
////Its no easier in Carbon