I have been given a project that was built using Realbasic about 6 years ago. All images used in the app for buttons and so on are all .PICT
They open perfectly on an old mac, where it all resides BUT when I try to open or import them or even use photoshop to open them… anything… on a new mac: the images are all corrupted.
So I tried using the automator to convert them in the old mac. but it fails. The output images are all corrupt too.
Only thing that works so far is to open each image individually using preview and “save as”
I have hundreds of images to convert to jpg to try and recompile the app using XOJO.
PICT has been deprecated since the first version of OS X, some fifteen years ago. If you really need support for PICT and the OS doesn’t open them, you can write your own functions that parse the files (though it might get tricky for vectors to reproduce the same image).
if xojo can load them on that older machine, or on a machine running Sierra, then its probably faster to just receive the images in the open document of a little test app and re-save them as pngs or jpegs depending on what they are for than to purchase and learn to use some batch processing app. Its probably 7 lines of code in the openDocument event and then save them back out.
function openDocument( item as folderItem)
dim p as picture = picture.open( item)
if p <> nil then
dim f as folderitem = item.parent.child( item.name + .png)
p.save( f, picture.saveAsPNG)
end if
end function
and just compile it and drag and drop them onto the app. You can run it on the older OS version. might want to do them in small batches until you know for sure its working
Joe, you don’t understand. YES, they have been deprecated long ago, yet, they load perfectly well in 2016R3 under Sierra. So no need to reinvent the wheel.
It did not work with 2013R1. I verified it then.
Among other tests, I was also able to verify that SheepShaver the Mac OS 9 emulator did open Pict in Mac OS document viewer, and after copying it, the clipboard was available in Sierra.