Launching Preview
Roger Eller
roger.e.eller at sealedair.com
Wed Nov 20 13:05:05 EST 2013
Oops. Only works if Preview is already open. Probably needs the full path.
On Wed, Nov 20, 2013 at 1:00 PM, Roger Eller <roger.e.eller at sealedair.com>wrote:
> on mouseUp
> put "tell application" && quote & "System Events" & quote && "to
> keystroke" && quote & "n" & quote && "using {command down}" into
> tAppleScript
> export snapshot from grp "theGroup" to tempVariable as PNG
> set the clipboardData["image"] to tempVariable
> launch "Preview.app"
> do tAppleScript as AppleScript
> end mouseUp
>
> ~Roger
>
> On Wed, Nov 20, 2013 at 12:33 PM, Jim Hurley <jhurley0305 at sbcglobal.net>wrote:
>
>> I am trying to launch a snapshot of a group in Preview.
>>
>> Right now I am using:
>>
>> case "Print"
>> put specialFolderPath("desktop") & "/exported.png" into
>> theFilePath
>> export snapshot from theGroup to file theFilePath as PNG
>> launch document theFilePath --On the Mac, the default launch
>> for a PNG is Preview
>> break
>> end switch
>>
>> I'm not sure where I got this--someone in this group, no doubt. Thank
>> you, whoever you were.
>>
>> But I may be using this at a local school, using school computers.
>> So I was wondering whether it would be possible to do this without
>> creating a file on the school's disk. For example:
>>
>> case "Print"
>> export snapshot from theGroup to tempVariable as PNG
>> launch ??? tempVariable
>> break
>> end switch
>>
>> 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