Hey all,
I'm assuming this is a simple question, but I can't find any good documentation online on it.... I'm trying to write an applescript to automatically back up a copy of my notes for classes to a flash drive whenever its plugged in. The problem is that the directory path for the source file has a space in it, and Applescript is bouncing back an error "Expected " but found unknown token."
Here's the relevant portion of the script:
ignoring application responses
tell application "Terminal"
activate
do shell script "rsync -a /Users/Sitryd/Documents/07-08 2L/\ Constitutional\ Law/Constitutional\ Law\ Notes.doc /Volumes/Backups/"
end tell
end ignoring
It's hiccuping right after the \ in the "07-08 2L/\" sequence (i.e. at the first space), but I can't figure out how to have applescript just pass that sequence normally to terminal.
Thanks!
I'm assuming this is a simple question, but I can't find any good documentation online on it.... I'm trying to write an applescript to automatically back up a copy of my notes for classes to a flash drive whenever its plugged in. The problem is that the directory path for the source file has a space in it, and Applescript is bouncing back an error "Expected " but found unknown token."
Here's the relevant portion of the script:
ignoring application responses
tell application "Terminal"
activate
do shell script "rsync -a /Users/Sitryd/Documents/07-08 2L/\ Constitutional\ Law/Constitutional\ Law\ Notes.doc /Volumes/Backups/"
end tell
end ignoring
It's hiccuping right after the \ in the "07-08 2L/\" sequence (i.e. at the first space), but I can't figure out how to have applescript just pass that sequence normally to terminal.
Thanks!