I'm trying to get the name of the current file playing in VLC. Applescript SHOULD be able to do this with VLC 2 and on (it's in the dictionary, "name of current item") however it keeps not compiling, because it "expected end of line but found identifier."
What's going on?
Edit: Here is the part of the code that's not working
tell application "VLC" get name of current item end tell
DOUBLE EDIT: Whole script
tell application "VLC" set clipname to get name of current item end tell set oldDelim to AppleScript's text item delimiters set AppleScript's text item delimiters to "." --set clipname to text item 1 of clipname set AppleScript's text item delimiters to oldDelim return clipname
EDIT EDIT EDIT: Something weird is happening. I swear when I opened one of my applescripts before, it rightfully said "current time" with no problems. But when I opened it again, it said
<<class AACT>>, and won't let me type current time instead.
EDIT EDIT EDIT EDIT: It just did it again. When I quit and reopened applescript, it showed up/worked like it should.