Untitled DVD still on Desktop after Toast burns DVD - why?

Hi all (Noobie)

I’m still working through my first AppleScript project, and have a few small niggles to sort out.

After my Toast project DVD has been ejected (after a successful burn), I still have the original “Untitled DVD” icon on the Desktop.
I’d like to understand “Why” this is happening, and more importantly - how can I clear this icon after each session?

Is it possible to create another line in my script to remove all unused icons on the Desktop etc.?

Thanks in advance.

I’d really appreciate some help with this, if someone could spare me some time please!

Thanks!

Hi, I don’t use Toast but my guess is that the “Untitled DVD” icon on your Desktop is merely held in the Finder.
You could refresh the Finder at the end of your script with a shell…

do shell script "killall Finder"

I hope it does the trick.

Regards,

Tom

Browser: Safari 530.19
Operating System: Mac OS X (10.5)

That’s a good idea Tom. It sounds plausible to me. I just wanted to add you don’t need a shell command to quit the Finder. This will quit and relaunch it…

tell application "Finder" to quit
delay 1
tell application "Finder" to launch

Hmmmm . . . . no, refreshing the Finder doesn’t seem to work . . . what happens is that the previous “Untitled DVD” icon is now replaced with another one showing Apple’s “Burn” Folder! If I leave it there and repeat the process, I’m left with another, and another etc.

Information shows pretty much nothing’s there . . . as I’d expected!

May be a question for the Apple Forums eh?