Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # requires py-appscript. assume this also will only run on >10.5.6 (or something modern)
- # I always wanted a cli tool to "dump" browser states without attempting to get into the complexities of
- # a particular datastore, given the concurrent usage of multiple browsers, each for specific tasks.
- import appscript
- print appscript.app("Camino").windows.first.current_tab.URL()
- # real easy, cuts the applescript junk, and the dictionary/translate tools provide you with it all.
- # now suckfari
- import appscript
- print appscript.app("Safari").windows.first.current_tab.URL()
Add Comment
Please, Sign In to add comment