AIHostAdapter.aip MacOS installation filepath?
Hi all,
I'm building a new tool that leverages the AIHostAdapter to track certain events in the app. Unfortunately and somewhat ironically, the adapter from Adobe's CEP link itself works great with one exception: the pingPlugin function of the adapter errors out to an undefined function reference internally. This means that I can't easily send a ping and receive a ping back to verify the user has the adapter installed, even though all the events themselves work fine and my tool can use those events without issue.
I need some layer of error handling on this to verify the adapter is installed, which would be the ping in any other case and the reason that function exists, but for now I'm going to settle on searching the program files themselves then checking for the correctly named file in the right location. On windows this is:
"C:\Program Files\Adobe\Adobe Illustrator 2022\Plug-ins\Extensions\AIHostAdapter.aip"
I can get this fairly easily via CSInterface().getSystemPath(SystemPath.HOST_APPLICATION), which produces:
"C:/Program Files/Adobe/Adobe Illustrator 2022/Support Files/Contents/Windows/Illustrator.exe"
Which I can then slice to the Illustrator 2022 root and check Plug-ins/Extensions from. But on Mac, not only do I not know where AIHostAdapter.aip is normally installed, but I also don't know what filepath is produced when CSInterface().getSystemPath(SystemPath.HOST_APPLICATION) is run. Does any one know?
TL;DR
- What's the filepath where AIHostAdapter.aip/AIHostAdapter_Code_Signed.zip is usually installed on Mac?
- What's the result of CSInterface().getSystemPath(SystemPath.HOST_APPLICATION) when run in Illustrator on Mac?
