This is my first venture into applescript. I'm trying to take a known mounted device (In this case an Olympus dictaphone) with an unknown number of files and copy them from the the device to a specific folder on the Macintosh HD. I've written a short script that tells finder to check for the device and folder, then puts the names of the files in the folder into a variable. Then a foreach loop iterates through the list and is supposed to copy the files to their final resting place... The result is an error "Can't get Current_File of..." Where Current_File is the current iteration of the File_List variable.
Here's the script (Commented out lines are attempts to isolate the error): *
tell application "Finder"
if folder "DSS_FLDA" of disk "Untitled" exists then
set File_List to files of folder "DSS_FLDA" of disk "Untitled"
local Current_file
foreach(Current_file in File_List)
#Print Current_File
copy file Current_file to folder "User:wt:DSSPlayer:Message:FolderA" of startup disk
else
return 0
end if
#first item of folder "DSS_FLDA" of disk "Untitled"
end tell
*
Can anyone with more experience in Applescript point me in a more fruitful direction?
Thanks, Daniel.