Exporting snapshots of objects.

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 2720
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria
Contact:

Exporting snapshots of objects.

Post by richmond62 » Sun Nov 26, 2017 7:22 pm

Well, in LC 8.1.8 this works with Mac OS 10.13.1, and it doesn't work with Mac OS 10.7.5, as to Windows and Linux, I'm not sure.

I would be grateful if users could run this stack and report back here their OS & version, & "Yes" or "No".
Test Exporter.livecode.zip
Here's the stack.
(3.11 KiB) Downloaded 51 times
TestEx.png
The stack looks like this.
TestExport714.png
If the group exports as an image it should look like this.
TestExport714.png (5.46 KiB) Viewed 2299 times

SparkOut
Posts: 1798
Joined: Sun Sep 23, 2007 4:58 pm

Re: Exporting snapshots of objects.

Post by SparkOut » Sun Nov 26, 2017 8:15 pm

LiveCode Indy 9.0 (dp10) on Windows 10 gives me a Yes result with a pretty horror image.

bogs
Posts: 2209
Joined: Sat Feb 25, 2017 10:45 pm

Re: Exporting snapshots of objects.

Post by bogs » Sun Nov 26, 2017 8:28 pm

richmond62 wrote:
Sun Nov 26, 2017 7:22 pm
I would be grateful if users could run this stack and report back here their OS & version, & "Yes" or "No".
- did not try Lc 6.0.1
- Linux vers. - Debian 3.16.43-2+deb8u5 (2017-09-19) x86_64 GNU/Linux
  • Lc 6.5.2 (failed to open, same for 6.7.9)
  • Lc 7.1.4, "Yes" (saved to folder stack was in)
  • Lc 8.1.6 "Yes" (saved to home folder)
Image

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 2720
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria
Contact:

Re: Exporting snapshots of objects.

Post by richmond62 » Sun Nov 26, 2017 8:30 pm

The stack failed to open in 6.0.1 because it was made with LC 7.1.4.

bogs
Posts: 2209
Joined: Sat Feb 25, 2017 10:45 pm

Re: Exporting snapshots of objects.

Post by bogs » Sun Nov 26, 2017 8:34 pm

richmond62 wrote:
Sun Nov 26, 2017 8:30 pm
The stack failed to open in 6.0.1 because it was made with LC 7.1.4.
LOL. I didn't try it in 6.0.1, I realized that it was made in later than 6.x when it failed to open in 6.7, but opened in 7.x, unfortunately in the first post, no information was given as to the version that created it, or which to start in, only what you had tested.
Image

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 2720
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria
Contact:

Re: Exporting snapshots of objects.

Post by richmond62 » Sun Nov 26, 2017 8:50 pm

unfortunately in the first post, no information was given as to the version that created it
I'm sorry, but as my point referred to export snapshot not working in 8.1.7 I was a bit surprised that you opened the thing in a comparatively ancient recension of LiveCode.

I authored the stack in LC 7.1.4 because THERE export snapshot does work.

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2225
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Exporting snapshots of objects.

Post by jmburnod » Sun Nov 26, 2017 9:29 pm

Hi All,
I tested it with LC 8.1.7

Code: Select all

--   export snapshot from group "horror" to file "TestExport.png" as PNG
doesn't work
but

Code: Select all

   put specialfolderpath("documents") & "/" & "TestExport.png" into tPath
   export snapshot from group "horror" to file tPath as PNG
works 8)
Best regards
Jean-Marc

capellan
Posts: 513
Joined: Wed Aug 15, 2007 11:09 pm
Contact:

Re: Exporting snapshots of objects.

Post by capellan » Sun Nov 26, 2017 11:54 pm

Looks like MacOSX does not allow to write into the application folder... :shock:

shaosean
Posts: 907
Joined: Thu Nov 04, 2010 7:53 am

Re: Exporting snapshots of objects.

Post by shaosean » Mon Nov 27, 2017 2:58 am

