#13
|
|||
|
|||
And away the share goes! That did the trick. Yay!
Let me see if I understand (a) what happened and (b) what has to be done next. (a) What happened? (i) osascript = we're sending something to a program other than the shell. Applescript and the Finder, I think. (ii) <<77 = we're starting here, 77 is a delimiter (iii) tell the Finder to eject the volume -- that's what we want the other programs to do. (iv) 77 = the other delimiter; that's the end of what we're sending to the other program. (b) Now what comes next? We need to: (i) wait for 20 seconds or so (ii) run in the background. So ... Code:
#!/bin/sh sleep 20 osascript <<77 tell application "Finder" to eject "mjg" 77 But (b)(ii) is stumping me. Putting & or bg in various parts of this script produces errors. If I had to guess (and I do), it's that there should be something between the 77s that accomplishes this. But neither my books nor the internet is helping much. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |