Exporting snapshots of objects.
Moderator: Klaus
-
- Livecode Opensource Backer
- Posts: 10078
- Joined: Fri Feb 19, 2010 10:17 am
Exporting snapshots of objects.
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".
I would be grateful if users could run this stack and report back here their OS & version, & "Yes" or "No".
Re: Exporting snapshots of objects.
LiveCode Indy 9.0 (dp10) on Windows 10 gives me a Yes result with a pretty horror image.
Re: Exporting snapshots of objects.
- did not try Lc 6.0.1richmond62 wrote: ↑Sun Nov 26, 2017 7:22 pmI would be grateful if users could run this stack and report back here their OS & version, & "Yes" or "No".
- 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)

-
- Livecode Opensource Backer
- Posts: 10078
- Joined: Fri Feb 19, 2010 10:17 am
Re: Exporting snapshots of objects.
The stack failed to open in 6.0.1 because it was made with LC 7.1.4.
Re: Exporting snapshots of objects.
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.richmond62 wrote: ↑Sun Nov 26, 2017 8:30 pmThe stack failed to open in 6.0.1 because it was made with LC 7.1.4.

-
- Livecode Opensource Backer
- Posts: 10078
- Joined: Fri Feb 19, 2010 10:17 am
Re: Exporting snapshots of objects.
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.unfortunately in the first post, no information was given as to the version that created it
I authored the stack in LC 7.1.4 because THERE export snapshot does work.
Re: Exporting snapshots of objects.
Hi All,
I tested it with LC 8.1.7
doesn't work
but
works
Best regards
Jean-Marc
I tested it with LC 8.1.7
Code: Select all
-- export snapshot from group "horror" to file "TestExport.png" as PNG
but
Code: Select all
put specialfolderpath("documents") & "/" & "TestExport.png" into tPath
export snapshot from group "horror" to file tPath as PNG

Best regards
Jean-Marc
https://alternatic.ch
Re: Exporting snapshots of objects.
Looks like MacOSX does not allow to write into the application folder... 

Re: Exporting snapshots of objects.
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.
Re: Exporting snapshots of objects.
Well well, where to start.richmond62 wrote: ↑Sun Nov 26, 2017 8:50 pmI'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.unfortunately in the first post, no information was given as to the version that created it
. I authored the stack in LC 7.1.4 because THERE export snapshot does work.
..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 -
..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.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".
..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.

Re: Exporting snapshots of objects.
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.
Re: Exporting snapshots of objects.
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:
"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"
http://livecode.wikia.com/wiki/Export_snapshot
http://docs.runrev.com/Command/export-snapshot
Dictionary reads:
A warning like this: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.
"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"
-
- Livecode Opensource Backer
- Posts: 10078
- Joined: Fri Feb 19, 2010 10:17 am
Re: Exporting snapshots of objects.
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.
My Bad.
-
- Livecode Opensource Backer
- Posts: 10078
- Joined: Fri Feb 19, 2010 10:17 am
Re: Exporting snapshots of objects.
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.