Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: =?iso-8859-1?Q?Paul_F=F6rster?= Newsgroups: comp.sys.mac.apps Subject: Re: DVD Player and osascript? Date: Sat, 16 Sep 2017 21:59:34 +0200 Lines: 60 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net urmtIc++QZ84dRC18y+n+ABEKtvUFCDU6pjaJ3pPOcsehrtw== Cancel-Lock: sha1:57Vs9uOSbiBzkUL6HJ6kK8BAxrQ= User-Agent: Unison/2.2 Xref: csiph.com comp.sys.mac.apps:39514 Hi Jolly Roger, On 2017-09-16 16:36:09 +0000, Jolly Roger said: > DVD Player seems to offer only a very rudimentary scripting interface. > I'm afraid you won't be getting the information you want out of DVD > Player as a result. yes, it's rudimentary but beside not spitting out the selection item's names sufficient for my use case. > I'm curious: Why the aversion to installing HandBrake? It's a simple > drag-and-drop install, after all. it's not that I feel bad about Handbrake or something. I just want to stick to tools being part of a plain OS installation, if possible. This increases portability significantly. > Anyway, I think you need to look somewhere other than DVD Player. If I > were going to script something up, I'd probably start by seeing if > qt_tools / QT Coffee can do what I want since I am already familiar with > them and they work well enough: > > > > > thanks for the links. I'll check them out. > What is it you are actually trying to accomplish by listing audio and > subtitle track names? What is it you are actually trying to do here? I have a Mini sitting under my TV in the living room that I use to watch DVDs. I used a few Apple Remotes, but each one seems to fail sooner or later (no, not because of en empty battery). That seems to be a common and unsolved problem with Minis. God knows why... So I need a way to control DVD Player remotely. I wrote a bash script that contains osascript calls to control the DVD Player application which works great. It shows a progress bar, total, playing and remaining time, lets me toggle full screen, closed captions, enter the title (PTT) and audio menus, play/pause, fast forward, rewind, move to chapters, etc. All fine. :-) I only wish I could select audio and subtitle tracks by name rather than by number. Beside that, the script does exactly what it is supposed to do. So I can launch it on my laptop which usually sits on my lap when I watch TV or DVD and connect to the Mini in a terminal to control the DVD Player remotely. I could of course analyze the VOB files for language codes but that requires me to study the VOB file format which I would like to avoid. And the crop of the cream would be displaying the region code. ;-) -- cul8er Paul paul.foerster@gmx.net