Sending Arguments to Shell Script

I would like to pick a folder or file and then move it to another location. Both locations are unknown. Here’s what I have so far:

set the source_folder to (choose folder with prompt “Pick the folder you would like to move:”) as alias
move source_folder to (choose folder)

And guess what, it doesn’t work. How can I do this?

This should allow you to move a folder.

set the source_folder to (choose folder with prompt "Pick the folder you would like to move:")
tell application "Finder" to move source_folder to (choose folder)

– Rob

Rob,
Thanks. That works great.

CONCEPT: Folder Actions Applescript prompts shell script to upload file(s)
PROBLEM
added_items needs to spew out:

/Users/hutmark/file1.jpg /Users/hutmark/file2.jpg

but instead it spews:

HardDrive:Users:hutmark:file1.jpgHardDrive:Users:hutmark:file2.jpg

I’m not sure how to get the file paths with slashes and separated by spaces. Here’s the applescript.

on adding folder items to this_folder after receiving added_items

     do shell script "ncftpput -f ftpconfig.cfg /htdocs/timages/page " & added_items

end adding folder items to

Advice? Help? Interpretive Dance?

Maybe this will work.

on adding folder items to this_folder after receiving added_items 
    set items_ to "" 
    repeat with item_ in added_items 
       set items_ to items_ & (quoted form of POSIX path of item_ & " ") 
    end repeat 
    set items_ to text 1 thru -2 of items_  -- remove the trailing space on the last item 
    do shell script "ncftpput -f ftpconfig.cfg /htdocs/timages/page " & items_ 
 end adding folder items to

– Rob

it worked. thanks.