現在開いているカードのカード名を取得する

Function GetOpenedCard
  get the long name of group "top" of stack "Valentina"
  put word 5 of it into OpenedCard
  delete char 1 of OpenedCard
  delete the last char of OpenedCard
  return OpenedCard
end GetOpenedCard

あまり綺麗なスクリプトではないですが、要するにすべてのカードの中に、すべてのカードに共通するグループを作っておき(なければダミーのグループをすべてのカードに作る)、そのthe long nameを取得すればその中にカード名が入っているのでそれを取り出しているわけです。

追記:
get the long name of me

あるいは以下でも取得できる。

get the name of this card

get the cardnames of stack "WordGameTester"
put it into field "cardname"

put the cardnames of stack "WordGameTester" into field "cardname"