Re: Externally reffed-off
>From the shell dictionary entry: *Note:* If you use a file path in the shell command on a Windows system, the file path must be in Windows form, not the Unix-style file paths that LiveCode uses internally. > On Wed, Jan 10, 2018 at 2:15 PM Richmond Mathewson via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> Although "/" was mentioned in the post to which I replied I have come >> across >> places (not sure where: Windows?) where the itemDelimiter for pathways is >> a backslash "\" . . . >> >> Richmond. >> >> ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Externally reffed-off
On 10/1/2018 10:21 pm, Klaus major-k via use-livecode wrote: Hi Richmond, Am 10.01.2018 um 21:14 schrieb Richmond Mathewson via use-livecode: Although "/" was mentioned in the post to which I replied I have come across places (not sure where: Windows?) where the itemDelimiter for pathways is a backslash "\" . . . internally LC uses the SLASH as a pathdelimiter always and on ANY platform! That's a great comfort ;-) Best, Richmond. Richmond. On 10/1/2018 9:02 pm, Stephen Barncard via use-livecode wrote: We can count on you, Richmond to ask the questions that the rest of us are afraid to ask thanks for being here, grumpy or not -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org On Wed, Jan 10, 2018 at 10:50 AM, Richmond Mathewson via use-livecode < use-livecode@lists.runrev.com> wrote: Presumably the itemDelimiter should be "/" ? Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Externally reffed-off
That is for the shell function. On Wed, Jan 10, 2018 at 2:15 PM Richmond Mathewson via use-livecode < use-livecode@lists.runrev.com> wrote: > Although "/" was mentioned in the post to which I replied I have come > across > places (not sure where: Windows?) where the itemDelimiter for pathways is > a backslash "\" . . . > > Richmond. > > On 10/1/2018 9:02 pm, Stephen Barncard via use-livecode wrote: > > We can count on you, Richmond to ask the questions that the rest of us > are > > afraid to ask > > > > thanks for being here, grumpy or not > > > > -- > > Stephen Barncard - Sebastopol Ca. USA - > > mixstream.org > > > > On Wed, Jan 10, 2018 at 10:50 AM, Richmond Mathewson via use-livecode < > > use-livecode@lists.runrev.com> wrote: > > > >> Presumably the itemDelimiter should be "/" ? > >> > >> Richmond. > >> > >> > >> On 10/1/2018 2:47 pm, Mike Bonner via use-livecode wrote: > >> > >>> you still need to set the itemdelimiter for it to work Richmond, > otherwise > >>> its not able to count items. > >>> > >>> Also, I thought part of the issue was that you were referencing a > folder > >>> that is NOT in the application bundle using the copy files pane of the > >>> standalone settings. This is why using specialfolderpath("resources") > >>> doesn't work. > >>> > >>> Since you said you placed the app bundle next to the folder in > question, > >>> setting the itemdelimiter to "/" and then grabbing items 1 to -5 should > >>> solve the problem. (You had set the itemdel in your original example > >>> which > >>> is why I didn't bother to include it (or the rest of the handler.) > >>> > >>> On Wed, Jan 10, 2018 at 5:25 AM, Klaus major-k via use-livecode < > >>> use-livecode@lists.runrev.com> wrote: > >>> > >>> Hi Richmond, > Am 10.01.2018 um 13:23 schrieb Richmond Mathewson via use-livecode < > use-livecode@lists.runrev.com>: > > > And, IF, I were to try to port the thing to Android or iPad/iPhone > would > > specialfolderpath "do it" over there as well? > > > yes, as stated in the dictionary! > > Richmond. > Best > > Klaus > -- > Klaus Major > http://www.major-k.de > kl...@major-k.de > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > ___ > >>> use-livecode mailing list > >>> use-livecode@lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >>> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> > >> ___ > >> use-livecode mailing list > >> use-livecode@lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > ___ > > use-livecode mailing list > > use-livecode@lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Externally reffed-off
Hi Richmond, > Am 10.01.2018 um 21:14 schrieb Richmond Mathewson via use-livecode >: > > Although "/" was mentioned in the post to which I replied I have come across > places (not sure where: Windows?) where the itemDelimiter for pathways is > a backslash "\" . . . internally LC uses the SLASH as a pathdelimiter always and on ANY platform! > Richmond. > > On 10/1/2018 9:02 pm, Stephen Barncard via use-livecode wrote: >> We can count on you, Richmond to ask the questions that the rest of us are >> afraid to ask >> >> thanks for being here, grumpy or not >> >> -- >> Stephen Barncard - Sebastopol Ca. USA - >> mixstream.org >> >> On Wed, Jan 10, 2018 at 10:50 AM, Richmond Mathewson via use-livecode < >> use-livecode@lists.runrev.com> wrote: >> >>> Presumably the itemDelimiter should be "/" ? Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Externally reffed-off
Although "/" was mentioned in the post to which I replied I have come across places (not sure where: Windows?) where the itemDelimiter for pathways is a backslash "\" . . . Richmond. On 10/1/2018 9:02 pm, Stephen Barncard via use-livecode wrote: We can count on you, Richmond to ask the questions that the rest of us are afraid to ask thanks for being here, grumpy or not -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org On Wed, Jan 10, 2018 at 10:50 AM, Richmond Mathewson via use-livecode < use-livecode@lists.runrev.com> wrote: Presumably the itemDelimiter should be "/" ? Richmond. On 10/1/2018 2:47 pm, Mike Bonner via use-livecode wrote: you still need to set the itemdelimiter for it to work Richmond, otherwise its not able to count items. Also, I thought part of the issue was that you were referencing a folder that is NOT in the application bundle using the copy files pane of the standalone settings. This is why using specialfolderpath("resources") doesn't work. Since you said you placed the app bundle next to the folder in question, setting the itemdelimiter to "/" and then grabbing items 1 to -5 should solve the problem. (You had set the itemdel in your original example which is why I didn't bother to include it (or the rest of the handler.) On Wed, Jan 10, 2018 at 5:25 AM, Klaus major-k via use-livecode < use-livecode@lists.runrev.com> wrote: Hi Richmond, Am 10.01.2018 um 13:23 schrieb Richmond Mathewson via use-livecode < use-livecode@lists.runrev.com>: And, IF, I were to try to port the thing to Android or iPad/iPhone would specialfolderpath "do it" over there as well? yes, as stated in the dictionary! Richmond. Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Externally reffed-off
Yeah "/" exactly like you had it in your posted code. I swear, not useless. On Wed, Jan 10, 2018 at 11:50 AM, Richmond Mathewson via use-livecode < use-livecode@lists.runrev.com> wrote: > Presumably the itemDelimiter should be "/" ? > > Richmond. > > > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Externally reffed-off
We can count on you, Richmond to ask the questions that the rest of us are afraid to ask thanks for being here, grumpy or not -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org On Wed, Jan 10, 2018 at 10:50 AM, Richmond Mathewson via use-livecode < use-livecode@lists.runrev.com> wrote: > Presumably the itemDelimiter should be "/" ? > > Richmond. > > > On 10/1/2018 2:47 pm, Mike Bonner via use-livecode wrote: > >> you still need to set the itemdelimiter for it to work Richmond, otherwise >> its not able to count items. >> >> Also, I thought part of the issue was that you were referencing a folder >> that is NOT in the application bundle using the copy files pane of the >> standalone settings. This is why using specialfolderpath("resources") >> doesn't work. >> >> Since you said you placed the app bundle next to the folder in question, >> setting the itemdelimiter to "/" and then grabbing items 1 to -5 should >> solve the problem. (You had set the itemdel in your original example >> which >> is why I didn't bother to include it (or the rest of the handler.) >> >> On Wed, Jan 10, 2018 at 5:25 AM, Klaus major-k via use-livecode < >> use-livecode@lists.runrev.com> wrote: >> >> Hi Richmond, >>> >>> Am 10.01.2018 um 13:23 schrieb Richmond Mathewson via use-livecode < >>> use-livecode@lists.runrev.com>: >>> And, IF, I were to try to port the thing to Android or iPad/iPhone would specialfolderpath "do it" over there as well? >>> yes, as stated in the dictionary! >>> >>> Richmond. >>> Best >>> >>> Klaus >>> -- >>> Klaus Major >>> http://www.major-k.de >>> kl...@major-k.de >>> >>> >>> ___ >>> use-livecode mailing list >>> use-livecode@lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> ___ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Externally reffed-off
Presumably the itemDelimiter should be "/" ? Richmond. On 10/1/2018 2:47 pm, Mike Bonner via use-livecode wrote: you still need to set the itemdelimiter for it to work Richmond, otherwise its not able to count items. Also, I thought part of the issue was that you were referencing a folder that is NOT in the application bundle using the copy files pane of the standalone settings. This is why using specialfolderpath("resources") doesn't work. Since you said you placed the app bundle next to the folder in question, setting the itemdelimiter to "/" and then grabbing items 1 to -5 should solve the problem. (You had set the itemdel in your original example which is why I didn't bother to include it (or the rest of the handler.) On Wed, Jan 10, 2018 at 5:25 AM, Klaus major-k via use-livecode < use-livecode@lists.runrev.com> wrote: Hi Richmond, Am 10.01.2018 um 13:23 schrieb Richmond Mathewson via use-livecode < use-livecode@lists.runrev.com>: And, IF, I were to try to port the thing to Android or iPad/iPhone would specialfolderpath "do it" over there as well? yes, as stated in the dictionary! Richmond. Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Externally reffed-off
you still need to set the itemdelimiter for it to work Richmond, otherwise its not able to count items. Also, I thought part of the issue was that you were referencing a folder that is NOT in the application bundle using the copy files pane of the standalone settings. This is why using specialfolderpath("resources") doesn't work. Since you said you placed the app bundle next to the folder in question, setting the itemdelimiter to "/" and then grabbing items 1 to -5 should solve the problem. (You had set the itemdel in your original example which is why I didn't bother to include it (or the rest of the handler.) On Wed, Jan 10, 2018 at 5:25 AM, Klaus major-k via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi Richmond, > > > Am 10.01.2018 um 13:23 schrieb Richmond Mathewson via use-livecode < > use-livecode@lists.runrev.com>: > > > > And, IF, I were to try to port the thing to Android or iPad/iPhone would > > specialfolderpath "do it" over there as well? > > yes, as stated in the dictionary! > > > Richmond. > > Best > > Klaus > -- > Klaus Major > http://www.major-k.de > kl...@major-k.de > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Externally reffed-off
Hi Richmond, > Am 10.01.2018 um 13:23 schrieb Richmond Mathewson via use-livecode >: > > And, IF, I were to try to port the thing to Android or iPad/iPhone would > specialfolderpath "do it" over there as well? yes, as stated in the dictionary! > Richmond. Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Externally reffed-off
Hi Richmond, > Am 10.01.2018 um 13:20 schrieb Richmond Mathewson via use-livecode >: > > Well, YOUR LiveCode, MY LiveCode, EVERYONE'S LiveCode: ah, snappish answers! A typical reaction after having been caught! :-D > YOUR recipe worked. > Thanks a bucket! You're welcome! > Richmond. > > On 10/1/2018 2:01 pm, Klaus major-k via use-livecode wrote: >> Hi Richmond, >> >>> Am 10.01.2018 um 12:57 schrieb Richmond Mathewson via use-livecode >>> : >>> >>> My "problem" Klaus is that I don't know YOUR LiveCode, >> that's why I wrote "Know YOUR Livecode" and not "Know MY Livecode", Sir! :-) >> >>> but I do know MY LiveCode. >>> >>> I have a theory that once one has been working inwith a system for many >>> years >>> one's methods and mindset become fixed in a way that may not be very useful. >> But you know specialfolderpath("resources") and the fact that everything you >> add to >> your standalone(s) via the "Copy files..." tab in the standalone builder >> settings can be >> found in that sepcialfolderpath in the standalone? >> >>> Best, Richmond. >>> >>> On 10/1/2018 1:32 pm, Klaus major-k via use-livecode wrote: > Am 10.01.2018 um 12:17 schrieb Mike Bonner via use-livecode > : > > Change it to.. > set the defaultfolder to item 1 to -5 of the effective filename of this > stack > > and it should work. I don't have an available mac to test though, so > tweakage might be necessary. (not likely though its pretty > straightforward) > > You can put it in an if block if you want so that if the environment is > development you use the first method, else you use the second. Know your Livecode! :-) ... set the defaultfolder to specialfolderpath("resources") ... This should however not be neccessary since relative pathnames that work in the IDE should also work in a standalone and actually do! Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Externally reffed-off
And, IF, I were to try to port the thing to Android or iPad/iPhone would specialfolderpath "do it" over there as well? Richmond. On 10/1/2018 2:20 pm, Richmond Mathewson wrote: Well, YOUR LiveCode, MY LiveCode, EVERYONE'S LiveCode: YOUR recipe worked. Thanks a bucket! Richmond. On 10/1/2018 2:01 pm, Klaus major-k via use-livecode wrote: Hi Richmond, Am 10.01.2018 um 12:57 schrieb Richmond Mathewson via use-livecode: My "problem" Klaus is that I don't know YOUR LiveCode, that's why I wrote "Know YOUR Livecode" and not "Know MY Livecode", Sir! :-) but I do know MY LiveCode. I have a theory that once one has been working inwith a system for many years one's methods and mindset become fixed in a way that may not be very useful. But you know specialfolderpath("resources") and the fact that everything you add to your standalone(s) via the "Copy files..." tab in the standalone builder settings can be found in that sepcialfolderpath in the standalone? Best, Richmond. On 10/1/2018 1:32 pm, Klaus major-k via use-livecode wrote: Am 10.01.2018 um 12:17 schrieb Mike Bonner via use-livecode : Change it to.. set the defaultfolder to item 1 to -5 of the effective filename of this stack and it should work. I don't have an available mac to test though, so tweakage might be necessary. (not likely though its pretty straightforward) You can put it in an if block if you want so that if the environment is development you use the first method, else you use the second. Know your Livecode! :-) ... set the defaultfolder to specialfolderpath("resources") ... This should however not be neccessary since relative pathnames that work in the IDE should also work in a standalone and actually do! Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Externally reffed-off
Hi Richmond, > Am 10.01.2018 um 13:13 schrieb Richmond Mathewson via use-livecode >: > > I thought I'd "play a game", so I set up a new stack with 2 buttons: > > [Mac OS] > > Button 1 contained this script: > > onmouseUp >setthedefaultfoldertospecialfolderpath("resources" > endmouseUp > > and Button 2 contained this script: > > onmouseUp > putthedefaultFolder > endmouseUp > > I clicked on Button 1 and then on Button 2 > > and got this in the Message Box: > > /Users/richmondmathewson/LiveCode/LiveCode Indy > 8.1.8.app/Contents/Tools/Toolset sounds like you did not SAVE that stack so far. If saved specialfolderpath("resources") shoud give you the folder that stack has beeen saved in! > ... > Richmond. Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Externally reffed-off
Well, YOUR LiveCode, MY LiveCode, EVERYONE'S LiveCode: YOUR recipe worked. Thanks a bucket! Richmond. On 10/1/2018 2:01 pm, Klaus major-k via use-livecode wrote: Hi Richmond, Am 10.01.2018 um 12:57 schrieb Richmond Mathewson via use-livecode: My "problem" Klaus is that I don't know YOUR LiveCode, that's why I wrote "Know YOUR Livecode" and not "Know MY Livecode", Sir! :-) but I do know MY LiveCode. I have a theory that once one has been working inwith a system for many years one's methods and mindset become fixed in a way that may not be very useful. But you know specialfolderpath("resources") and the fact that everything you add to your standalone(s) via the "Copy files..." tab in the standalone builder settings can be found in that sepcialfolderpath in the standalone? Best, Richmond. On 10/1/2018 1:32 pm, Klaus major-k via use-livecode wrote: Am 10.01.2018 um 12:17 schrieb Mike Bonner via use-livecode : Change it to.. set the defaultfolder to item 1 to -5 of the effective filename of this stack and it should work. I don't have an available mac to test though, so tweakage might be necessary. (not likely though its pretty straightforward) You can put it in an if block if you want so that if the environment is development you use the first method, else you use the second. Know your Livecode! :-) ... set the defaultfolder to specialfolderpath("resources") ... This should however not be neccessary since relative pathnames that work in the IDE should also work in a standalone and actually do! Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Externally reffed-off
I thought I'd "play a game", so I set up a new stack with 2 buttons: [Mac OS] Button 1 contained this script: onmouseUp setthedefaultfoldertospecialfolderpath("resources" endmouseUp and Button 2 contained this script: onmouseUp putthedefaultFolder endmouseUp I clicked on Button 1 and then on Button 2 and got this in the Message Box: /Users/richmondmathewson/LiveCode/LiveCode Indy 8.1.8.app/Contents/Tools/Toolset So, feeling "really daring" I made a third button, "Button 3" (surely not?) containing this script: onmouseUp setthedefaultfoldertoitem 1 to-5 oftheeffectivefilenameofthis stack endmouseUp then clicked Button 3 followed by Button 2, and got this in the Message Box: /Users/richmondmathewson/LiveCode/LiveCode Indy 8.1.8.app/Contents/Tools/Toolset so, obviously " setthedefaultfoldertoitem 1 to-5 oftheeffectivefilenameofthis stack" is useless. Richmond. On 10/1/2018 1:32 pm, Klaus major-k via use-livecode wrote: set the defaultfolder to specialfolderpath("resources") ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Externally reffed-off
That did not work, unfortunately. Richmond. On 10/1/2018 1:17 pm, Mike Bonner via use-livecode wrote: Change it to.. set the defaultfolder to item 1 to -5 of the effective filename of this stack and it should work. I don't have an available mac to test though, so tweakage might be necessary. (not likely though its pretty straightforward) You can put it in an if block if you want so that if the environment is development you use the first method, else you use the second. On Wed, Jan 10, 2018 at 4:05 AM, Mike Bonnerwrote: Its because of this... *Cross-platform note:* On OS X systems, standalone applications are stored as application bundles. A bundle behaves like a file but is actually a folder, and the main stack of a standalone application is inside this folder. The filename of stack property reports the location of the application inside the bundle, not the bundle'slocation. For example, if the bundle's file path is "/Volumes/Disk/MyApp.app/", the filename of the application's main stack might be "/Volumes/Disk/MyApp.app/Contents/MacOS/MyApp". On Wed, Jan 10, 2018 at 3:54 AM, Richmond Mathewson via use-livecode < use-livecode@lists.runrev.com> wrote: I am currently working on something that calls a lot of external images which are stored in a folder called "rez" in the same location as my stack, and when my stack opens it works its way through the script: onpreOpenStack setitemDelto"/" setthedefaultFoldertoitem 1 to-2 of(theeffectivefileNameofthis stack) gotocard "TITLE" endpreOpenStack nothing particularly odd there. each image has "rez/imagename.png" set as its source. AND everything works in the stack. So would be extremely grateful why, when a Mac standalone is placed in exactly the same relation to the "rez" folder it does not "pick up" the images. Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Externally reffed-off
Hi Richmond, > Am 10.01.2018 um 12:57 schrieb Richmond Mathewson via use-livecode >: > > My "problem" Klaus is that I don't know YOUR LiveCode, that's why I wrote "Know YOUR Livecode" and not "Know MY Livecode", Sir! :-) > but I do know MY LiveCode. > > I have a theory that once one has been working inwith a system for many years > one's methods and mindset become fixed in a way that may not be very useful. But you know specialfolderpath("resources") and the fact that everything you add to your standalone(s) via the "Copy files..." tab in the standalone builder settings can be found in that sepcialfolderpath in the standalone? > Best, Richmond. > > On 10/1/2018 1:32 pm, Klaus major-k via use-livecode wrote: >> >>> Am 10.01.2018 um 12:17 schrieb Mike Bonner via use-livecode >>> : >>> >>> Change it to.. >>> set the defaultfolder to item 1 to -5 of the effective filename of this >>> stack >>> >>> and it should work. I don't have an available mac to test though, so >>> tweakage might be necessary. (not likely though its pretty >>> straightforward) >>> >>> You can put it in an if block if you want so that if the environment is >>> development you use the first method, else you use the second. >> Know your Livecode! :-) >> ... >> set the defaultfolder to specialfolderpath("resources") >> ... >> >> This should however not be neccessary since relative pathnames that work in >> the IDE should also work in a standalone and actually do! Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Externally reffed-off
My "problem" Klaus is that I don't know YOUR LiveCode, but I do know MY LiveCode. I have a theory that once one has been working inwith a system for many years one's methods and mindset become fixed in a way that may not be very useful. Best, Richmond. On 10/1/2018 1:32 pm, Klaus major-k via use-livecode wrote: Am 10.01.2018 um 12:17 schrieb Mike Bonner via use-livecode: Change it to.. set the defaultfolder to item 1 to -5 of the effective filename of this stack and it should work. I don't have an available mac to test though, so tweakage might be necessary. (not likely though its pretty straightforward) You can put it in an if block if you want so that if the environment is development you use the first method, else you use the second. Know your Livecode! :-) ... set the defaultfolder to specialfolderpath("resources") ... This should however not be neccessary since relative pathnames that work in the IDE should also work in a standalone and actually do! On Wed, Jan 10, 2018 at 4:05 AM, Mike Bonner wrote: Its because of this... *Cross-platform note:* On OS X systems, standalone applications are stored as application bundles. A bundle behaves like a file but is actually a folder, and the main stack of a standalone application is inside this folder. The filename of stack property reports the location of the application inside the bundle, not the bundle'slocation. For example, if the bundle's file path is "/Volumes/Disk/MyApp.app/", the filename of the application's main stack might be "/Volumes/Disk/MyApp.app/Contents/MacOS/MyApp". On Wed, Jan 10, 2018 at 3:54 AM, Richmond Mathewson via use-livecode < use-livecode@lists.runrev.com> wrote: I am currently working on something that calls a lot of external images which are stored in a folder called "rez" in the same location as my stack, and when my stack opens it works its way through the script: onpreOpenStack setitemDelto"/" setthedefaultFoldertoitem 1 to-2 of(theeffectivefileNameofthis stack) gotocard "TITLE" endpreOpenStack Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Externally reffed-off
Thank you very much, that's a great help. Richmond. On 10/1/2018 1:17 pm, Mike Bonner via use-livecode wrote: Change it to.. set the defaultfolder to item 1 to -5 of the effective filename of this stack and it should work. I don't have an available mac to test though, so tweakage might be necessary. (not likely though its pretty straightforward) You can put it in an if block if you want so that if the environment is development you use the first method, else you use the second. On Wed, Jan 10, 2018 at 4:05 AM, Mike Bonnerwrote: Its because of this... *Cross-platform note:* On OS X systems, standalone applications are stored as application bundles. A bundle behaves like a file but is actually a folder, and the main stack of a standalone application is inside this folder. The filename of stack property reports the location of the application inside the bundle, not the bundle'slocation. For example, if the bundle's file path is "/Volumes/Disk/MyApp.app/", the filename of the application's main stack might be "/Volumes/Disk/MyApp.app/Contents/MacOS/MyApp". On Wed, Jan 10, 2018 at 3:54 AM, Richmond Mathewson via use-livecode < use-livecode@lists.runrev.com> wrote: I am currently working on something that calls a lot of external images which are stored in a folder called "rez" in the same location as my stack, and when my stack opens it works its way through the script: onpreOpenStack setitemDelto"/" setthedefaultFoldertoitem 1 to-2 of(theeffectivefileNameofthis stack) gotocard "TITLE" endpreOpenStack nothing particularly odd there. each image has "rez/imagename.png" set as its source. AND everything works in the stack. So would be extremely grateful why, when a Mac standalone is placed in exactly the same relation to the "rez" folder it does not "pick up" the images. Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Externally reffed-off
> Am 10.01.2018 um 12:17 schrieb Mike Bonner via use-livecode >: > > Change it to.. > set the defaultfolder to item 1 to -5 of the effective filename of this > stack > > and it should work. I don't have an available mac to test though, so > tweakage might be necessary. (not likely though its pretty > straightforward) > > You can put it in an if block if you want so that if the environment is > development you use the first method, else you use the second. Know your Livecode! :-) ... set the defaultfolder to specialfolderpath("resources") ... This should however not be neccessary since relative pathnames that work in the IDE should also work in a standalone and actually do! > On Wed, Jan 10, 2018 at 4:05 AM, Mike Bonner wrote: > >> Its because of this... >> >> *Cross-platform note:* On OS X systems, standalone applications are >> stored as application bundles. A bundle behaves like a file but is >> actually a folder, and the main stack of a standalone application is >> inside this folder. The filename of stack property reports the location >> of the application inside the bundle, not the bundle'slocation. For >> example, if the bundle's file path is "/Volumes/Disk/MyApp.app/", the >> filename of the application's main stack might be >> "/Volumes/Disk/MyApp.app/Contents/MacOS/MyApp". >> >> On Wed, Jan 10, 2018 at 3:54 AM, Richmond Mathewson via use-livecode < >> use-livecode@lists.runrev.com> wrote: >> >>> I am currently working on something that calls a lot of external images >>> which are stored >>> in a folder called "rez" in the same location as my stack, and when my >>> stack opens it >>> works its way through the script: >>> >>> onpreOpenStack >>>setitemDelto"/" >>>setthedefaultFoldertoitem 1 to-2 of(theeffectivefileNameofthis stack) >>>gotocard "TITLE" >>> endpreOpenStack Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Externally reffed-off
Change it to.. set the defaultfolder to item 1 to -5 of the effective filename of this stack and it should work. I don't have an available mac to test though, so tweakage might be necessary. (not likely though its pretty straightforward) You can put it in an if block if you want so that if the environment is development you use the first method, else you use the second. On Wed, Jan 10, 2018 at 4:05 AM, Mike Bonnerwrote: > Its because of this... > > *Cross-platform note:* On OS X systems, standalone applications are > stored as application bundles. A bundle behaves like a file but is > actually a folder, and the main stack of a standalone application is > inside this folder. The filename of stack property reports the location > of the application inside the bundle, not the bundle'slocation. For > example, if the bundle's file path is "/Volumes/Disk/MyApp.app/", the > filename of the application's main stack might be > "/Volumes/Disk/MyApp.app/Contents/MacOS/MyApp". > > On Wed, Jan 10, 2018 at 3:54 AM, Richmond Mathewson via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> I am currently working on something that calls a lot of external images >> which are stored >> in a folder called "rez" in the same location as my stack, and when my >> stack opens it >> works its way through the script: >> >> onpreOpenStack >> setitemDelto"/" >> setthedefaultFoldertoitem 1 to-2 of(theeffectivefileNameofthis stack) >> gotocard "TITLE" >> endpreOpenStack >> >> nothing particularly odd there. >> >> each image has "rez/imagename.png" >> set as its source. >> >> AND everything works in the stack. >> >> So would be extremely grateful why, when a Mac standalone is placed in >> exactly >> the same relation to the "rez" folder it does not "pick up" the images. >> >> Richmond. >> >> ___ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Externally reffed-off
Its because of this... *Cross-platform note:* On OS X systems, standalone applications are stored as application bundles. A bundle behaves like a file but is actually a folder, and the main stack of a standalone application is inside this folder. The filename of stack property reports the location of the application inside the bundle, not the bundle'slocation. For example, if the bundle's file path is "/Volumes/Disk/MyApp.app/", the filename of the application's main stack might be "/Volumes/Disk/MyApp.app/Contents/MacOS/MyApp". On Wed, Jan 10, 2018 at 3:54 AM, Richmond Mathewson via use-livecode < use-livecode@lists.runrev.com> wrote: > I am currently working on something that calls a lot of external images > which are stored > in a folder called "rez" in the same location as my stack, and when my > stack opens it > works its way through the script: > > onpreOpenStack > setitemDelto"/" > setthedefaultFoldertoitem 1 to-2 of(theeffectivefileNameofthis stack) > gotocard "TITLE" > endpreOpenStack > > nothing particularly odd there. > > each image has "rez/imagename.png" > set as its source. > > AND everything works in the stack. > > So would be extremely grateful why, when a Mac standalone is placed in > exactly > the same relation to the "rez" folder it does not "pick up" the images. > > Richmond. > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Externally reffed-off
I am currently working on something that calls a lot of external images which are stored in a folder called "rez" in the same location as my stack, and when my stack opens it works its way through the script: onpreOpenStack setitemDelto"/" setthedefaultFoldertoitem 1 to-2 of(theeffectivefileNameofthis stack) gotocard "TITLE" endpreOpenStack nothing particularly odd there. each image has "rez/imagename.png" set as its source. AND everything works in the stack. So would be extremely grateful why, when a Mac standalone is placed in exactly the same relation to the "rez" folder it does not "pick up" the images. Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode