View Full Version : [Resolved] Programmate css in applescript

Apr 27, 2012, 03:29 PM
:apple: Hi, I wannt to make a Coca Applescript based Webview Application(in Xcode). In that I wannt
to hide the Youtube searchfield. The css code for that is:
#masthead-search-bar, #masthead-user-bar {
display: none;
visibility: hidden;

but how can I get that css code in my applescript application

This is that what I've allready programmed:
property myWebView: missing value

on videosBotton_(sender)
Tell myWebView to setMainFrameUrl_("http://youtube.com/")
Tell myWebView to -- here should come the css code
end videosBotton_