Page 1 of 1

addressing multiple instances with applescript

Posted: 17 Aug 2020 12:19
by tcg
By searching this forum I found Mr Kuehne's script for opening several instances of the VLC player...

Code: Select all

on run do shell script "open -n /Applications/VLC.app" end run on open theFiles repeat with theFile in theFiles do shell script "open -na /Applications/VLC.app " & quote & (POSIX path of theFile) & quote end repeat end open
...which works like a charm. But I couldn't find a way to address the different instances with applescript. I there a solution to this?
Sorry if this is maybe a basic question, but I'm new to VLC and scripting as well... ;-) Thanks for all your help!

Tom