i would like to get the time elapsed from whatever is playing in vlc inside applescript and save it into a variable. help anyone?
No dice!
VLC has only the very basic support for AppleScript, plus a few commands.
Have you tried QuickTime Player (with Perian)? I find that VLC is only for emergencies.
With VLC 2.0.0, the Application’s ‘current time’ property will get it for you:
Open up a video in VLC, then run this script:
set elapsed to ""
tell application "VLC"
set elapsed to current time
end tell
display dialog ("Elapsed time: " & elapsed as text) & " seconds."
not working 4 me how about dvd player? could you get the time from dvd player?
Model: iMac 21" 2010
AppleScript: 2.2.3
Browser: Safari 536.26.17
Operating System: Mac OS X (10.8)
nevermind. my vlc was old. works great! does anyone have any idea how to read a csv file that will look something like this:
type1,content1
type2,content1
type2,content2
type2,content3
type1,content2
the point being that the types may not be in the right order, and then take those types and put all of the same content types into seperate arrays, and then be able to use an if statement that can ask if another (constantly changing) variable is equal to any of the values in that array(which will obviously be in a while statement).
any ideas?
Model: iMac 21.5" 2010
AppleScript: 2.2.3
Browser: Safari 536.26.17
Operating System: Mac OS X (10.8)
mine too! :rolleyes:
Replace newlines with },{
Add {{ in the beggining and }} in the end.
set x to run script somethinglikethis
Thanx for all the help. i would also like to make a pc version. any programming language ideas?