View Single Post
  #4  
Old 03-01-2005, 12:12 PM
macfeller macfeller is offline
Registered User
 
Join Date: Feb 2005
Posts: 49
[QUOTE=dnanian]Well, mf, that particular error just looks like something that gets sent to the console, and not an error in SD! as such (in either case, it's not an SD! error but a scripting problem).

For sure not SD!, didn't mean to imply. The line was copied from SD!'s log.

[QUOTE=dnanian]I don't have enough information here, though, to diagnose. Where exactly are you putting these commands? Are they in a shell script and set in the "Customization Script" part of options? (They have to be...)

It is an AppleScript saved as a Run Only Application. Not a shell script. It is set Run customization script in the Options pane.

[QUOTE=dnanian]Can you run that shell script by hand?

It runs in Applescript Studio and it runs stand-alone. That is, I can select it in Finder, double-click it, and it does what I want. My first attempt was such a script merely telling Finder to sleep. It worked fine but I got the same error. I gave up until I noticed the other thread here about shell scripts and someone's script not working because it couldn't get SD! to quit. So, I added that to the script. (Well, I saw this particular point in VersionTraker, I think.)

Quote:
Originally Posted by dnanian
A bit more info and I should be able to point you to a solution...
Below is the text from the script. Initially saved as an Application in AS Studio it would not run by double-clicking (error said "Connection is Invalid."). When saved as Run Only as Application, when double-clicked it quits SD! and then puts the machine to sleep. But when called on by SD! via Run custom script, the error occurs.

Dang! I just double-clicked it and it gave the Connection is Invalid. Being as I am I immediately double-clicked it again and it ran. I wonder if that has anything to do with it. I think I'll head for some Applescript forums. When messing with the script saved as Application (Run only not checked in dialog window) every single attempt gave the Connection is Invalid. Only once has a trial of the Run Only save gave that error.

Don't spend too much time onme. I can wait for v.2 to come out. And now the text, clearly nothing fancy!

tell application "SuperDuper!"
quit
end tell
tell application "Finder"
sleep
end tell
Reply With Quote