I'm learning how to write some simple scripts with Hazel and am having trouble with what I thought is fairly basic.
I'm triggering this script when the file Budget.numbers is detected in /Users/xxxx/Documents/Personal Docs/
This is script
- Code: Select all
filename=$(basename “$1”)
echo $1
echo $filename
The results I get from the log file is:
/Users/xxxx/Documents/Personal Docs/Budget.numbers
Personal
Why is my $filename output "Personal" instead of "Budget.numbers"?