Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
8

AIHostAdapter.aip MacOS installation filepath?

Enthusiast ,
Nov 11, 2023 Nov 11, 2023

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?
TOPICS
Scripting , SDK
606
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 12, 2023 Nov 12, 2023

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

 

Translate
Adobe
Enthusiast ,
Nov 11, 2023 Nov 11, 2023

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 12, 2023 Nov 12, 2023

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

 

Best regards
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 12, 2023 Nov 12, 2023
LATEST

Perfect, thanks so much 👍

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines