Avid Pro Audio Community

Avid Pro Audio Community

How to Join & Post  •  Community Terms of Use  •  Help Us Help You

Knowledge Base Search  •  Community Search  •  Learn & Support


Avid Home Page

Go Back   Avid Pro Audio Community > Dev > Pro Tools Scripting SDK Toolkit
Register FAQ Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #11  
Old 12-29-2022, 05:23 PM
andrewmoore-nz andrewmoore-nz is offline
Member
 
Join Date: Oct 2021
Location: Wellington, New Zealand
Posts: 8
Default Re: "Invalid signature" response when authorising connection from C++ SDK

Can confirm, that's working for me on macOS 10.15 now. Seems that each command and the subsequent params must be on a single line, with every command separated by a newline character. So I'm getting output like:

andrewmoore@Andrews-MBP Release % ./ptslcmd -file ~/Desktop/command.txt
AuthorizeConnection Response:
is authorized: 1
message: Success
GetPTSLVersion Response:
PTSL Host version: 1
GetSessionPath Response:
session path: Macintosh HD:Users:andrewmooreocuments:PTSL_ImportTest:PTS L_ImportTest.ptx
session path is online: No
GetSessionName Response:
session name: PTSL_ImportTest
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from Client
[ RUN ] Client.Result
[ OK ] Client.Result (0 ms)
[----------] 1 test from Client (0 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (0 ms total)
[ PASSED ] 1 test.


Aside from how impractical it is to write your commands to a file on disk in order to be able to do anything, the results are pretty unusable anyway, so I don't quite understand what the expectation is here when it comes to actually doing anything meaningful with it.
Reply With Quote
  #12  
Old 12-29-2022, 06:26 PM
jaydeesm jaydeesm is offline
Member
 
Join Date: Dec 2022
Location: Canada
Posts: 33
Default Re: "Invalid signature" response when authorising connection from C++ SDK

Wow. Good sleuthing! Would be good to have the docs improved for sure!
Reply With Quote
  #13  
Old 12-29-2022, 06:32 PM
jaydeesm jaydeesm is offline
Member
 
Join Date: Dec 2022
Location: Canada
Posts: 33
Default Re: "Invalid signature" response when authorising connection from C++ SDK

Ummm. Is the session path returning in OS 9 format?!? Sheesh! I haven’t seen a : in a path for 16 years!
Reply With Quote
  #14  
Old 12-29-2022, 10:46 PM
smurfyou smurfyou is offline
Member
 
Join Date: Oct 2006
Location: Charlotte, NC
Posts: 1,737
Default Re: "Invalid signature" response when authorising connection from C++ SDK

Quote:
Originally Posted by jaydeesm View Post
Ummm. Is the session path returning in OS 9 format?!? Sheesh! I haven’t seen a : in a path for 16 years!
Ha! Why were you using OS 9 that late
__________________
~Will
Reply With Quote
  #15  
Old 12-30-2022, 09:52 AM
rmajors's Avatar
rmajors rmajors is offline
Avid
 
Join Date: Aug 2008
Location: WA
Posts: 73
Default Re: "Invalid signature" response when authorising connection from C++ SDK

Hi all - to clarify, ptslcmd is an example application only. Its command line interface is intended as a way to test out interactions with Pro Tools via the scripting APIs, not as a production application.
__________________
Rob Majors
Avid Software Engineering
Reply With Quote
  #16  
Old 12-30-2022, 10:24 AM
jaydeesm jaydeesm is offline
Member
 
Join Date: Dec 2022
Location: Canada
Posts: 33
Default Re: "Invalid signature" response when authorising connection from C++ SDK

Should it not then, both in the docs and the built in help specify to use a -file to issue test commands, and forgo the other "usage".

Sorry for sounding harsh, but this wasn't put out as a developer preview, and yet I feel that's what we're all wasting time doing...
Reply With Quote
  #17  
Old 12-30-2022, 12:39 PM
rmajors's Avatar
rmajors rmajors is offline
Avid
 
Join Date: Aug 2008
Location: WA
Posts: 73
Default Re: "Invalid signature" response when authorising connection from C++ SDK

If you wish to build an application that interacts with Pro Tools then you can use ptslcmd as an example of how to implement your own application to interact with the PTSL SDK.

We will definitely clarify the usage and purpose of the ptslcmd application in the next revision. Thanks for pointing this out.
__________________
Rob Majors
Avid Software Engineering
Reply With Quote
  #18  
Old 12-30-2022, 02:29 PM
Darryl Ramm Darryl Ramm is online now
Member
 
Join Date: Nov 2010
Location: USA
Posts: 19,657
Default Re: "Invalid signature" response when authorising connection from C++ SDK

Quote:
Originally Posted by jaydeesm View Post
Ummm. Is the session path returning in OS 9 format?!? Sheesh! I haven’t seen a : in a path for 16 years!
Only 16 years? it brings back memories of shuffling floppies from a development Lisa to a Mac. OK Avid where is the Pascal API

But seriously I'm following along here as I think this is a very nice move by Avid. (and it was me who shot off his mouth recently about Avid not being open/having open APIs... this is a nice kind of "open" and especially with support from Avid to developers to get things kick started).
Reply With Quote
  #19  
Old 03-27-2023, 03:48 PM
rmajors's Avatar
rmajors rmajors is offline
Avid
 
Join Date: Aug 2008
Location: WA
Posts: 73
Default Re: "Invalid signature" response when authorising connection from C++ SDK

Starting with the Pro Tools Scripting SDK 2023.3, PTSL now uses POSIX style file paths on macOS.
__________________
Rob Majors
Avid Software Engineering
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PT12: Ilok2 "result frame is in invalid size" Ryan.Smiley Pro Tools 12 4 03-19-2017 10:08 AM
Has "Some regions had invalid bounds and were adjusted or deleted" been fixed? meech Pro Tools TDM Systems (Mac) 22 06-21-2014 12:47 AM
FS: Waves "Maserati Signature" and "CLA Classic Compressors" lowlights Buy & Sell 2 08-12-2013 09:36 AM
OK... MDW EQ RTAS v3 not authorising... it's officially an "issue" on this end! whitecat Pro Tools 9 5 11-06-2010 04:26 AM
Digidesign engineering's response to the HD "bass-lite" criticism is .... ngisedigid Pro Tools TDM Systems (Mac) 58 04-28-2002 10:01 PM


All times are GMT -7. The time now is 09:56 PM.


Powered by: vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Limited. Forum Hosted By: URLJet.com