DP Applescript Documentation

Discussion of Digital Performer use, optimization, tips and techniques on MacOS.

Moderator: James Steele

Forum rules
This forum is for most discussion related to the use and optimization of Digital Performer [MacOS] and plug-ins as well as tips and techniques. It is NOT for troubleshooting technical issues, complaints, feature requests, or "Comparative DAW 101."
Post Reply
AncientMariner
Posts: 34
Joined: Tue Dec 21, 2004 10:01 pm
Primary DAW OS: MacOS
Location: South Carolina

DP Applescript Documentation

Post by AncientMariner »

Hi all ...
I'm trying to get DP to do things via Applescript. I note when I open DP's dictionary in the Applescript Editor, it's woefully empty. Only says it knows "doscript". Can't find any documentation on "doscript <what?>" ... the listing for common application commands is blank. Yet I find it does in fact respond to at least some common application commands.

Is there someplace this is documented?

Thanks!
Yamaha CL5
Mac Pro "Trashcan" standard issue (home)
iMac i5 16GB RAM (work)
Macbook Pro 2.4 Core 2 Duo 4GB RAM
Dante VSC
OSx 10.whatever
DP 9
Whole Lotta Plugs (mostly Waves)
User avatar
James Steele
Site Administrator
Posts: 22792
Joined: Fri Oct 15, 2004 10:01 pm
Primary DAW OS: MacOS
Location: San Diego, CA - U.S.A.
Contact:

DP Applescript Documentation

Post by James Steele »

AFAIK DP isn't scriptable. If I'm wrong here someone pipe up?
JamesSteeleProject.com | Facebook | Instagram | Twitter

Mac Studio M1 Max, 64GB/2TB, macOS Sequoia 15.5 Public Beta 2, DP 11.34, MOTU 828es, MOTU 24Ai, MOTU MIDI Express XT, UAD-2 TB3 Satellite OCTO, Console 1 Mk2, Avid S3, NI Komplete Kontrol S88 Mk2, Red Type B, Millennia HV-3C, Warm Audio WA-2A, AudioScape 76F, Dean guitars, Marshall amps, etc., etc.!
AncientMariner
Posts: 34
Joined: Tue Dec 21, 2004 10:01 pm
Primary DAW OS: MacOS
Location: South Carolina

Re: DP Applescript Documentation

Post by AncientMariner »

Well, matter of fact, I am getting it to do some useful things. Via Filemaker via C++ plugin I wrote for that platform. It looks like it does in fact respond to some subset of the "required suite" of commands. So there's obviously some code written and implemented ... not documented. I was hoping somebody here would have snooped it out.
Yamaha CL5
Mac Pro "Trashcan" standard issue (home)
iMac i5 16GB RAM (work)
Macbook Pro 2.4 Core 2 Duo 4GB RAM
Dante VSC
OSx 10.whatever
DP 9
Whole Lotta Plugs (mostly Waves)
User avatar
James Steele
Site Administrator
Posts: 22792
Joined: Fri Oct 15, 2004 10:01 pm
Primary DAW OS: MacOS
Location: San Diego, CA - U.S.A.
Contact:

DP Applescript Documentation

Post by James Steele »

Maybe contact MOTU and ask them? Sounds like you're ahead of most people on this subject anyway. I personally just pretty much use DP as is and haven't really thought to look into it as a need hasn't presented itself.
JamesSteeleProject.com | Facebook | Instagram | Twitter

Mac Studio M1 Max, 64GB/2TB, macOS Sequoia 15.5 Public Beta 2, DP 11.34, MOTU 828es, MOTU 24Ai, MOTU MIDI Express XT, UAD-2 TB3 Satellite OCTO, Console 1 Mk2, Avid S3, NI Komplete Kontrol S88 Mk2, Red Type B, Millennia HV-3C, Warm Audio WA-2A, AudioScape 76F, Dean guitars, Marshall amps, etc., etc.!
AncientMariner
Posts: 34
Joined: Tue Dec 21, 2004 10:01 pm
Primary DAW OS: MacOS
Location: South Carolina

Re: DP Applescript Documentation

Post by AncientMariner »

This isn't the way I usually do things. Special client, has to personally sort thru 600 + long WAV files, needs visuals. This is my quick solution. Working well now, thru trial & error ... hopefully won't need such things again. THANKS!
Yamaha CL5
Mac Pro "Trashcan" standard issue (home)
iMac i5 16GB RAM (work)
Macbook Pro 2.4 Core 2 Duo 4GB RAM
Dante VSC
OSx 10.whatever
DP 9
Whole Lotta Plugs (mostly Waves)
User avatar
James Steele
Site Administrator
Posts: 22792
Joined: Fri Oct 15, 2004 10:01 pm
Primary DAW OS: MacOS
Location: San Diego, CA - U.S.A.
Contact:

Re: DP Applescript Documentation

Post by James Steele »

AncientMariner wrote:This isn't the way I usually do things. Special client, has to personally sort thru 600 + long WAV files, needs visuals. This is my quick solution. Working well now, thru trial & error ... hopefully won't need such things again. THANKS!
Well if you can, please do share what you've learned with the board. That's one of the things this place is good for! :D
JamesSteeleProject.com | Facebook | Instagram | Twitter

Mac Studio M1 Max, 64GB/2TB, macOS Sequoia 15.5 Public Beta 2, DP 11.34, MOTU 828es, MOTU 24Ai, MOTU MIDI Express XT, UAD-2 TB3 Satellite OCTO, Console 1 Mk2, Avid S3, NI Komplete Kontrol S88 Mk2, Red Type B, Millennia HV-3C, Warm Audio WA-2A, AudioScape 76F, Dean guitars, Marshall amps, etc., etc.!
User avatar
FMiguelez
Posts: 8266
Joined: Sun Oct 24, 2004 10:01 pm
Primary DAW OS: MacOS
Location: Body: Narco-México Soul/Heart: NYC

