Monday, March 29, 2010

MacOs/Windows cross platform development

Hello everyone!



I need to write application that uses Photoshop CS3 for example to create new document, add new text layer to this document, add some text to this layer and save document. Text is read for example from DB. That's why I can't use JavaScript for Photoshop scripting.



This is easy to accomplish using for example C#.NET and COM(to access Photoshop) at Windows platform. It becomes a bit more complicated with Objective C and AppleScript at MacOS platform. But the main problem is I need to write application that works at both platforms (MacOS and Windows). This means that neither C# and COM nor Objective C is suitable for this task.



I've tried to write system like system with two components - some external to Photoshop application(could be platform specific - for example uses COM at Windows) that reads information from DB and Photoshop plug-in written in C++ that performs Photoshop - related tasks (e.g. creating new document, making new layer and so on).

But I faced a problem - I don't know how to force Photoshop to call exact plug-in with some parameters(for example text to output) from external application. (Is it possible to do this?)



So my question - Is it possible to create cross platform(MacOS and Windows) system for described above task? The main approach is to have one code base for two platforms.



I will be really appreciate for any response.



Thanks.

No comments:

Post a Comment