Keep up with VYL's Updates

1.07.2008

Automatically Scheduled Script to Download and Backup All Your Google Notebook Pages

Link
This is a tutorial to apply the learnings from this page to make a FULL OUT Automatically scheduled automator application that runs in the background every week, automatically quits terminal and saves all your downloaded notebooks in a seperate file. You don't have to ever put time into downloading and backing up your notebook files and also never have to put time into worrying about losing them with this auto-backup system!

Also needs:

1. Personally tweaked "wget_online_notebook_BU_script.term" file that is opened with terminal.

2. A set directory for the downloaded files to go into (detailed in the "wget_online_notebook_BU_script.term" file).

3. To export this automator workflow as a program and then assign this automator application to an iCal weekly repeated event by going to "Add Alarm" and selecting "Other..." adn then this automator program.

4. Make Public by "Sharing Options" under Google Notebooks.

The Automator Script.





This is a beautifully written automator program that you attach to an iCal event with a scheduled alarm (repeating weekly) to automatically download all of your google notebooks, and back them up in your own personal folder on a local drive! Sweet!

The applescript code is hand-crafted myself, and quite beautiful if I say so so myself. It makes the downloading of your notebooks literally invisible and unintrusive to whatever work you're currrently doing because the applescript immediately hides the Terminal application and then it it quits the program automatically after a 12 second delay. Downloading 5 notebook seperate calendars took about 5 seconds so 12 is sufficent. If you, for some insane reason, have like 500 notebooks, you'll want to change the delay 12 to a longer delay so the program won't quit while terminal is downloading those programs.

The terminal script.

Open a terminal window. Save that window as... (give it a reasonable name like, "wget_online_notebook_BU_script.term". Then open that file with a text editor.

The highlighted text (note it's location . VERY IMPORTANT. Is)
ExecutionString
HERE. Insert Your wget Commands Here
is all you need to change.

The format is
wget -k -p -erobots=off -np -N -nd -O "Path to where you want the notebooks downloaded"/"Notebook1.html" "INSERT URL of Public Notebook web page"; NEXT WGET Note book;
I learn by example, so I thought all the example screenshots would be helpful.

Here's the raw wget_online code:




WindowSettings


AutoFocus
YES
Autowrap
YES
BackgroundImagePath

Backwrap
YES
Bell
YES
BlinkCursor
NO
BlinkText
YES
CleanCommands
rlogin;telnet;ssh;slogin
Columns
80
CursorShape
0
CustomTitle
Terminal
DeleteKeySendsBackspace
NO
DisableAnsiColors
NO
DoubleBold
YES
DoubleColumnsForDoubleWide
NO
DoubleWideChars
YES
EnableDragCopy
YES
ExecutionString


wget -k -p -erobots=off -np -N -nd -O /Users/john_kooz/Documents/bu_121407/archive/google_notebook_download_BU/2GTD_ActionSteps.html http://www.google.co.uk/notebook/public/04197923271425679077/BDRvqIgoQxp-NxfUi?hl=en; wget -k -p -erobots=off -np -N -nd -O /Users/john_kooz/Documents/bu_121407/archive/google_notebook_download_BU/1GTD_Inbox.html http://www.google.co.uk/notebook/public/04197923271425679077/BDQTrIgoQ4MmMxfUi?hl=en; wget -k -p -erobots=off -np -N -nd -O /Users/john_kooz/Documents/bu_121407/archive/google_notebook_download_BU/3GTD_Projects.html http://www.google.co.uk/notebook/public/04197923271425679077/BDSUCIwoQyI-PxfUi?hl=en; wget -k -p -erobots=off -np -N -nd -O /Users/john_kooz/Documents/bu_121407/archive/google_notebook_download_BU/5GTD_Research.html http://www.google.co.uk/notebook/public/04197923271425679077/BDQTrIgoQoJ-QxfUi?hl=en; wget -k -p -erobots=off -np -N -nd -O /Users/john_kooz/Documents/bu_121407/archive/google_notebook_download_BU/4GTD_Tickler.html http://www.google.co.uk/notebook/public/04197923271425679077/BDQWIIwoQhsGNxfUi?hl=enhl=en


FontAntialiasing
NO
FontHeightSpacing
1
FontWidthSpacing
1
IsMiniaturized
NO
KeyBindings

$F708
[25~
$F709
[26~
$F70A
[28~
$F70B
[29~
$F70C
[31~
$F70D
[22~
$F70E
[33~
$F70F
[34~
$F729

$F72B

$F72C
[5~
$F72D
[6~
F704
OP
F705
OQ
F706
OR
F707
OS
F708
[15~
F709
[17~
F70A
[18~
F70B
[19~
F70C
[20~
F70D
[21~
F70E
[23~
F70F
[24~
F710
[25~
F711
[26~
F712
[28~
F713
[29~
F714
[31~
F715
[32~
F716
[33~
F717
[34~
F728
[3~
F729
scrollToBeginningOfDocument:
F72B
scrollToEndOfDocument:
F72C
scrollPageUp:
F72D
scrollPageDown:
^F702

^F703

~F704
[17~
~F705
[18~
~F706
[19~
~F707
[20~
~F708
[21~
~F709
[23~
~F70A
[24~
~F70B
[25~
~F70C
[26~
~F70D
[28~
~F70E
[29~
~F70F
[31~
~F710
[32~
~F711
[33~
~F712
[34~

Meta
-1
NSFixedPitchFont
Monaco
NSFixedPitchFontSize
10
OptionClickToMoveCursor
NO
PadBottom
3
PadLeft
5
PadRight
3
PadTop
3
RewrapOnResize
YES
Rows
24
SaveLines
10000
ScrollRegionCompat
NO
ScrollRows
0
Scrollback
YES
Scrollbar
YES
Shell

ShellExitAction
2
StrictEmulation
NO
StringEncoding
4
TermCapString
xterm-color
TerminalOpaqueness
1
TextColors
0.000 0.000 0.000 1.000 1.000 1.000 0.000 0.000 0.000 0.000 0.000 0.000 1.000 1.000 1.000 0.000 0.000 0.000 0.666 0.666 0.666 0.333 0.333 0.333
TitleBits
76
Translate
YES
UseCtrlVEscapes
YES
VisualBell
NO
WinLocULY
676
WinLocX
94
WinLocY
0
WindowCloseAction
1





Sites, Tutorials, and Web Aids I found invaluable in making this awesome automator:

  1. Applescripts
  2. Master WGET
  3. Basically a tutorial to make the Terminal file (but without iCal and Automator features that this tutorial has.

No comments:

Mailing List



Validate%20Your%20Life
Quantcast