Copy link to clipboard
Copied
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
Hi @Inventsable -
The path for AIHostAdapter.aip is
/Applications/Adobe Illustrator 2024/Plug-ins.localized/AIHostAdapter.aip
The path will remain same for all Illustrtaor version, you just need to update the version number in the path
On mac - the result of CSInterface().getSystemPath(SystemPath.HOST_APPLICATION) is -
/Applications/Adobe Illustrator 2024/Adobe Illustrator.app/Contents/MacOS/Adobe Illustrator
Copy link to clipboard
Copied
Do we have a bot problem? I just got 8 emails about a minute after posting with upvotes for no reason. Maybe this is via tag or keyword?
Copy link to clipboard
Copied
Hi @Inventsable -
The path for AIHostAdapter.aip is
/Applications/Adobe Illustrator 2024/Plug-ins.localized/AIHostAdapter.aip
The path will remain same for all Illustrtaor version, you just need to update the version number in the path
On mac - the result of CSInterface().getSystemPath(SystemPath.HOST_APPLICATION) is -
/Applications/Adobe Illustrator 2024/Adobe Illustrator.app/Contents/MacOS/Adobe Illustrator
Copy link to clipboard
Copied
Perfect, thanks so much 👍