Two stacks
BEAKEREXPEDITESLAUNCH4 (splash stack)
BEAKEREXPEDITES3 (main app)
Tried the splash card method using a button with the script below to launch the main app in the stand alone application. The stand alone app builds without an issue. New data that is entered in fields in the main app are not saved on CloseStack in the standalone app.
Button script in BEAKEREXPEDITESLAUNCH4 (splash stack)
on mouseUp
set the itemDelimiter to "/"
if the environment is "standalone application" then
get the effective fileName of this stack
set the defaultFolder to item 1 to -2 of it
if there is a stack "BEAKEREXPEDITES3" then
open stack "BEAKEREXPEDITES3"
close stack "BEAKEREXPEDITESLAUNCH4"
else
answer warning "stack " & the defaultFolder & "BEAKEREXPEDITES3 not found"
end if
else
get the effective fileName of this stack
set the defaultFolder to item 1 to -2 of it
open stack "BEAKEREXPEDITES3"
go to stack "BEAKEREXPEDITES"
close stack "BEAKEREXPEDITESLAUNCH4"
end if
end mouseUp
The main app (BEAKEREXPEDITES3) script contains
On CloseStack
Save this stack
Pass CloseStack
End CloseStack
BEAKEREXPEDITESLAUNCH4 (splash stack)
BEAKEREXPEDITES3 (main app)
Tried the splash card method using a button with the script below to launch the main app in the stand alone application. The stand alone app builds without an issue. New data that is entered in fields in the main app are not saved on CloseStack in the standalone app.
Button script in BEAKEREXPEDITESLAUNCH4 (splash stack)
on mouseUp
set the itemDelimiter to "/"
if the environment is "standalone application" then
get the effective fileName of this stack
set the defaultFolder to item 1 to -2 of it
if there is a stack "BEAKEREXPEDITES3" then
open stack "BEAKEREXPEDITES3"
close stack "BEAKEREXPEDITESLAUNCH4"
else
answer warning "stack " & the defaultFolder & "BEAKEREXPEDITES3 not found"
end if
else
get the effective fileName of this stack
set the defaultFolder to item 1 to -2 of it
open stack "BEAKEREXPEDITES3"
go to stack "BEAKEREXPEDITES"
close stack "BEAKEREXPEDITESLAUNCH4"
end if
end mouseUp
The main app (BEAKEREXPEDITES3) script contains
On CloseStack
Save this stack
Pass CloseStack
End CloseStack
Statistics: Posted by JLGMD1 — Mon Aug 12, 2024 12:43 am