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

P: Error message (Script line 2798) with InDesign & Illustrator after update

New Here ,
Mar 25, 2025 Mar 25, 2025

default11h12xm5yo8m_0-1742949495049.png

I just installed updates for Photoshop and Photoshop beta and received this error on opening Indesign. Any ideas? [I am on a Mac Mini M4] - there is no error opening Photoshop or Photoshop Beta.

 

 

<Title renamed by MOD>

TOPICS
Bug , Scripting
29.4K
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

Adobe Employee , Mar 28, 2025 Mar 28, 2025

Hi,

As confirmed by the user, the issue is due to the latest Photoshop update, and the workaround below will resolve the issue.

  • Workaround 1:
    • Uninstall Photoshop 26.5 (make sure to remove preferences).
    • Reinstall Photoshop 26.5. This will install the correct “photoshop_v2025.jsx”.
  • Workaround 2:
    • Open jsx, which is available at "/Library/application support/Adobe/Startup Scripts CC/Adobe Photoshop/" mentioned in the alert in the Text Editor 
    • Add } in the last line

Reference UserVoice Thread

...
Translate
LEGEND ,
Apr 01, 2025 Apr 01, 2025

@Pankaj26258324en2z

 

Have you read other replies - before posting? 

 

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
New Here ,
Apr 03, 2025 Apr 03, 2025

Adobe is a joke

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
Explorer ,
Apr 03, 2025 Apr 03, 2025

Attempted to open an InDesign file originally created 12 months ago. The placed images will not appear on the screen. Moreover, when I updated InDesign I get an error that a startup script in Photoshop seems to be the culprit. Have restarted InDesign and also tried to update links but no diifference. Anyone any ideas?

See attached window.

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 ,
Apr 03, 2025 Apr 03, 2025

Did you try the solutions in the correct answer above?

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
Explorer ,
Apr 03, 2025 Apr 03, 2025

Thanks have reinstalled both InDesign and Photoshop and this seems to have done the trick! Now back to work after three hours of unproductive time wasting... Computers eh?

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
New Here ,
Apr 03, 2025 Apr 03, 2025

Captura de pantalla 2025-03-31 a las 9.54.18.png
Me sale esta ventana de error al abrir Illustrator 2025 (29.3.1) en MacOs Sequoia 15.3.2

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 ,
Apr 03, 2025 Apr 03, 2025

https://community.adobe.com/t5/indesign-discussions/p-error-message-script-line-2798-with-indesign-a...

 

Edit: It’s the same file for Illustrator and Indesign, so the correct answer in the linked thread applies even though it is located on the Indesign Forum. 

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
Explorer ,
Apr 03, 2025 Apr 03, 2025

Typing the } in the last line of ,"photoshop_v2025.jsx" took me like 20 seconds and it fixed this entire problem.

 

I'd recommend doing that as SanyamTalwar says.

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
New Here ,
Apr 03, 2025 Apr 03, 2025

So the problem is not that a closing curly bracket is missing, but rather that an opening curly bracket was left behind with a few comments a the end of the code. I just removed it and the error went away.

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
Explorer ,
Apr 05, 2025 Apr 05, 2025

It's funny, I definitely  added a bracket and the problem was fixed.

 

You removed one and the problem was fixed. 

 

So maybe you just need to do "something" to the file?

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
LEGEND ,
Apr 05, 2025 Apr 05, 2025
quote

It's funny, I definitely  added a bracket and the problem was fixed.

 

You removed one and the problem was fixed. 

 

So maybe you just need to do "something" to the file?


By @FlashInPan

 

Not "something" - you either need to ADD at the end - or REMOVE the one in the line mentioned in the error message.

 

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
Explorer ,
Apr 07, 2025 Apr 07, 2025

I just uninstalled Photoshop 26.5, but did not delete preferences and then re-installed.   It worked.

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
Participant ,
Apr 07, 2025 Apr 07, 2025

Buen día.

Quisiera saber que es este error que sale cuando ingreso a Indesing y a Ilustrador.

Y como solucionarlo.

Gracias

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 ,
Apr 07, 2025 Apr 07, 2025

Uninstall Photoshop including preferences, then reinstall it through the Creative Cloud app.

If you still have problems, use the Adobe CC Cleaner app to remove Photoshop before reinstalling it.

 

David Creamer: Community Expert (ACI and ACE 1995-2023)
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
Participant ,
Apr 07, 2025 Apr 07, 2025

Desintalo photoshop, aunque las aplicaciones que me salen los errores es en Indesing e Ilustrador?

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 ,
Apr 07, 2025 Apr 07, 2025

If you notice, it is a Photoshop script that is causing the error. Did you try it?

 

David Creamer: Community Expert (ACI and ACE 1995-2023)
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
Participant ,
Apr 07, 2025 Apr 07, 2025

Gracias.
Solucionado al desinstalar y instalar.

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
New Here ,
Apr 08, 2025 Apr 08, 2025

error opening InDesign.jpg

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 ,
Apr 08, 2025 Apr 08, 2025

Did you try the options in the correct answer?

Like:

  • Workaround 1:
    • Uninstall Photoshop 26.5 (make sure to remove preferences).
    • Reinstall Photoshop 26.5. This will install the correct “photoshop_v2025.jsx”.
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 Beginner ,
Apr 08, 2025 Apr 08, 2025

I uninstalled and reinstalled it without removing preferences or anything else and it worked fine. I have also seen other user wrote the same.

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
New Here ,
Apr 11, 2025 Apr 11, 2025

ME APARECE EL MISMO MENSAJE TAMBIÉN EN ILUSTRATOR.Captura de pantalla 2025-04-11 a las 10.11.58 a. m..png

 

ALGUIEN TIENE LA SOLUCIÓN????

 

SALUDOS

FERNANDO

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 ,
Apr 11, 2025 Apr 11, 2025

It is the same solution that has been stated many times over and over in this thread.

Mike Witherell
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
New Here ,
Apr 17, 2025 Apr 17, 2025
LATEST

Open jsx, which is available at "/Library/application support/Adobe/Startup Scripts CC/Adobe

 
Original Code (very end of the file)
{
// Debugging
// alert (e + ": line " + e.line

 

Corrected Code that fixed the issue

{
// Debugging
// alert (e + ": line " + e.line);
}
 
It fixed the error for me.
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