There is a bug in Script Panel, which breaks all lines of code with `$.fileName` Refer to the discussion at [Adobe Community](https://community.adobe.com/t5/illustrator-discussions/filename-will-not-work-in-script-in-os-x/m-p/14299776#M390998)