Re: Playing Sounds in AppleScript
Re: Playing Sounds in AppleScript
- Subject: Re: Playing Sounds in AppleScript
- From: Shane Stanley <email@hidden>
- Date: Sat, 31 Oct 2015 09:41:11 +1100
On 31 Oct 2015, at 12:26 AM, email@hidden wrote:
Wen I put in something like the below, users on other machines get an error
As Chris suggested, path to application folder will do the trick. But an alternative is to consider moving the sound file to one of the Sounds folders, like /Library/Sounds or ~/Library/Sounds, or including it within the application bundle itself (assuming you have the rights to the sound). Then you don't need to supply the path, and the code would be:
tell (current application's NSSound's soundNamed:"logo") to play()
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden