Delete file without playing sound in Applescript ?

Posted by Irwan on Stack Overflow See other posts from Stack Overflow or by Irwan
Published on 2010-05-27T02:30:44Z Indexed on 2010/05/27 5:31 UTC
Read the original article Hit count: 191

Filed under:
|
tell application "Finder"
    set deletedfile to alias "Snow Leopard:Users:test.pdf"
    delete deletedfile
end tell

The problem is I repeatedly call this script from my Cocoa application so the sound is played repeatedly too. Is it possible to disable that sound ?

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about applescript