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 08-06-2006, 08:11 PM
rdlsmith rdlsmith is offline
Registered User
 
Join Date: Jun 2006
Posts: 47
another mount/unmount question

Okay I know this subject has been dealt with over and over but I still don't understand how to do what I need to do.

I have an external HD that I want to mount before the SD! job and unmount after the SD! job.

From my reading here I was able to create two applescripts that will mount and unmount. I saved them as applications. I can run them from the Finder by clicking on them and they work fine.

The problem is, the mount script doesn't run before SD! tries to access it.

Is there a way to have SD! run the mount script before it does anything?

I read the following from Dave:

"If you're doing this scheduled, Control-click the settings package in the Scheduled Copies folder (in Library/Application Support/SuperDuper!). Then edit the Copy Job.applescript you find in there. Add your commands to mount/unmount to the documented areas at the top of the script.

Save the script file, then go into SD! Uncheck and re-check the schedule checkbox (Edit the schedule). That'll re-compile the script for you, and you should be all set."

I don't see the Copy Job.applescript you speak of. I see my scheduled job but what do I edit that with? That may have nothing to do with what I'm trying to do.

Here's my mount script:

set targetDisk to "LaCie Backup"
tell application "Finder"
if not (exists the disk targetDisk) then
try
do shell script "diskutil mount `disktool -l | grep '" & targetDisk & "' | sed 's/.*\\(disk[0-9s]*\\).*/\\1/'`"
end try

repeat while not (exists the disk targetDisk)
delay 1
end repeat
end if
end tell

Here's my unmount script:

set targetDisk to "LaCie Backup"
tell application "Finder"
if (exists the disk targetDisk) then
eject targetDisk
delay 2
end if
end tell

Again, those scripts work fine when selecting in Finder.

Thanks much,

Randall
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
Yet another iTunes/SuperDuper! question JJJJS General 6 06-22-2006 08:37 AM
Copy Newer, Copy Different ... one more question arnaud General 6 05-09-2006 04:30 PM
YASQ (Yet Another Script Question) Maxy General 7 03-16-2006 11:18 AM
Partition Question (& General Question) thornomad General 3 09-24-2005 10:49 AM
Easy (I think) Newbie Question: B/U 2 Vols? villageidiot General 3 08-26-2005 06:38 PM


All times are GMT -4. The time now is 04:20 AM.


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