Hi Iden,
It is Dreamcard 2.7 on OS X 10.4.5
The code goes:
on makeNewStack
setdefaultpath
## See below...
-- makes a new stack out of the marked cards
...
unlock messages
go first card of stack newStackName
set the script of stack newStackName to newStackScript
delete this card -- the first card of a create'd stack is blank
unlock screen
reset the templateStack
## setdefaultpath
###!!!!!!
## At this point the new created stack is the DEFAULTSTACK
## which does NOT have a filename yet!
## In this case the defaultfolder is reset to "/"
## Just place this handler into another place, maybe in first line of
the handler
## and everything should work fine :-)
beep 3
answer "Created new stack " & newStackName & " with " & count & "
cards."
end makeNewStack
and setdefaultpath is :
on setdefaultpath
put the filename of this stack into fullpath
## !! See above
## THIS STACK refers to the new created stack, which has no filename yet
set the itemDelimiter to "/"
put item 1 to (number of items in fullpath - 1) of fullpath & "/"
into SoulGuidingFolder
set the defaultfolder to SoulGuidingFolder
set the itemDelimiter to ","
end setdefaultpath
It would appear that setdefaltpath returns "/" which would seem to
mean that item 1 to the number of items in fullpath - 1 is
returning empty. So why would filename return empty? Is it because
the stack that has been created has not been saved yet? Is there a
way around this?
Regards
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution