Showing results in 'Blog'. Show all posts

The Macro that Wouldn't


Today, I was trying to run a simple macro, which inserts a footnote/endnote into a Word document. Each time I tried this macro a VBA 4605:v error was the result. The VBA editor would open and display the error's code. I am not a programmer, by trade, only amateur. The error hinged around an end of document location that MS Word could not find.

This is the macro's code, which was generated by "recording" the individual steps.

Tip: Ditto

Ditto is a utility that comes with Mac OS X, which copies entire directories from one place to another. When automated via shell script, ditto can form a very very basic backup tool.

Create the ditto command.

For example, "ditto /Users/jasonrw/Documents/ /Volumes/USBHDD/ditto/"

Test out the command and make sure it performs as expected. Place the syntax into a plain text file, preceeded by a #!/bin/bash and followed by an "exit" statement.


ditto /Users/jasonrw/Documents/ /Volumes/USBHDD/ditto/


Tip: Show Lion's Library

In Apple's latest version of Mac OS X, "Lion", the "Library" folder inside of each user's profile is hidden. ~/Library can be reached manually from the "Go to Folder..." menu item. A better option would be to have ~/Library not hidden at all. To do this, enter the following in the terminal.

sudo chflags nohidden ~/Library

Terminal will ask for your login password, or that of an administrator.

Please be careful with directly editing files in ~/Library. Errors in this part of Mac OS X can render features unable to function.