Hi folks,
I'm trying to implement the "Automating Backup of Flash Drives" on my Mac Mini i5 with Mac OS X 10.7.5. But, when I run it, it gives an error like "Can't get every file".
If I understood it well, the code should create a list of every item on the folder /Volumes/ in order to test later if some of these items has a file rsync.scpt to execute the backup.
I simplified the code to test just this part with some variations but I didn't succeed.
Do you have any suggestion to make this part of the code to work properly?
I'm trying to implement the "Automating Backup of Flash Drives" on my Mac Mini i5 with Mac OS X 10.7.5. But, when I run it, it gives an error like "Can't get every file".
If I understood it well, the code should create a list of every item on the folder /Volumes/ in order to test later if some of these items has a file rsync.scpt to execute the backup.
I simplified the code to test just this part with some variations but I didn't succeed.
Code:
on adding folder items to this_folder after receiving these_volumes
tell application "Finder"
try
set the volume_list to every file of this_folder as list
display dialog volume_list as text
display dialog number of items in volume_list as text
display dialog this_folder as text
set the volume_list to every folder of this_folder
display dialog volume_list as text
display dialog number of items in volume_list as text
display dialog this_folder as text
set this_item to the original item of item 1 of volume_list
display dialog this_item as text
set this_item to the original item of item 2 of volume_list
display dialog this_item as text
end try
end tell
end adding folder items to
Do you have any suggestion to make this part of the code to work properly?