Thank you Axel for your comments- you indicated that the following command:
tell application "iPhoto" to get image path of photos of album "somename" returns a list of strings which could then be converted into file
references, for example through "POSIX file".
If you can just tell me how that is done, I can take it from there, but that is precisely the point I am stuck at. What I do is loop through every photo in a list (a smart folder), and create the POSIX file as below:
set this_file_path to image path of item p of current_photo_list as POSIX file as alias
Where I define current_photo_path as:
set current_photo_list to every photo in item x of export_key_list
Where export_key_list is created from
get every album whose type is smart album and name of parent is "Sort_Misc"
set export_folder_list to result
As to why export_key_list is a list of lists, it is simply because it is created from a bunch of Smart Folders-each of which contain multiple Photos. I will be delighted if someone points out how tragically uncool this is and shows me a better way, but not being an AppleScript Expert I am happy that while my code is slow, it does exactly what I want. The problem is that when I get more than about 100 files in any smart folder, the script times out so I just export those folder manually (using the export function-which I am very sad to say is not supported directly in iPhoto's AS Library as I feel it should be:-)
thanks
chris