Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Applescripter

macrumors newbie
Original poster
Apr 27, 2012
2
0
: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:
Code:
#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:
Code:
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_
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.