open stack finds stack in wrong path!?

Devin Asay devin_asay at byu.edu
Wed Jun 17 11:17:46 EDT 2015


On Jun 17, 2015, at 7:55 AM, Tiemo Hollmann TB <toolbook at kestner.de> wrote:

> Devin, you were absolutely right,
> I was using the wrong itemDel :(
> Thank you for coaching
> Tiemo
> 

That’s right, you would have needed to set the itemDelimiter to slash before the “go to stack” statement. I didn’t think to put that into my sample code.

Glad you figured it out.

Devin

> Tiemo,
> 
> On OS X looking for a stackfile relative to the location of the .app bundle
> will look inside the .app bundle, as you have seen. But if you don't try to
> find a stackfile relative to the .app, it will look first in the folder that
> contains the .app bundle. I think you can work around your problem by
> including this in the preOpenStack or openStack handler of the splash
> stack/app:
> 
> if the environment is "development" then
>   go stack item 1 to -2 of the effective filename of this stack & slash &
> "mainStack.rev"
> else
>   go stack "mainStack.rev"
> end if
> 
> Why? Because once the stack is made into a standalone the defaultFolder
> becomes the folder containing the .app bundle. It should therefore work in
> both the Mac and Windows environments.
> 
> I hope I understood your problem correctly.
> 
> Devin
> 
> 
> Devin Asay
> Office of Digital Humanities
> Brigham Young University
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Office of Digital Humanities
Brigham Young University





More information about the use-livecode mailing list