有没有办法使用AppleScript在VLC中打开文件?

sha*_*ote 3 macos applescript vlc

我想获取现在在VLC中打开的文件的全名。

我只发现了这一点:

tell application "VLC"
    set current_file to name of first window
end tell
Run Code Online (Sandbox Code Playgroud)

但是它将返回current_file当前窗口的标题,该标题只是没有扩展名的文件名。而我需要一条完整的道路。

我能做得到吗?

谢谢。

Sho*_*rKo 6

您是否在Skript-Editor中的VLC词典中浏览了一下?你会发现类似

tell application "VLC"
    log (get name of current item)
    log (get path of current item)
end tell
Run Code Online (Sandbox Code Playgroud)

在VLC Suite中。

享受,迈克尔/汉堡