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
  #1  
Old 03-08-2023, 10:33 AM
effeKtSVK effeKtSVK is offline
Member
 
Join Date: Mar 2023
Location: Bratislava, Slovakia
Posts: 2
Default OS_WritePermission error on GetSessionPath command

Hello,

I'm having issues when trying to execute the GetSessionPath command. I used most of the code from example that was included in the C++ SDK. I'm on the latest macOS - 13.2.1 (22D68), Intel-based chip.

When I'm looking at the debugger, the response is there but it also has "error" attribute with "errorType" of "OS_WritePermissions". I'm assuming this is related to Pro Tools itself, because from what I was able to find out with debugger, it seems that Pro Tools is sending this error.
I tried to give the app Full Disk Access but that didn't help. I also tried to use some codesign command (codesign -f -s- Pro Tools.app) that should remove sandbox but that also didn't help.
It also doesn't make any sense that I would encounter this error because GetSessionPath should be read-only operation. This also happens with GetSessionName command.

Here is my code and debugger screenshot: https://gist.github.com/effektsvk/35...ce283eefacb58e
Reply With Quote
  #2  
Old 03-13-2023, 10:29 AM
rmajors's Avatar
rmajors rmajors is offline
Avid
 
Join Date: Aug 2008
Location: WA
Posts: 73
Default Re: OS_WritePermission error on GetSessionPath command

Hello,

Based on the sample code you posted, it looks like your application is not first establishing a connection using AuthorizeConnection(). You must first successfully execute AuthorizeConnection() with a valid certificate before running other commands.

If that does not resolve the problem then please provide a Pro Tools log file. You can create a file named config.digitrace (note: not config.digitrace.txt) next to the Pro Tools application containing the following line to enable verbose logging:

DTF_ALL=file@DTP_LOWEST

Remove this file when you are done capturing verbose logs to return to default Pro Tools logging.

Best,
Rob
__________________
Rob Majors
Avid Software Engineering
Reply With Quote
  #3  
Old 04-01-2023, 07:43 AM
effeKtSVK effeKtSVK is offline
Member
 
Join Date: Mar 2023
Location: Bratislava, Slovakia
Posts: 2
Default Re: OS_WritePermission error on GetSessionPath command

Hello,
sorry for late response.

Yes, you're right, I didn't use AuthorizeConnection(), I probably missed it in the readme.

It looks like I need an auth token but I don't have any, I don't remember seeing any when I registered on the site. Is it absolutely necessary to apply for a developer certificate? I just want to do a simple feasibility check for some features and I thought I wouldn't have to go through some kind of process...
Reply With Quote
  #4  
Old 04-02-2023, 11:41 PM
rmajors's Avatar
rmajors rmajors is offline
Avid
 
Join Date: Aug 2008
Location: WA
Posts: 73
Default Re: OS_WritePermission error on GetSessionPath command

A certificate-based connection is not required for connection with Pro Tools 2023.3. See the recently released Pro Tools Scripting SDK 2023.3 release notes for more information.
__________________
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
Command-z error leo carro 003, Mbox 2, Digi 002, original Mbox, Digi 001 (Mac) 1 06-27-2007 09:21 PM
Error -35 Bounce to movie Command error? HelpPls! leegraingesound 003, Mbox 2, Digi 002, original Mbox, Digi 001 (Mac) 13 02-10-2007 01:03 PM
Command 8 Midi communication error doctorbrain ProControl, Control|24, Command|8 0 12-28-2006 06:41 PM
COMMAND 8 ERROR MESSAGE soundbus ProControl, Control|24, Command|8 0 09-23-2006 05:44 AM
Error when using New Session command jbr 003, Mbox 2, Digi 002, original Mbox, Digi 001 (Win) 2 03-23-2006 08:13 AM


All times are GMT -7. The time now is 06:24 AM.


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