If its the name as a string I find this works for me...

Regards,
Kraig

-----------------------------------
--PURPOSE: Determine the name of this script.
--ACCEPTS: 'me' as an instance of this script.
--RETURNS: 'tName' as a string.
-----------------------------------
on getScriptName(me)
  
  tScriptName = string(me.script)
  tName = EMPTY
  repeat with tWord = 2 to tScriptName.word.count
    tName = tName && tScriptName.word[tWord]
  end repeat  
  tName = tName.char[3..(tName.char.count) - 2]
  return(tName)
  
end getScriptName 
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to