Tip: CSSEdit + WebKit Nightly

Is it possible to use a newer version of WebKit with CSSEdit? Yes, and it’s easy! Here’s what you need to do:

1) Download the latest WebKit from nightly.webkit.org.
2) Install the WebKit application somewhere, in Applications for example.
3) Run the following Terminal command (replace /Path/to with the appropriate locations):

env DYLD_FRAMEWORK_PATH=/Path/to/WebKit.app/Contents/Resources WEBKIT_UNSET_DYLD_FRAMEWORK_PATH=YES /Path/to/CSSEdit.app/Contents/MacOS/CSSEdit

4) That’s it! You’re now able to design your style sheets with the latest WebKit CSS improvements.

Great tip, but how can i switch back to the normal behaviour?

Is it:
env DYLD_FRAMEWORK_PATH=/Path/to/Safari.app/Contents/Resources WEBKIT_UNSET_DYLD_FRAMEWORK_PATH=YES /Path/to/CSSEdit.app/Contents/MacOS/CSSEdit

Rolf

Rolf, this tip will only make CSSEdit use the WebKit Nightly during that session. It’s not persistent, so you’ll need to execute it every time.

Jan Van Boghout

Thanks for clearing that up Jan. This way it is very easy to switch between versions of Webkit.

Reinier Meenhorst

Thanks for the tip! : ) It’d be great to have this as a preference from within CSSEdit. WebKit usually resides in /Applications anyway.

Leo Valen

hi. will you make version for Windows XP (or Vista) ?
i haven’t mac :(

SvT

SvT, as mentioned before: CSSEdit is Mac-only and will stay that way.

Jan Van Boghout

I tried this and got the following

imac:/Users/lanny root# env DYLD_FRAMEWORK_PATH=/Applications/WebKit.app/Contents/Resources WEBKIT_UNSET_DYLD_FRAMEWORK_PATH=YES /Applications/CSSEdit.app/Contents/MacOS/CSSEdit

2007-07-22 12:45:51.450 CSSEdit[6171] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0×44f), port = 0×3103, name = ‘com.macrabbit.CSSEdit.ServiceProvider’
See /usr/include/servers/bootstrap_defs.h for the error codes.

2007-07-22 12:45:51.516 CSSEdit[6171] CFLog (99): CFMessagePortCreateLocal(): failed to name Mach port (com.macrabbit.CSSEdit.ServiceProvider)

Lanny Rosicky

Recent versions of WebKit have changed where they save the framework, so you’ll need to revise the command. There’s two pieces of info you need to replace in this command: 1) the path to WebKit (if it’s not in your root Applications directory); 2) the relevant OS version that you’re using (works for 10.4, 10.5, or 10.6).

DYLD_FRAMEWORK_PATH="/Applications/WebKit.app/Contents/Frameworks/10.6/" WEBKIT_UNSET_DYLD_FRAMEWORK_PATH="YES" open -a CSSEdit

Ian Beck