While trying to recover lost data typed into a web page on Safari, I stumbled across this forum and one response was worth remembering for later:
"If you wish to open cache.db you'd use the sqlite3 command. It comes with your mac and it's easy to use if you know SQL. Open Terminal an type in: "cd ~/Library/Caches/com.apple.Safari;sqlite3 cache.db". it'll open up the database and you can type ".tables" to show the table namesThis is a handy way to search through your old safari data by dumping everything in a file and then grepping the contents. The exact commands I used to accomplish this were:then ".output FILENAME" then "select * from TABLENAME;" and it'll output to the desired file you could do "foo.txt" as the file name. I have 3 tables, cfurl_cache_blob_data, cfurl_cache_schema_version, cfurl_cache_response, in it so i did the steps three times starting with the .output command for three separate files..."
cd ~/Library/Caches/com.apple.Safari sqlite3 cache.db .output temp.txt select * from cfurl_cache_blob_data;It's kind of surprising to see what's actually in your cache! I had no idea that the pages I surf were being stored to this extent. Turned out to be very handy.
But scary.
Other useful commands:
.help
.schema cfurl_cache_blob_data
.exit

2 comments:
Hey.. I'm trying to do something similar to what you posted on StackOverflow. So did you find any way you can see the shell command that Flash Builder 4 runs given the run configuration?
Are you referring to this post?
In flex, it turns out that flex builder just basically opens a browser pointed the webpage for your RIA. For example, the command used by Flex on my system is:
/usr/bin/open -a /Applications/Safari.app http://localhost:8401/client/main.html?debug=true
If you need to do other flex tasks, such as compiling or generating HTML wrappers, one approach would be to try using Flex Ant to get the job done.
Post a Comment