#16
|
||||
|
||||
Teamwork!
__________________
--Dave Nanian |
#17
|
|||
|
|||
Here's how I got it to work. The idle handler in the AppleScript checks whether SuperDuper is running; if so, it comes back after 2 secs to check again. When SD is gone, that must mean the share isn't being used any more. So then it ejects, then quits itself. (Replace "YourShare" with the name of your share.)
The Applescript needs to be saved as App, with "stay open" option active. Code:
global BackupInProgress, BackupPartPresent on goodbye() quit end goodbye on idle if BackupInProgress is false then tell application "Finder" if (exists the disk "YourShare") then eject "YourShare" set BackupPartPresent to false end if if (exists the disk "YourShare") then end if end tell goodbye() else tell application "System Events" to (creator type of processes) contains "SdPr" set BackupInProgress to the result -- beep 1 --return 2 end if return 2 end idle on run set BackupPartPresent to true tell application "System Events" to (creator type of processes) contains "SdPr" set BackupInProgress to the result idle end run Code:
open ~/path/to/TheAppleScript.app exit Actually this feature should really be built in! |
#18
|
|||
|
|||
Quote:
|
#19
|
||||
|
||||
Set it as the "after copy" shell script in the Advanced tab of Options.
__________________
--Dave Nanian |
#20
|
|||
|
|||
Quote:
But a dense reply... I have the applscript saved and it works fine when I manually launch it. The shell command I assumed would be copied and pasted into the "after copy" section under the Advanced tab. However, this brings up an open dialog box so do I just save the shell command as a text file and then point the "after copy" to that file? |
#21
|
||||
|
||||
Yes. You save it as a text file, mark it as executable (chmod +x the-file), and point to that.
__________________
--Dave Nanian |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Booting from backup | guruuno | General | 27 | 10-16-2009 11:53 PM |
SD! & HDD copy speed fun | DaleMeyn | General | 3 | 03-20-2006 04:24 PM |
Copy error and crash | offdahook84 | General | 3 | 10-01-2005 10:10 PM |
BackUp hangs at 3% | JimK | General | 10 | 09-27-2005 09:48 AM |
Error: No space left on device | tradervic | General | 11 | 06-29-2005 04:50 PM |