So apart from these little issues filter services are working now for images!
How to test it:All you need is a filter program and a service .plist. Attached you will find the ones I am using to test things. You will need to adjust the path to the gs.sh shell script. That we use NSTypedFileContentsPboardType:tiff instead of NSTIFFPboardType is due to a limitation in the code that converts between file types and pasteboard types. We should fix that or rather move on to UTI.
The next step would be to write similar support for pasteboard type filtering and then to add the same code in NSSound and NSMovie. Add a proper filter service for ImageMagik (this one would not be a shell script but rather a DO application). And of course to fix all the issues listed above.
Hope you have fun with filter services, Fred
gs.sh
Description: application/shellscript
{
NSServices = (
{
NSFilter = GhostScript;
NSInputMechanism = NSUnixStdio;
NSPortName = "/home/fred/GNUstep/Examples/gs.sh";
NSSendTypes = (
NSTypedFilenamesPboardType:ps, NSTypedFilenamesPboardType:eps,
NSTypedFilenamesPboardType:pdf
);
NSReturnTypes = (
NSTypedFileContentsPboardType:tiff
);
},
);
}
_______________________________________________ Gnustep-dev mailing list [email protected] https://lists.gnu.org/mailman/listinfo/gnustep-dev