Re: DP Applescript Documentation

Post by FMiguelez »

.

I'd be VERY interested in hearing more about possibilities of scripting DP.
James Steele wrote: Sounds like you're ahead of most people on this subject anyway.
We have a few heavy-weight programmers in here. Six String Geek comes immediately to mind.
Hopefully he will chime in.
Mac Mini Server i7 2.66 GHs/16 GB RAM / OSX 10.14 / DP 9.52
Tascam DM-24, MOTU Track 16, all Spectrasonics' stuff,
Vienna Instruments SUPER PACKAGE, Waves Mercury, slaved iMac and Mac Minis running VEP 7, etc.

---------------------------

"In physics the truth is rarely perfectly clear, and that is certainly universally the case in human affairs. Hence, what is not surrounded by uncertainty cannot be the truth." ― Richard Feynman
AncientMariner
Posts: 34
Joined: Tue Dec 21, 2004 10:01 pm
Primary DAW OS: MacOS
Location: South Carolina

Re: DP Applescript Documentation

Post by AncientMariner »

First off, I also normally use DP "as is". This is a very unusual client/situation, and my (very rusty) coding skills have been helpful. What follows is of interest to geeks, and probably few others.

And, I must admit I'm now sure that what's happening is not proof that DP is scriptable.

If that sounds convoluted, it's because the journey to this knowledge revealed that on some undocumented level, DP is, in fact, quite probably scriptable. This may be a custom trapdoor provided for a high-dollar film client. You'll note armies of software developers these days, in the end credits.

The platform I'm using to "launch" is Filemaker Pro, which can send Apple Events, including executing Applescripts. It also provides a trapdoor for people like me ... I can code in C++ (my native language) without having to manage the user, or learn Objective C/Cocoa. Cool.

I am now clear that in this case, Filemaker is not using Applescript per se, to do what I'm doing. I was able to execute the same Filemaker operation with Peak, which doesn't even hint at being scriptable. What I'm doing is telling the system to open a document, and the document vectors to DP. Kinda like double-click from Finder.

But in getting here, I found the following interesting stuff ...

If an application is scriptable, it publishes a dictionary of commands and syntax to the system. Applescript Editor (in Applications/Utilities) lets you see which applications have such dictionaries, and lets you open them and see what commands they recognize.

DP does have an entry here. But, if you open the dictionary, it's not what Apple would call a "well behaved" application. There is a suite of commands that any scriptable app is supposed to address ... DP is blank in this category. There is a custom suite listed, consisting of one entry: "doscript". That's all. Not even a simple syntax example. Nowhere can I find any documentation on what parameters might be expected from there. I have hunted through the printed manual (DP 7) ... nothing I can find. Google searches all dead-end, eventually.

So, here's the thing ... if DP were simply not scriptable, there would be no dictionary listed in the Applescript editor. Pro Tools isn't there, Peak isn't there ... even Apple's own Final Cut Pro isn't there (and these are all installed & authorized on the machine in question).

But DP is there, presenting exactly one strange, mysterious door ...
Yamaha CL5
Mac Pro "Trashcan" standard issue (home)
iMac i5 16GB RAM (work)
Macbook Pro 2.4 Core 2 Duo 4GB RAM
Dante VSC
OSx 10.whatever
DP 9
Whole Lotta Plugs (mostly Waves)
User avatar
FMiguelez
Posts: 8266
Joined: Sun Oct 24, 2004 10:01 pm
Primary DAW OS: MacOS
Location: Body: Narco-México Soul/Heart: NYC

Re: DP Applescript Documentation

Post by FMiguelez »

.

Ancient Mariner, I encourage you to keep experimenting. What you write sounds potentially fascinating. Can you imagine Scripting DP? Wow! That would be fantastic.

I have never ever read (in the manual or anywhere) anyone talking about scripting DP. But if you can talk C++ and know your way around, you can probably discover something interesting. If so, PLEASE make sure you write about your progress here.

Perhaps Magic Dave could briefly comment on this?
Mac Mini Server i7 2.66 GHs/16 GB RAM / OSX 10.14 / DP 9.52
Tascam DM-24, MOTU Track 16, all Spectrasonics' stuff,
Vienna Instruments SUPER PACKAGE, Waves Mercury, slaved iMac and Mac Minis running VEP 7, etc.

---------------------------

"In physics the truth is rarely perfectly clear, and that is certainly universally the case in human affairs. Hence, what is not surrounded by uncertainty cannot be the truth." ― Richard Feynman
AncientMariner
Posts: 34
Joined: Tue Dec 21, 2004 10:01 pm
Primary DAW OS: MacOS
Location: South Carolina

Re: DP Applescript Documentation

Post by AncientMariner »

Well, gotta re-state my feeling that I've stumbled on some sort of "arrangement" ... between MOTU and some client who has the wherewithall to pay for it.

And, someone who didn't figure on someone like me to go snooping about, so they left a trail I could follow. As a VERY OLD coder (does "IBM system/360" mean anything to anyone on this forum?), I can imagine no other explanation for this constellation of information. But much has changed, since I moved to the Mac world, and hence had so much less need to code my own stuff.
Yamaha CL5
Mac Pro "Trashcan" standard issue (home)
iMac i5 16GB RAM (work)
Macbook Pro 2.4 Core 2 Duo 4GB RAM
Dante VSC
OSx 10.whatever
DP 9
Whole Lotta Plugs (mostly Waves)
Post Reply