Hello,
I have been looking for macOS GUI's to download videos. Yours looks interesting. However, I've had some issues.
First is that the pbs command might need the "-update" option to work properly. The man page doesn't mention it but, I've found I get an error without it.
Second is that when I start Virga, I get a dialog asking me for the location of Google Chrome. I suspect that's because the code has this:
tell application "Google Chrome"
I don't understand AS well but, I think that when the script is run it checks the code, sees the "Tell" and hoping to avoid a future error, looks for Chrome. I've found the solution is to put "Google Chrome" into a variable (eg. google_chrome_app) and change that line to:
tell application google_chrome_app
Works for me anyway.
Third is that after cancelling that dialog, nothing happens. It suggests there is an AS error. When I try to run the Virga script in Script Editor I get this error "Expected end of line but found property". The error is on "tab" in this line:
tell application frontApp to set theURL to URL of active tab of front window
Hope this helps
Cheers.