- Code: Select all
set statePath to POSIX path of (theFile)
set watch to "file://" & statePath
tell application "VLC"
OpenURL (watch)
end tell
However it throws an error, yet this script
- Code: Select all
property theFile : alias "MEDIA:Videos:VideoFile.mp4"
set statePath to POSIX path of (theFile)
set watch to "file://" & statePath
tell application "VLC"
OpenURL (watch)
end tell
Runs perfectly from the AppleScript Editor. Why is this? And yes, MEDIA:Videos:VideoFile.mp4 is the file it's being run on.