
Refer to the previous article "How to run multiple instances of VLC" for the setup up but use the new launcher script included below. Afterwards, I will discuss about File Association to complete the creation of this new VLC launcher.
Launcher Creation: Follow the previous article with the exception of using the following script instead.

set filecount to 0
on open filelist
repeat with i in filelist
set filecount to 1
do shell script "open -n -a /Applications/VLC.app " & quoted form of POSIX path of i & " &> /dev/null &"
-- open -n Opens a new instance of the application even if one is already running.
-- open -a Opens with the specified application.
-- "quoted form of" is added in case any spaces exist in file name
end repeat
end open
if filecount < 1 then
do shell script "open -n /Applications/VLC.app"
end if
File Association: To ensure your videos open with the new launcher you need to change the default application for all the movie types.
- Right-Click on a file with the extension type you would like to associate (.avi/.mpeg/.mov/.wmv/.mp4/etc.) and select Get Info.
- In the properties window, refer to the section Open with.
- Click on the drop-down list and select Other
- Select the VLC.app application where you previously copied the file. In the previous article, I referred to Macintosh/Users/
/Library/Scripts/VLC.app - This particular file will now open with your new launcher. But to ensure the changes for all files with this file extenstion, click on Change All...
- You will have to repeat for each file extension type you would like to open with VLC.
Please do not hesitate to post your experience with this walkthrough guide.
i made a new .app with the above script, but it does not open a new vlc for a new video file. it just adds the video file to the existing playlist. i can open multiple instances though.
ReplyDeleteThanks for the feedback. I will have to experiment with that one. If I find a solution, will let you know.
ReplyDeleteI made the first one perfectly. But when I go to add other, I can select the script, but when I do change all it defaults back down to itunes.... Any ideas?
ReplyDeletePart I & II - excellence! Thanks!
ReplyDeleteit doesn´t work for me. when i say "change for all" it take quicktime als default program :( any ideas about?
ReplyDeleteIn the Get Info dialog box, whenever I clicked Change All button, it changed to choose default VLC.app
ReplyDeleteYour article very well and good, bringing inspiration to many. I hope people visit my website.
ReplyDeleteFriv 11 | K7x |A10 Online |Firv |Yoob 5 .
There are things I can not understand but I will learn it. I think nothing is too late. Then I realized that I had improved a lot.
ReplyDeletehttp://colorswitchplay.com