Lua Memo

既存のオブジェクトがあれば、それを取得する

sample

-- If there is an instance of Word(r) running,
  -- it will end it
  word = luacom.GetObject("Word.Application")

  if word then
    word:Quit()
    word = nil