Resolved Programmate css in applescript

Discussion in 'Mac Programming' started by Applescripter, Apr 27, 2012.

  1. Applescripter, Apr 27, 2012
    Last edited: Apr 29, 2012

    macrumors newbie

    Joined:
    Apr 27, 2012
    #1
    :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_
    
     

Share This Page