I think that's been the advice for a long time now. I think *NIX based systems have pretty much always enforced this, and Windows started with Vista (including the registry). Application files, that the end user has no need to interact with, should be in the Application Support/Data, Preferences folders. A little more work on your part, but less headaches in the long run.

bogs
Posts: 2209
Joined: Sat Feb 25, 2017 10:45 pm

Re: Exporting snapshots of objects.

Post by bogs » Mon Nov 27, 2017 3:47 am

richmond62 wrote:
Sun Nov 26, 2017 8:50 pm
unfortunately in the first post, no information was given as to the version that created it
I'm sorry, but as my point referred to export snapshot not working in 8.1.7 I was a bit surprised that you opened the thing in a comparatively ancient recension of LiveCode.
. I authored the stack in LC 7.1.4 because THERE export snapshot does work.
Well well, where to start.
..1. I'm not sure I saw this "my point referred to export snapshot not working in 8.1.7" in your original post which, as far as I could tell, only referred to operating system versions -
richmond62 » Sun Nov 26, 2017 1:22 pm wrote: Well, in LC 8.1.8 this works with Mac OS 10.13.1, and it doesn't work with Mac OS 10.7.5, as to Windows and Linux, I'm not sure.
. I would be grateful if users could run this stack and report back here their OS & version, & "Yes" or "No".
..2. From that original post, I *thought* you might be looking for just general information along the lines you asked about, i.e. run a test, put yes / no, put the os and version tested in. I am really very sorry I somehow did not translate this into what you requested somehow, but my intentions were a good faith effort to do so, and in that vein I attempted to test it in versions I have installed.
..3. I'm not sure where the big deal is, or why you seem determined to pick out the posts I made for vitriolic comment, as I was only trying to be helpful and complete. If some of the information I include is not helpful to you, feel free to disregard it.

If your just having a bad day, then sorry to hear it, but I don't think I deserved to be on the receiving end of it.

Good luck with your test.
Image

shaosean
Posts: 907
Joined: Thu Nov 04, 2010 7:53 am

Re: Exporting snapshots of objects.

Post by shaosean » Mon Nov 27, 2017 4:13 am

yeah, his reply was a bit of a dick reply.. i would have thanked you for your efforts and quietly disregarded information that was not needed for my purposes..
tact |takt|
noun
adroitness and sensitivity in dealing with others or with difficult issues: the inspector broke the news to me with tact and consideration.

capellan
Posts: 513
Joined: Wed Aug 15, 2007 11:09 pm
Contact:

Re: Exporting snapshots of objects.

Post by capellan » Mon Nov 27, 2017 4:46 am

Interesting enough, a warning about the Export Snapshot path should be added to the Dictionary and Wikia:
http://livecode.wikia.com/wiki/Export_snapshot
http://docs.runrev.com/Command/export-snapshot

Dictionary reads:
The filePath specifies the name and location of the file you want to export to. If you specify a name but not a location, the file is created in the defaultFolder.
A warning like this:
"Most OS does not allows saving an image into their Application Folder, so before exporting a snapshot, check the property defaultfolder to verify that you are not saving into the Application folder"

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 2720
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria
Contact:

Re: Exporting snapshots of objects.

Post by richmond62 » Mon Nov 27, 2017 8:02 pm

Very sorry bogs: what can I say as an excuse; err, well, "bad day at the chalk face", which is a bit lame seeing it was the weekend.

My Bad.

bogs
Posts: 2209
Joined: Sat Feb 25, 2017 10:45 pm

Re: Exporting snapshots of objects.

Post by bogs » Mon Nov 27, 2017 8:22 pm

No problems my friend, we all have those kinds of days :)
Image

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 2720
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria
Contact:

Re: Exporting snapshots of objects.

Post by richmond62 » Mon Nov 27, 2017 8:54 pm

Elsewhere, with the help of Brian Milby, I have worked out that, on Mac OS 10.7.5 (and other Macintosh systems ???), the export snapshot command exports an image to INSIDE the LiveCode.app bundle.
Surprise.png

Post Reply

Return to “Feature Requests”