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
#1 - February 2nd, 2007 at 9:50 PM
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.
#2 - February 2nd, 2007 at 11:31 PM
Jan Van Boghout
Thanks for clearing that up Jan. This way it is very easy to switch between versions of Webkit.
#3 - February 5th, 2007 at 12:41 AM
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.
#4 - February 16th, 2007 at 4:01 PM
Leo Valen
hi. will you make version for Windows XP (or Vista) ?
i haven’t mac
#5 - March 14th, 2007 at 8:55 PM
SvT
SvT, as mentioned before: CSSEdit is Mac-only and will stay that way.
#6 - March 18th, 2007 at 11:38 AM
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)
#7 - July 22nd, 2007 at 11:52 AM
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#8 - May 26th, 2010 at 11:17 PM
Ian Beck