How i can find where CSS-file(s) of webpage in current tab in Safari are stored in cache-folder? It would be pointless to fetch those files from net since they are already in my disk.
I know how to find URL of CSS-file from source code of front most tab, but i can’t find CSS-files in disk.
Give us a path to the css file and the actual url in the HTML file and we might be able to figure something out. Links, as I’m sure you know, tend to be relative to the URL of the HTML file.
A URL with [ip or hostname]/bla.css is in the folder /Library/WebServer/Documents.
A URL with [ip or hostname]/~[username]/bla.css is in ~/Sites ( AKA /Users/[username]/Sites).
So knowing what address safari gives can allow you to get it’s location. Hope this helps.
Model: MacBook
AppleScript: 2.3
Browser: Google Chrome
Operating System: Mac OS X (10.6)
Thanks, but i think we are talking two different things.
Let say i surf to http://apple.com/ so now current tab in Safari shows this page and now i want to save to desktop all css files that are in that page: