I'm writing a PS Plugin and I see that it's working different on mac and on windows. Can anybody explain why?
More about it:
I create new text layer and style it. Then I push button on my plugin which run script. This script gets json data with a list of texts from server. Then it iterates through this list and doing next:
- Creates a duplicate of existing styled layer;
- Changes text of duplicated layer to text from my list;
- Saves this layer as PNG image.
- Sends this image to server.
- Deletes image.
This process repeats for each text in list. And after ask for another batch of json data from server.
I've tested this on Mac OS and on Windows machines. And result time for mac was 2-4 times bigger then time on windows.
Do you really mean a plugin or do you mean a Script?
Even if you should be talking about a Script but do not feel like posting the code it might be difficult to try and help you.
And if you are talking a bout a plugin (C++ or whatever) this may not be the ideal Forum for addressing the issue.
A couple of pointers that might or might not be relevant (since you might be doing going through all layers):