bennetsaysargh said:if it can, how would you put that into applescript?
thanks![]()
bennetsaysargh said:if it can, how would you put that into applescript?
thanks![]()
BrandonRP0123 said:Not sure how to do it with Apple Script to ``eject all''
You can do it with a unix shell script, however.
You'll need to figure out what disk # your CD/DVD unit is.
Then you could create a script via your favorite unix shell that has in it something like (for my powerbook):
disktool -e disk1 (or you could just execute this yourself by typing it in on the terminal command line)
This method will work when the eject menu and/or key combinations fail as well.
tell application "Terminal"
activate
do script "disktool -e disk1"
quit
end tell
do shell script "disktool -e disk1"
do shell script "drutil tray eject"
do shell script "drutil tray close"
bennetsaysargh said:hey, thanks everyone
that's what i am using. is there any way you can make applescript wait a few seconds? i ask this because if you ask it to repeat, it starts closing, but opens back up.Code:do shell script "drutil tray eject" do shell script "drutil tray close"
thanks again![]()
do you know how?bousozoku said:Of course there is.![]()
bennetsaysargh said:do you know how?
edit-also, does anyone know if you can make something force quit in applescript?
yippy said:hey, i want to do the same thing but when i put
do shell script "drutil tray eject"
into applescript and hit run i get an error, it says
sh: drutil: command not found
any help? i am running 10.2.8 if that matters on applescript beta 2.0 and the tcsh shell or whatever it is called in terminal
thanks
yippy said:hey, i want to do the same thing but when i put
do shell script "drutil tray eject"
into applescript and hit run i get an error, it says
sh: drutil: command not found
any help? i am running 10.2.8 if that matters on applescript beta 2.0 and the tcsh shell or whatever it is called in terminal
thanks