Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A script to open/close an external CD/DVD via keyboard' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to open/close an external CD/DVD via keyboard
Authored by: mari0 on Feb 15, '05 05:47:00PM

same here... done the terminal part, stuck at spark...



[ Reply to This | # ]
A script to open/close an external CD/DVD via keyboard
Authored by: disinfor on Feb 16, '05 02:43:03PM
Check out Jimhoyt reply in this thread. You can make the applescript from that and then link it using Spark. I'll repost it here: Make an applescript (either with Script Editor or within Spark)
property drawerstatus : true

if drawerstatus is true then
    do shell script "drutil eject -drive external"
else
    do shell script "drutil tray close -drive external"
end if
set drawerstatus to not drawerstatus
(I changed the
"drutil eject..." to "/users/shared/bin/opendisc -o" 
which is what I called my terminal action and the
 "drutil tray close to "/users/shared/bin/opendisc -c" 
...maybe a little more work than necessary, but it works) In Spark you choose new applescript or cmd-1 and you can enter the applescript there or import your script you created. Set the Shortcut key, give it a name, hit create and turn Spark on! Voila! That may make some sense. Hopefully it does. I got it to work.

[ Reply to This | # ]