# Where to put AAX page table file?

**URL:** <https://forum.juce.com/t/where-to-put-aax-page-table-file/29001>\
**Category:** Audio Plugins\
**Created:** [August 15, 2018, 3:10pm UTC](https://forum.juce.com/t/where-to-put-aax-page-table-file/29001 "2018-08-15T15:10:57Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![HowardAntares](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/howardantares/32/4629_2.png) [@HowardAntares](https://forum.juce.com/u/HowardAntares)\
**Post date:** [August 15, 2018, 3:10pm UTC](https://forum.juce.com/t/where-to-put-aax-page-table-file/29001/1 "2018-08-15T15:10:57Z")

</div>

I’ve included this line in my AppConfig.h file to copy my AAX page tables file into my AAX plug-in, but it’s not going there. I suspect (but don’t know for sure) that it’s not finding the file. So, where do I put the file?

#define JucePlugin\_AAXPageTableFile “MyPlugin.xml”

Can I specify the path? If so, relative to what?

---

<div class="post-metadata">

**Author:** ![alassandro](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/alassandro/32/4297_2.png) [@alassandro](https://forum.juce.com/u/alassandro)\
**Post date:** [August 15, 2018, 5:13pm UTC](https://forum.juce.com/t/where-to-put-aax-page-table-file/29001/2 "2018-08-15T17:13:35Z")

</div>

You’ll have to include the PageTable file as a resource of your plugin. Open your `.jucer` project, right click in Source to “Add existing files…”, then click on the Source folder and select the “Xcode Resource” checkbox for the PageTable file

---

<div class="post-metadata">

**Author:** ![HowardAntares](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/howardantares/32/4629_2.png) [@HowardAntares](https://forum.juce.com/u/HowardAntares)\
**Post date:** [August 15, 2018, 5:33pm UTC](https://forum.juce.com/t/where-to-put-aax-page-table-file/29001/3 "2018-08-15T17:33:32Z")

</div>

Ah, that’s the trick. I hadn’t checked that box. (By default, the Binary Resource checkbox is checked.) Thanks! 🕶

---

<div class="post-metadata">

**Author:** ![alassandro](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/alassandro/32/4297_2.png) [@alassandro](https://forum.juce.com/u/alassandro)\
**Post date:** [April 15, 2019, 3:39pm UTC](https://forum.juce.com/t/where-to-put-aax-page-table-file/29001/4 "2019-04-15T15:39:28Z")

</div>

Just a note for anyone reading this, it really only does apply to Xcode… somehow I mistook that 😉

To get the PageTables on Windows you will need to have a post build script (or make this part of your build system) that copies the PageTable file into `*.aaxplugin/Contents/Resources/`

---

<div class="post-metadata">

**Author:** ![draghicialexa](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/draghicialexa/32/8254_2.png) [@draghicialexa](https://forum.juce.com/u/draghicialexa)\
**Post date:** [March 16, 2021, 5:47pm UTC](https://forum.juce.com/t/where-to-put-aax-page-table-file/29001/5 "2021-03-16T17:47:42Z")

</div>

Does the xml file need to have a certain name? I added the #define JucePlugin\_AAXPageTableFile “MyPlugin.xml” in JucePluginDefines.h and after adding the Plugin to ProTools, the pagetables do not appear in the menu. I added the .xml as a resource and after build, it is part of the plugin bundle. It seems that the plugin doesn’t read the pagetable though. What could be the reason?

---

<div class="post-metadata">

**Author:** ![ibisum](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ibisum/32/21288_2.png) [@ibisum](https://forum.juce.com/u/ibisum)\
**Post date:** [January 13, 2025, 10:12am UTC](https://forum.juce.com/t/where-to-put-aax-page-table-file/29001/6 "2025-01-13T10:12:30Z")

</div>

Bumping this old thread, as I am adding Pro Tools PageTableFile support to my plugin - is there a chance that we could add “::getPageFileContent()” to the AAXClientExtensions class, so that we can just return the file as a string rather than indirectly through the filesystem - or is this a ProTools thing?

(Note that `#define JucePlugin_AAXPageTableFile` is deprecated - the new method is to implement AAXXClientExtensions::getPagFileName())

---

<div class="post-metadata">

**Author:** ![anthony-nicholls](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/anthony-nicholls/32/1246_2.png) [@anthony-nicholls](https://forum.juce.com/u/anthony-nicholls)\
**Post date:** [January 13, 2025, 11:16am UTC](https://forum.juce.com/t/where-to-put-aax-page-table-file/29001/7 "2025-01-13T11:16:54Z")

</div>

@ibisum in the AAX SDK there are the following enum values that we use to add the page table resource

```cpp
/** The file name of the page table xml file
*/
AAX_eResourceType_PageTable,
/** The absolute path to the directory containing the plug-in's page table xml file(s)
	 
Defaults to *.aaxplugin/Contents/Resources
*/
AAX_eResourceType_PageTableDir

```

These are used like so in the wrapper

```cpp
if (const auto searchPath = extensions.getPageFileSearchPath().getFullPathName(); searchPath.isNotEmpty())
    descriptor.AddResourceInfo (AAX_eResourceType_PageTableDir, searchPath.toRawUTF8());

if (const auto filename = extensions.getPageFileName(); filename.isNotEmpty())
    descriptor.AddResourceInfo (AAX_eResourceType_PageTable, filename.toRawUTF8());

```

It feels like trying to do this via contents would probably require generating a file on the fly which adds additional risks such as permissions issues or the file disappearing or changing while the plugin is running, etc. I’m not sure it’s worth the additional effort on our side.

That being said if you really wanted to, maybe you could do this yourself? Generate the file if it doesn’t already exist and just supply the filename and directory via the `getPageFileSearchPath()` and `getPageFileName()` methods?

---

<div class="post-metadata">

**Author:** ![ibisum](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ibisum/32/21288_2.png) [@ibisum](https://forum.juce.com/u/ibisum)\
**Post date:** [January 13, 2025, 11:47am UTC](https://forum.juce.com/t/where-to-put-aax-page-table-file/29001/8 "2025-01-13T11:47:51Z")

</div>

@anthony-nicholls Thanks for that, understood. I’ve since added the following to my cmake configuration in order to handle this - posting for anyone else who finds this thread in search for a solution:

```auto
if("AAX" IN_LIST FORMATS)
	add_custom_command(
			TARGET ${PROJECT_NAME}_AAX POST_BUILD
			COMMAND ${CMAKE_COMMAND} -E copy
			${CMAKE_CURRENT_SOURCE_DIR}/extra/ProTools/PageFile.xml
			$<TARGET_FILE_DIR:${PROJECT_NAME}_AAX>/../Resources/
			COMMENT "Copying Pro Tools PageFile.xml to the Resources folder for macOS AAX build"
	)
endif()

```

My original issue was that I didn’t want to do this CMake trickery - but now it works, moving on …

---

<div class="post-metadata">

**Author:** ![AdamVenn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/adamvenn/32/17023_2.png) [@AdamVenn](https://forum.juce.com/u/AdamVenn)\
**Post date:** [April 4, 2025, 3:43pm UTC](https://forum.juce.com/t/where-to-put-aax-page-table-file/29001/9 "2025-04-04T15:43:34Z")

</div>

Thank you, this worked for me.
