specialfolderpath changed behaviour 6.5 vs 7.0 (Windows 7)?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Havanna
Posts: 53
Joined: Wed May 14, 2014 3:00 pm

specialfolderpath changed behaviour 6.5 vs 7.0 (Windows 7)?

Post by Havanna » Tue Oct 28, 2014 9:32 pm

I have different results for specialfolderpath("engine") under Windows 7

put specialfolderpath("engine") & "Rauch.sqlite" gets
Versions up to 6.5: Rauch.sqlite
But in new ver 7.0: C:\Program Files (x86)\RunRev\LiveCode 7.0Rauch.sqlite

I can add a slash of course, and can copy my database, but is this behaviour intentional?
and does the cnange affect path specifications in other places/OS as well?

I am still struggling with this path-juggling for different platforms, as the current project is intended for Ansdroid as well as IOS, Windows and OSX.

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: specialfolderpath changed behaviour 6.5 vs 7.0 (Windows

Post by Klaus » Wed Oct 29, 2014 1:08 pm

Hola Havanna,

well, specialfolderpath("engine") did not work on desktop machines in LC < 6.7! 8)

In that case this would simply return EMPTY!
Read up the dictionary for more info about the current behaviour!


Best

Klaus

Havanna
Posts: 53
Joined: Wed May 14, 2014 3:00 pm

Re: specialfolderpath changed behaviour 6.5 vs 7.0 (Windows

Post by Havanna » Wed Oct 29, 2014 1:42 pm

thx Klaus,
should have found that myself :(

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: specialfolderpath changed behaviour 6.5 vs 7.0 (Windows

Post by jacque » Wed Oct 29, 2014 4:57 pm

That's interesting, because I've never seen any specialFolderPath function return with a slash at the end. I've always needed to add it.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: specialfolderpath changed behaviour 6.5 vs 7.0 (Windows

Post by Klaus » Wed Oct 29, 2014 5:17 pm

jacque wrote:That's interesting, because I've never seen any specialFolderPath function return with a slash at the end.
Who said it would now? 8)
But in new ver 7.0: C:\Program Files (x86)\RunRev\LiveCode 7.0Rauch.sqlite

:D

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: specialfolderpath changed behaviour 6.5 vs 7.0 (Windows

Post by jacque » Wed Oct 29, 2014 7:57 pm

I was being diplomatic. ;)
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am

Re: specialfolderpath changed behaviour 6.5 vs 7.0 (Windows

Post by sphere » Wed Nov 19, 2014 9:28 pm

Hello,

now i have a question to this too :)

Aswel as for windows as for android you can choose ENGINE and DOCUMENTS.
Engine (on windows) being as i could see there were Livecode is installed, and Documents of course the users Documents.
Were would this be on Android?

Can i use specialfolderpath if i add the files as Non-stack files in the Stand alone application settings? or should the file then called on another way.
The FIles are little sound samples.
And will it then be exported as one file or as the apk with referenced files?

I'm creating something for Android (a new little project) , but am writing and testing in Windows first.

Thanks for any help on this.

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: specialfolderpath changed behaviour 6.5 vs 7.0 (Windows

Post by Klaus » Thu Nov 20, 2014 9:32 pm

Hi sphere,
sphere wrote:Aswel as for windows as for android you can choose ENGINE and DOCUMENTS.
Engine (on windows) being as i could see there were Livecode is installed, and Documents of course the users Documents.
Were would this be on Android?
on the mobile platform ALWAYS store everything in -> specialfolderpath("documents")
sphere wrote:Can i use specialfolderpath if i add the files as Non-stack files in the Stand alone application settings? or should the file then called on another way.
Everything you add vie the "Copy files" tab in the standalone builder settings will be found here on the device -> specialfolderpath("engine")
sphere wrote:And will it then be exported as one file or as the apk with referenced files?
As referenced (single) files.


Best

Klaus

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am

Re: specialfolderpath changed behaviour 6.5 vs 7.0 (Windows

Post by sphere » Thu Nov 20, 2014 9:59 pm

Hello Klaus,

thanks for your clear answer, just what i needed to know ! :)

Have a nice evening !

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: specialfolderpath changed behaviour 6.5 vs 7.0 (Windows

Post by Simon » Thu Nov 20, 2014 10:21 pm

One caution to save some headaches.
There is a liveCode version out that has a bug where if the Copy Files contains only a folder of assets it does not work. Individual files work and also I think an individual file and a folder works.

Ahh here a more complete report
http://quality.runrev.com/show_bug.cgi?id=13838

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am

Re: specialfolderpath changed behaviour 6.5 vs 7.0 (Windows

Post by sphere » Fri Nov 21, 2014 4:42 pm

Thanks Simon!
I would like to read it but the page is not letting me in.
I changed the password twice, but still it keeps saying that my login is not correct.


But i only use version 7 Community now, so hopefully that bug is not in :)

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: specialfolderpath changed behaviour 6.5 vs 7.0 (Windows

Post by Simon » Fri Nov 21, 2014 10:17 pm

Here posted by re.mu
LC 6.6.3.4020 -> good
LC 6.6.4.4033 -> bad
LC 6.6.5.4040 -> bad
LC 6.7.0.5012 -> bad
LC 7.0.0.10016 -> bad
Workaround is to manually add each file from the folder.
You should test it.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am

Re: specialfolderpath changed behaviour 6.5 vs 7.0 (Windows

Post by sphere » Sat Nov 22, 2014 10:42 am

Thanks a lot Simon.

I will check it out.

cheers!

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: specialfolderpath changed behaviour 6.5 vs 7.0 (Windows

Post by jacque » Sat Nov 22, 2014 4:57 pm

sphere wrote:I would like to read it but the page is not letting me in.
I changed the password twice, but still it keeps saying that my login is not correct.
The bug database requires its own login., different from your main RR user account. If you have never logged into the QCC before, you need to set up a new account there.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am

Re: specialfolderpath changed behaviour 6.5 vs 7.0 (Windows

Post by sphere » Sat Nov 22, 2014 10:36 pm

Thanks Jacque,

i had a separate login, but could not remember my password, that's why i changed it twice as it kept refusing to let me in.
I will try to use another password, maybe it will solve it then.

Post Reply