View Single Post
  #14  
Old 12-10-2006, 04:36 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
I think you'll now be able to do this with a single line, since the mini-script worked, the tricky thing being escaping things properly, and I couldn't figure it out. So put the eject in a little saved script:

Code:
tell application "Finder" to eject "mjg"
save as text or a compiled script, and do:

Code:
#!/bin/sh
nohup /bin/bash -c "sleep 20; osascript path/to/the/script/file" &
__________________
--Dave Nanian

Last edited by dnanian; 12-10-2006 at 04:51 PM. Reason: Corrected syntax
Reply With Quote