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

MacOS command line Applescript `DoScriptFile` not working for Ae2024?

Engaged ,
Oct 04, 2024 Oct 04, 2024

Posting this incase others are having similar issues or know solutions - I utilise MacOS Applescript in an Ae product (BlenderAe) from the command line https://ae-scripting.docsforadobe.dev/introduction/overview.html#running-scripts-from-the-command-li... and some users are reporting that it's not working with Ae2024 but works perfectly fine with Ae2023 on the same machine. In my own tests I was able to replicate the issue - DoScriptFile was indeed freezing up and not reaching Ae2024 until I added it to the 'Privacy & Security > Full Disk Access'. But this solution did NOT work for the users that reported the problem, and even re-installing After Effects 2024 hasn't helped them. I'm currently waiting for them to try `sudo tccutil reset All com.adobe.AfterEffects` from the terminal. I don't have the latest mac to test personally atm, so any other ideas on fixing this would be appreciated.

Bug Needs More Info
TOPICS
Scripting
796
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 Pinned Reply

Adobe Employee , Nov 25, 2024 Nov 25, 2024

Hi @Daniel_Peterson,

Thanks for posting about this issue. I was pointed to this thread by @lasse_lauch who is experiencing this issue as well. I've moved it into our Bug reports section.

 

I was able to reproduce the behavior you described in After Effects 2024, but it appears to be working as expected in version 2025, even without Full Disk Access. Would you both mind giving this a try in 2025 and let me know if you continue to experience the issue with DoScriptFile?

 

Thanks for any further in

...
Status Needs More Info
Translate
7 Comments
Engaged ,
Oct 06, 2024 Oct 06, 2024

A user got back to me and said that using this did NOT work either

 

sudo tccutil reset All com.adobe.AfterEffects

 

Translate
Report
Explorer ,
Oct 11, 2024 Oct 11, 2024

(Copying my workaround from the other thread)

 

@Daniel_Peterson the workaround I found is to use JavaScript as the osascript language instead of the default AppleScript:

 

osascript -l JavaScript -e 'ae = Application("Adobe After Effects 2024"); ae.activate(); ae.doscriptfile("myscript.jsx");'
Translate
Report
Engaged ,
Oct 13, 2024 Oct 13, 2024

Great! Thanks so much for sharing this.

Translate
Report
Engaged ,
Oct 16, 2024 Oct 16, 2024

I can confirm that this solution also worked for me. Javascript works fine but AppleScript does not.

Translate
Report
Engaged ,
Oct 27, 2024 Oct 27, 2024

Short update that in some reported user cases installing the new Ae2025 reset / fixed the permissions issue, and also uninstalling old versions also seemed to change or modify the Ae permissions on MacOS.

Translate
Report
Adobe Employee ,
Nov 25, 2024 Nov 25, 2024

Hi @Daniel_Peterson,

Thanks for posting about this issue. I was pointed to this thread by @lasse_lauch who is experiencing this issue as well. I've moved it into our Bug reports section.

 

I was able to reproduce the behavior you described in After Effects 2024, but it appears to be working as expected in version 2025, even without Full Disk Access. Would you both mind giving this a try in 2025 and let me know if you continue to experience the issue with DoScriptFile?

 

Thanks for any further info you can provide,

- John, After Effects Engineering Team 

Status Needs More Info
Translate
Report
Engaged ,
Nov 25, 2024 Nov 25, 2024
LATEST

Thanks @JohnColombo, I am using the Javascript method as the default in my scripts now with a fallback to Applescript and so far I have not had any bug reports about my scripts failing (only one, but it seems to be related to another system wide issue in general). Unfortunately I don't have a Mac that's compatible with 2025 atm, but hope to test again soon.

Translate
Report