Basic Applescript

99 views
Skip to first unread message

fragtrup

unread,
Feb 17, 2012, 3:34:45 AM2/17/12
to NicePlayer Discuss
I try to do a applescript but i can't make the most basic functions to
work.
Can you help me open a file and play it?

Something like:
tell application "NicePlayer"
open "Drobo:Video:testmappe:Klokkefroen.mp4"
play
end tell

Jay Tuley

unread,
Feb 17, 2012, 9:36:13 AM2/17/12
to niceplaye...@googlegroups.com
In the 9.62 disk image there are example scripts. I believe this will
do what you are intending.

tell application "NicePlayer"
       set pl to make new playlist
add "Drobo:Video:testmappe:Klokkefroen.mp4" to pl
       play pl
end tell

fragtrup

unread,
Feb 17, 2012, 12:49:06 PM2/17/12
to NicePlayer Discuss
Thanks.
This add the movie to the playlist but it does not start playing.
If i add the same file manually it works.
Reply all
Reply to author
Forward
0 new messages