Shirt Pocket Discussions  
    Home netTunes launchTunes SuperDuper! Buy Now Support Discussions About Shirt Pocket    

Go Back   Shirt Pocket Discussions > SuperDuper! > General

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-06-2008, 01:44 AM
jjj jjj is offline
Registered User
 
Join Date: Oct 2006
Posts: 12
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()
	-- Put your own code here that should execute just before running the copy.
	do shell script "diskutil mount /dev/disk1s3 /Volumes/Biggus\ Discus"
end beforeRunningCopy

on afterRunningCopy()
	-- Put your own code here that should execute just after running a successful copy.
	do shell script "diskutil unmount /Volumes/Biggus\ Discus"
end afterRunningCopy
I need to mount/unmount because this backup script is writing to a sparseimage on an external drive that should stay unmounted day-to-day. My other backup writes directly to a separate partition on this drive for a mirror backup, and I know SD handles the mounting/unmounting in that case automatically.

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.)
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A strategy for managing SD! jobs via AppleScript Syzygies General 15 05-01-2006 07:55 AM


All times are GMT -4. The time now is 01:31 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.