One of the repetitive tasks I do is to rename image scans to have a unique number with a prefix that gives the event and year. So a scan that is called
004_1A.jpg might become fos02.123456.jpg - in other words our image #123456, shot at the 2002 Goodwood Festival of Speed Images come in on CD in folders with around 40 images (= 1 roll of film per folder) but image numbers are not unique We order the films chronologically to get Folder numbers, so for one event we might have 7 folders (= 7 reels) each with around 40 images in I'd like to renumber the images automagically from my master Filemaker filenaming database. I am sure it can be done using AppleScript, but I haven't been able to make it work Filemaker 6 (which I don't own) will import images plus the file path, which is useful, but I have't been successful in passing the filepath to Applescript to rename the file I also haven't been successful in setting up a FilePath global in AppleScript and passing it from one script to another, nor in writing that path back to Filemaker. These were attempts to setup a global path then loop a rename script can anyone help? I'm out of my depth, so a pre-built solution would be best if anyone knows of one You can see the results here - http://www.bolide.co.uk/photos PS - I know the _real_ solution is to buy a Nikon D100! Work: setup script ideas Here the dialog displays OK if set cell command is removed. If set cell command is there I get an "Unable to coerce the data to the desired type" error --choose a folder with picture files activate set folderPath to (choose folder with prompt "Choose a folder with pictures to import�") --create a list of all files in the folder set fileList to list folder folderPath --initialize pictureCount variable set pictureCount to 0 set newRecord to create record go to newRecord set cell "folderPath" of newRecord to folderPath display dialog "folderPath is " & folderPath Loop script in Filemaker calculation field. Quotes render OK when run and this part of the script works "tell application" & """Finder""" & "�" &"activate" & "�" & "select item """ & OldName & """ of folderFiles" & "�" & "set name of selection to """ & BaseNumber & Suffix & """�" & "end tell" ________________________________________________________________________ TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] with unsubscribe witango-talk in the message body
