Skip to main content
Participating Frequently
November 15, 2022

AE Scripts Error: Folder.userData = null

  • November 15, 2022
  • 27 replies
  • 4397 views

Since a couple of weeky some scripts suddenly stopped working. I was able to tackle down the problem. I created a script with just one line: 

 

alert(Folder.userData) // null

 

I am on a Macbook Pro M1 / OSX Ventura 13.2. Problem appeared in AE 22 & 23. I deleted everything and only installed 23.2.0. 

 

Same Script works within AI and PS and outputs:

~/Library/Application%20Support

 

 

 

This topic has been closed for replies.

27 replies

Participating Frequently
May 26, 2023

This seems to be exactly what I was experiencing as my computer is managed by IT with OneDrive. I have since temporarily disabled OneDrive and all seems to be working well for the moment. Glad you got your scripts working Robert!

Participant
May 26, 2023

@JohnColombo17100380 Daniel here, one of Roberts "IT people". In the case of Robert, the Desktop folder was / is redirected to OneDrive as it is policy at our company. For now it seems he deleted his Desktop folder, created a new one and OneDrive doesn't seem to be aware of it (yet?). 

In any case I find it very confusing that an Adobe Script is not able to run, if something is, let's say "going on" with the Desktop folder. That shouldn't cause such an issue and a colleague do be not able to work anymore.. So please fix this as a local only used desktop is not a workaround we can live with very long, to be honest..

 

Regards

Daniel

Robert_S1Author
Participating Frequently
May 26, 2023

@JacobACrocker @JohnColombo17100380 

 

So finally, i got it! 🥳🥳🥳 Thank you so much! I deleted the Desktop Folder on One Drive, created a new Desktop-Folder in the Library, and couldn't believe it, but when I started AE and tried the Scripts/Plugins, they really work again. 🥰 

Robert_S1Author
Participating Frequently
May 26, 2023

Hey @JacobACrocker,

 

first of all I am really kinda happy 🙊 that you have the same problem as me. At least I am not alone anymore. 

 

I just deleted the whole Cloud and completely reset my Macbook, cause nobody was able to help me. Unfortunately that didn't help.

 

Could you really fix the Prob by deleting the "desktop" Folder?! How did you come up with this idea? I couldn't find anything on the subject because no one seemed to have these problems.

 

I just tried to do the same like you. Opened the finder - go to library (by holding ctrl), but I cannot even find a "Desktop" or "Schreibtisch" Directory in my Library. 

 

 

When I wanted to reset my Mac I recognized that my "Schreibtisch / Desktop Folder" was an alias, which confused me 🤨. Before resetting my Mac, I moved the whole Folder to my OneDrive, because my IT told me I cannot make a Backup with Time Machine.  So after the reset, it seems like my Desktop is still only on the OneDrive 😵‍💫 which really confuses me, cause I thought it will create a new one when resetting the Mac. So any Ideas what I should do now? 

 

Thanks 

 

FYI @JohnColombo17100380 

JohnColombo17100380
Community Manager
Community Manager
May 25, 2023

Thank you, @JacobACrocker! I'm glad that you were able to get them running again. The locking of the Desktop folder is an interesting clue, any idea how that could have happened? E.g. is this computer managed by IT?

 

Thanks again,

- John, After Effects Engineering Team 

Participating Frequently
May 25, 2023

@JohnColombo17100380 Thank you for your suggestion. I fixed it on my side based on your idea. Here is what I found:

I opened Finder, toggled the "Go" menu, held down "option" and selected "Library" from the menu.
From there I saw that my "Desktop" folder was locked. Unlocking it did not help, so I deleted the desktop folder and created a new folder labeled "Desktop". My jsxbin files launch as expected now.

I have no idea what caused this for me, but I am ecstatic to see my tools functioning! Thank you!

Participating Frequently
May 25, 2023

Thank you! I'm happy to provide any information you think might be helpful.

JohnColombo17100380
Community Manager
Community Manager
May 25, 2023

@FabianFriedrich and @JacobACrocker,

I've merged both of your reports into this existing one for better tracking. We are investigating this issue to determine the root cause and whether we can make any fix on our side to prevent this from happening. We haven't yet been able to reproduce it on our side, so any additional information you can provide would be most appreciated.

 

Thanks for reporting and for any further info you can offer,

- John, After Effects Engineering Team 

Participating Frequently
May 25, 2023

When attempting to launch jsxbin files installed from aescript's installer app (a few of the scripts are Joysticks n' Sliders, Limber, and BoxCam 2) they all throw the same error: "Unable to execute script at line x. Null is not an object" (the "x" is a different line number depending on the script). 

I have seen the posts recommending disabling the "backup desktop" feature from the DropBox app, but I have never installed Dropbox on this computer. Does anyone know what causes this error or where I can start with troubleshooting it?

 

I am on a Mac, Ventura 13.4, 

Participating Frequently
May 25, 2023

I forgot to mention that I am using the latest release of After Effects (23.4)

JohnColombo17100380
Community Manager
Community Manager
May 22, 2023

@JG_Work_Account Sorry to see this is persisting for you as well. In talking with our engineers, it's possible this issue could be caused by moving or renaming the Desktop folder, or possibly due to non-Latin characters in the username (which become part of the path). It also may be worth checking if the environment variables for HOME, PWD, and OLDPWD are correct by using the "env" command inside the Terminal.

 

Thank you for any further info you can provide,

- John, After Effects Engineering Team