In fact, I hardly wrote anything myself. I am new in Applescript and have only modified some existing code before. I just requested GPT-4 to write the code based on my ideas and then debug. This process took about 2 hours. Most of the time was spent on handling Chinese encoding and not knowing how to properly handle POSIX-formatted paths. Sometimes (especially in the two situations mentioned earlier), it couldn’t provide the correct results, so I had to figure out ways to help it bypass the issue.
↧