Re: set the name of the last image bug?

2001-07-17 Thread Mark

The following works in new stacks created under MC and RR, but ONLY 
works under RR if you have the IDENTICAL script in a stack that was 
originally a HyperCard stack.

ie., it fails under MC 2.4b1, 2, and 3 under these circumstances.

SCRIPT:

on mouseUp
   answer file "Select image:"
   if ((it is empty) or (the result is "Cancel")) then exit mouseUp
   put it into myFileName
   import paint from file myFileName
   set the name of last image to "My Chosen Name"
end mouseUp


The point of failure is the "set the name of" line.


So... is there a way to turn off the flag metacard uses to tell a 
stack originally came from hypercard to see if this clears that 
problem?

Cheers,
Mark

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.




Re: set the name of the last image bug?

2001-07-12 Thread Mark

The following works under RR but not under MC 2.4 beta 1 or 2.

on mouseUp
   answer file "Select image:"
   if ((it is empty) or (the result is "Cancel")) then exit mouseUp
   put it into myFileName
   import paint from file myFileName
   set the name of last image to "My Chosen Name"
end mouseUp


The point of failure is the "set the name of" line.

Cheers,
Mark

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.