Skip to main content
wckdtall
Inspiring
October 18, 2014
Answered

Can you play a sound using a script in Photoshop?

  • October 18, 2014
  • 2 replies
  • 2225 views

I'd like to play an audio alert once my script finishes running, I looked up some options online, but I can only find reference to how to play sound using javascript and html5.

This topic has been closed for replies.
Correct answer wckdtall

Solution on Mac:

try{
app.system("afplay /System/Library/Sounds/Glass.aiff")
}catch(e){
};

2 replies

wckdtall
wckdtallAuthorCorrect answer
Inspiring
March 26, 2024

Solution on Mac:

try{
app.system("afplay /System/Library/Sounds/Glass.aiff")
}catch(e){
};
JJMack
Community Expert
Community Expert
October 19, 2014

beep();

JJMack
wckdtall
wckdtallAuthor
Inspiring
October 19, 2014

Thanks, but I'm looking to play a sound from a file rather than just the default error noise, any pointers?

Inspiring
October 19, 2014

You could play a music file, as an example.

var music = new File("/E/Music/Country/Sundown.mp3");

if(music.exists) music.execute();