Blank CD - Run Script?
Blank CD - Run Script?
- Subject: Blank CD - Run Script?
- From: Pete Gordon <email@hidden>
- Date: Wed, 28 Apr 2004 01:53:43 -0400
I have been trying to create a AppleScript that creates a CD from a
blank CD by selecting Run Script. I couldn't find any examples. This
is what I have so far... seems to work if you don't run the script in
the SystemUIServices dialog box (by selecting "Run Script.."), and
associate the Blank CD with the Finder first. It seems that if you try
to run the Blank CD script, Finder doesn't have an ejectable disk and
the script blows up. It is really bad for me also. My system then
doesn't show me the CD again, and it is stuck in my PowerBook until I
reboot. Did a df from terminal and I don't see the CD mounted after I
try to Run Script on it. It's like it is not mounted until after it is
associated with the Finder app (assume true for iTunes, etc.). And I
don't know how to get at the files I need and copy them over in
AppleScript.
Here's the little script I have thus far...
set the_folder to choose folder
tell application "Finder"
display dialog {("Do you wish create a CD on the [" & (name of first
disk whose (ejectable is true))) & "] disk?"}
set the user_choice to the button returned of the result
if the user_choice is "OK" then
duplicate files of the_folder to first disk whose (ejectable is true)
duplicate folders of the_folder to first disk whose (ejectable is
true)
end if
end tell
Are there any examples of how I can use the Blank CD Run Script option,
to just copy the contents of a folder to it, and I would like to burn
it but I saw that that was able to be done in AppleScript (without
doing shell hdiutil burn). Correct me if I am wrong?
Thanks!
Pete Gordon
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.