Delicious Library 3, open a movie
Hi everybody, i have found this script on the internet and he didn't work. I have modified the script and now i have this problem :
error "Erreur dans Delicious Library 3 : Il est impossible d’obtenir selection." number -1728 from selection
How can I resolve that ?
tell first document of application "Delicious Library 3"
set selectedMedia to selection
repeat with selectedMedium in selectedMedia
set movieUrl to associatedURL of selectedMedium
if movieUrl starts with "file://" then
set movieFile to richtext thru end of movieUrl
else
set movieFile to (choose file with prompt "Find the file for" & name of selectedMedium & ":")
set associatedURL of selectedMedium to "file://" & movieFile
end if
tell application "VLC"
activate
open movieFile
end tell
end repeat
end tell
I'm on Mac OS X 10.8.4
Thanks, MrTehes.