Creating ZIP in JSX on macOS
Hey everybody.
This is a JSX question that runs on Illustrator. But I'm not sure if it can be called scripting in Illustrator.
I want to create a ZIP of a specified directory in JSX on macOS.
I knew that, but I couldn't do it.
As a compromise, I created a ".command" file with terminal commands. But the permissions were not acceptable.
I compromised further and created a .command file with invisible attributes in advance, so that JSX could only rewrite the contents of the .command file.
The rewriting succeeded. However, the contents of the .command file were not executed.
I checked before and after the rewriting with a text editor, and found that the line feed code was identified as CR after the rewriting in JSX.
I changed it to LF in the editor and double-clicked the saved file.
But I don't understand, the rewritten text in JSX also has (10) as the character code for newlines.
I don't know much about this area.I tried all the File.linefeed properties, but it didn't help.
So, I'm looking for a solution to my problem, or an alternative way to create a ZIP file in JSX on macOS.
BridgeTalk preferably not used.
Thank you in advance!

