I’m reworking the code from a Quicktime droplets I got from the Apple site. It’s called “Prep camera images for web”. It’s a great script, however, it doesn’t seem to add the “.jpg” to the end of the file. I put a line of code in (in red below) that I thought would do it, however, I end up with “.jpg.jpg” instead of just “.jpg”. Any ideas?
Here is the original code:
tell application “Finder”
–rename the image and move it to the desktop or other folder
set the new_name to (my add_extension(current_name))
set the name of the first file of the temp_folder whose name ends with “1.jpg” to the new_name
set this_image to move file new_name of the temp_folder to the destination_folder with replacing
– change the file type to open in Preview
set the creator type of this_image to “prvw”
– delete the temp folder and its contents
delete temp_folder
empty trash
end tell
Here is what I added:
tell application “Finder”
–rename the image and move it to the desktop or other folder
set the new_name to (my add_extension(current_name))
set the name of the first file of the temp_folder whose name ends with “1.jpg” to the new_name
set this_image to move file new_name of the temp_folder to the destination_folder with replacing
– change the file type to open in Preview
set the creator type of this_image to “prvw”
–delete the temp folder and its contents
set the name of the file new_name of the destination_folder to the new_name & “.jpg”[color=blue]
delete temp_folder
empty trash
end tell
[/color]