Still getting the AppleScript syntax error, after resetting LaunchServices DB w/Onyx
... and pulling these "do shell script" lines back out of "Copy Job.applescript" eliminates the syntax error dialog when I try to schedule the backup. So what am I doing wrong:
Code:
on beforeRunningCopy() If I must, I suppose I can do it outside of SD. But it seems like the kind of thing I ought to be able to do here or somewhere inside the app. (Alas, trying to use the "Run shell script before copy starts" checkbox option doesn't mount the drive in time for SD to notice it I guess.) |
You get an error when compiling the script?
|
1 Attachment(s)
Yes:
"Failed to schedule automatic copy. An error occurred while trying to schedule the copy for automatic execution. If you modified the AppleScript, please endure that the script syntax is correct and try again." Image attached. |
Try compiling it again, and then send me a System Profiler report to the support email address.
|
Emailed. But I'm guessing this will be the part you're interested in:
Code:
console.log: |
Yep. And if you open Script Editor, and paste your script line in, you'll see it gives the same error. Try doubling the backslash.
|
I think I am seeing similar issue with saving scheduled job - I had SD 2.5 installed before, with scheduled jobs. I then upgraded my iMac from Leopard to Snow Leopard 10.6.2, and then upgraded SD to latest version through update menu. After that, I deleted the older scheduled jobs through Scheduler menu of SD, and then tried to create a new scheduled job, when I got the error message as mentioned in this thread. I then used Onyx to rebuild LaunchServices, restarted the mac, and tried again to save scheduled job. Still the same issue. Will appreciate finding out what debugging steps are, to get to the bottom of this issue.
I found this in SD log: | 12:36:59 PM | Info | EXCEPTION: SDAppleScriptTemplateLoadError, reason: Unable to load AppleScript template: <CFBasicHash 0x16a49bc0 [0xa0bdeee0]>{type = mutable dict, count = 4, entries => 2 : <CFString 0xa01087e8 [0xa0bdeee0]>{contents = "NSAppleScriptErrorRange"} = NSRange: {13486, 8} 4 : <CFString 0xa01087a8 [0xa0bdeee0]>{contents = "NSAppleScriptErrorNumber"} = <CFNumber 0x16a3cf70 [0xa0bdeee0]>{value = -2741, type = kCFNumberSInt16Type} 5 : <CFString 0xa01087b8 [0xa0bdeee0]>{contents = "NSAppleScriptErrorMessage"} = <CFString 0x16a76700 [0xa0bdeee0]>{contents = "Expected end of line but found identifier."} 6 : <CFString 0xa01087c8 [0xa0bdeee0]>{contents = "NSAppleScriptErrorBriefMessage"} = <CFString 0x18d0d4b0 [0xa0bdeee0]>{contents = "Expected end of line but found identifier."} } |
Try deleting your existing copy of SD, emptying your trash, restarting your Mac and reinstalling.
|
It worked after I followed above steps of deleting and reinstalling. Thanks!
|
All times are GMT -4. The time now is 08:09 AM. |
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.