Rename and move files in finder

What I want:

Rename the file “xx.jpg” with clipboard-selection
Move the renamed file to folder “yy”

Why?
I’m gonna “export” container items from Filemaker as jpg’s and this is how I’m try doing it:

  1. In Filemaker, copy container-image to clipboard.
  2. In GraphicConverter paste the image and save as “xx.jpg”
  3. In Filemaker copy text from field “filename”
  4. With AppleScript, rename the file “xx.jpg” with clipboard-name.

Pleeease, can someone give me a hint of how to do this?

I’m not sure I completely follow what you want but the script below works for me and will probably get you started.

Jon

Success, thanks alot jonn8

Works great but GraphicConverter makes the images to 16 bit colour (or maybe 256, dont know exactly). The images looks like shit, look here:
http://www.biz.inlife.se/nyheter/31/index_enews.html

Is that because of the clipboard limits or is it a workaround to make the igames look better?