AppleScript Help Needed


#1

Have you implemented the playURL AppleScript command; and, if so, please give me an example of how to use it. I am using Vox 3.2.1 for Mac. Here is a simple script test I made where a selected music file appears to be added to the playlist but does not play. Info on the track in the playlist returns null. But this is weird: if I manually add the track first, then add it using the script, the track plays as expected. Anyhow, here is my simple script test...

set theAlias to (choose file)
tell application "System Events" to set theURL to URL of theAlias
tell application "VOX" to playUrl theURL as text

Thanks!