ChokingMyTrap
Technical User
Hey,
Im trying to make an applescript to backup my Suitcase prefs, then another one to restore the prefs from the backup.
Just not working right and im not sure what im doing wrong. It creates my backup folder but hangs on copying the files to it.
--Applescript to backup--
try
do shell script "mkdir ~/Library/Preferences/Suitcase_Pref_Restore"
end try
try
do shell script "cp ~/Library/Preferences/Suitcase\\ Preferences/*.* ~/Library/Preferences/Suitcase_Pref_Restore"
end try
--End Backup Script
The other file will work when I know what im doing wrong here. I have a good idea it has to do with the \\, im used to just doing one \ for spaces, but applescript wont comple it like that.
What am I doing wrong
Cheers
Im trying to make an applescript to backup my Suitcase prefs, then another one to restore the prefs from the backup.
Just not working right and im not sure what im doing wrong. It creates my backup folder but hangs on copying the files to it.
--Applescript to backup--
try
do shell script "mkdir ~/Library/Preferences/Suitcase_Pref_Restore"
end try
try
do shell script "cp ~/Library/Preferences/Suitcase\\ Preferences/*.* ~/Library/Preferences/Suitcase_Pref_Restore"
end try
--End Backup Script
The other file will work when I know what im doing wrong here. I have a good idea it has to do with the \\, im used to just doing one \ for spaces, but applescript wont comple it like that.
What am I doing wrong
Cheers