<pre>function resource resType  put liste("ressources") into resourcesLauzon  set itemDelimiter to tab  repeat with x = 1 to the number of lines of resourcesLauzon    if item 3 of line x of resourcesLauzon is resType then      put item 2 of line x of resourcesLauzon into resPath      if resPath is not empty then return resPath else return empty    end if  end repeatend resource</pre>