Address Book Backup

Hi all,
I'm having trouble getting the following to work, where I am looking at get Hazel to create a back up of my address book each day. I'm doing the following (pointing Hazel at the relevant backup folder):
If all:
1. Date added is before Today
2. Name is Address Book
Do the following:
3. Run shell Script
4. Embedded script:
(where username is my username obviously).
What am I doing wrong? (the shell script works in terminal fine but doesn't seem to work in Hazel)...
I'm having trouble getting the following to work, where I am looking at get Hazel to create a back up of my address book each day. I'm doing the following (pointing Hazel at the relevant backup folder):
If all:
1. Date added is before Today
2. Name is Address Book
Do the following:
3. Run shell Script
4. Embedded script:
- Code: Select all
filedate=`/bin/date "+%Y-%m-%d"`
cp -R "/Users/Username/Library/Application Support/AddressBook" "/Users/Username/Backups/Address Book Backup/Address Book $filedate.abbu"
(where username is my username obviously).
What am I doing wrong? (the shell script works in terminal fine but doesn't seem to work in Hazel)...