Translate code from Mac to PC

Scott Rossi scott at tactilemedia.com
Thu Nov 21 19:10:20 EST 2013


Hi Jim:

By default, whatever is the default app for images on Windows will open,
which is often Paint or Windows Photo Viewer.  (On my system,
double-clicking a GIF launches IE.)

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 11/21/13 3:56 PM, "James Hurley" <jhurley0305 at sbcglobal.net> wrote:

>I need a little code translation for a program I am doing for a local
>school.
>
>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
>speak.
>
>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?
>
>Thanks,
>
>Jim Hurley
>_______________________________________________
>use-livecode mailing list
>use-livecode at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode
>






More information about the use-livecode mailing list