Translate code from Mac to PC
roger.e.eller at sealedair.com
Fri Nov 22 03:01:05 CET 2013
I don't see why your code isn't ok for both Mac and Windows. It looks like
it would use the default image viewer.
On Nov 21, 2013 6:56 PM, "James Hurley" <jhurley0305 at sbcglobal.net> wrote:
> I need a little code translation for a program I am doing for a local
> It is a drawing program. After the drawing is complete, I need a way for
> the student to print and or save the image.
> On the Mac that is easy. Take a snapshot of the rect containing the image,
> save it to disk, launch the file and it opens in Preview.
> And from Preview, the image can be printed or saves. Here is that in Mac
> on mouseUp
> ask "Please name this image." with "MyImage"
> if it is "" then exit mouseUP
> put "/" & it & ".png" into tName
> put specialFolderPath ( "desktop") & tName Into tPathAndName
> export snapshot from rect (rect of graphic "oval") of this card to
> file tPathAndName as PNG
> launch document tPathAndName
> end mouseUp
> I need this for the PC as well. Is there an app on the PC that opens any
> PNG file that is double clicked?
> Jim Hurley
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the use-livecode