Save Image Clipboard to file
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Save Image Clipboard to file
Hi All,
This utility stack saves as a png file
an image in the clipboard. There is
an option to automate this task.
Tell me if this works fine in your
own setup.
Al
This utility stack saves as a png file
an image in the clipboard. There is
an option to automate this task.
Tell me if this works fine in your
own setup.
Al
-
- Livecode Opensource Backer
- Posts: 9287
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Save Image Clipboard to file
No joy over here I'm afraid: LiveCode 8.1.3 rc2, Mac OS 10.7.5
Re: Save Image Clipboard to file
Hi Richmond,
That error is a surprise for me.
Does MacOSX stops LiveCode from
empty the image clipboard?
Could you test it in Ubuntu and Windows?
It works fine in these platforms, as far
as I know.
That error is a surprise for me.
Does MacOSX stops LiveCode from
empty the image clipboard?
Could you test it in Ubuntu and Windows?
It works fine in these platforms, as far
as I know.
-
- Livecode Opensource Backer
- Posts: 9287
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Save Image Clipboard to file
Removing line 13 of the script the stack works:
HOWEVER: the original file came to 553 KB, the one your stack produced came to 5.3 MB!
HOWEVER: the original file came to 553 KB, the one your stack produced came to 5.3 MB!
Re: Save Image Clipboard to file
Looks like the original image file is compressed
and the image in the clipboard is not compressed.
Which image file format uses MacOSX for
images copied in the clipboard? TIFF?
https://discussions.apple.com/thread/4883983?tstart=0
https://discussions.apple.com/thread/1849000?tstart=0
and the image in the clipboard is not compressed.
Which image file format uses MacOSX for
images copied in the clipboard? TIFF?
https://discussions.apple.com/thread/4883983?tstart=0
https://discussions.apple.com/thread/1849000?tstart=0
-
- VIP Livecode Opensource Backer
- Posts: 7215
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Save Image Clipboard to file
The syntax in line 13 should be
Code: Select all
put empty into the clipboardData["image"]
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Save Image Clipboard to file
Richmond,
Did you noticed Jacque message?
Does clearing the image clipboard
works now on MacOSX?
Did you noticed Jacque message?
Does clearing the image clipboard
works now on MacOSX?
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Save Image Clipboard to file
Hi All,
On OS X 10.12.3 i get for
"Script compile error:
Error description: Chunk: can't create a variable with that name (explicitVariables?)"
and for
"Message execution error:
Error description: set: can't set property
Hint:
Best
Jean-Marc
On OS X 10.12.3 i get for
Code: Select all
put empty into the clipboardData["image"]
Error description: Chunk: can't create a variable with that name (explicitVariables?)"
and for
Code: Select all
set the clipboarddata["image"] to empty
Error description: set: can't set property
Hint:
Best
Jean-Marc
https://alternatic.ch
-
- VIP Livecode Opensource Backer
- Posts: 3991
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: Save Image Clipboard to file
Hi Jean-Marc
Kind regards
Bernd
Could you try this, it works for me. Actually the "the" is for properties, here you want to put it into a container.On OS X 10.12.3 i get for
CODE: SELECT ALL
put empty into the clipboardData["image"]
"Script compile error:
Error description: Chunk: can't create a variable with that name (explicitVariables?)"
Code: Select all
put empty into clipboardData["image"]
Bernd
-
- VIP Livecode Opensource Backer
- Posts: 7215
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Save Image Clipboard to file
Bernd to the rescue. I was on auto-pilot when I wrote that.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 3991
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: Save Image Clipboard to file
According to the dictionary (LC 9DP4) Alejandro's script should have workedjacque wrote:Bernd to the rescue. I was on auto-pilot when I wrote that.
Code: Select all
set the clipboarddata["image"] to empty
from the dictionary:
Code: Select all
set the clipboardData["text"] to "привет"
Code: Select all
put empty into the clipboardData["image"]
I noticed that with more recent versions there are subtle changes especially being more strict in some cases.
This might be one of those where something changed for the put version.
But I think the set version should work or it should be documented that it does not.
Kind regards
Bernd
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Save Image Clipboard to file
Hi Bernd,
I don't know where was my brain for don't try without "the"
works for me LC 8.1.3
Kind regards
Jean-Marc
I don't know where was my brain for don't try without "the"
Code: Select all
put empty into clipboarddata["image"]
Kind regards
Jean-Marc
https://alternatic.ch
Re: Save Image Clipboard to file
Hi All,
Many thanks for keeping alive this thread!
Looks like there are many subtle changes in the
syntax of LiveCode... changes that nobody notices
until it breaks some code.
Many thanks for keeping alive this thread!
Looks like there are many subtle changes in the
syntax of LiveCode... changes that nobody notices
until it breaks some code.