PDA

View Full Version : Auto rename screenshots


KBug
March 18th, 2009, 03:04 AM
I take a lot of screenshots daily, they are saved as Picture 1, Picture 2 ....etc on the Desktop. I need these screenshots for future reference so I move them to a folder called Screens on a daily basis. Lets say on Day 1 I take 10 screenshots and they are named as Picture 1 - Picture 10 on Desktop, now at the end of day 1, I move them to the folder Screens. Day 2 begins and I take, say, 10 more screenshots, again they are saved as Picture 1 - Picture 10 on Desktop. Now, the problems comes when I try to move these screenshots to the Screens folder. I am offered to replace the old ones, I don't want to replace them.
I am looking for an AppleScript that will rename my Day 2 screenshots as Picture 11-Picture 20 when I move them to screens folder.

I want to add a folder action to the scripts folder that will have this AppleScript attached which will rename the files in sequential order whenever I move screenshot to the folder.

#1 Rhapsody
March 18th, 2009, 09:57 AM
Attached is an Automator Script and an application I wrote to help you. Simply move the application to the Desktop and create a folder called Pictures there. Just run the program and the app will take the files you selected, add the date, then move them to the Pictures folder (the one you created on the Desktop).

#1 Rhapsody
March 18th, 2009, 10:00 AM
Sorry! I forgot to attach it :o
Here it is.

KBug
March 18th, 2009, 10:42 AM
Heyy thanks, I downloaded the app and run it. I created Pictures folder and I ran the Pictures.app, I selected the images but it doesn't seem to add those images to Pictures folder I created on Desktop

KBug
March 18th, 2009, 10:45 AM
Can you just modify the app so that I will just have to select the images on my desktop and drag them to your app i.e. pictures.app and then it will add date to them and move them to Screens folder. That would be great. Don't forget to attach the workflow along with app so that I can study it. Thanks

#1 Rhapsody
March 18th, 2009, 11:28 AM
Here you go. You have to drag the pictures onto it now, or the program will be moved to the pictures folder and renamed (unless you put it in the dock).

KBug
March 18th, 2009, 01:39 PM
Heyy Thanks, I just modified your workflow to point to screens folder, everything works but unlike in your pictures.app my version asks to choose files when I drag files on to the app. What could have happened ?? I modified only the last automator action to put the renamed files in Screens folder and not in pictures.

#1 Rhapsody
March 18th, 2009, 02:12 PM
What does the first block say? What is it called?

#1 Rhapsody
March 18th, 2009, 02:19 PM
I think I fixed the problem. Try it now.

KBug
March 18th, 2009, 02:19 PM
The is what my workflow looks like :

http://img217.imageshack.us/img217/9929/picture3b.jpg

I've modified just the last block so that it correctly points to Pictures folder on my Desktop

KBug
March 18th, 2009, 02:20 PM
oh new app hold on I will try it and post back

KBug
March 18th, 2009, 02:29 PM
Okay now everything seems to be working fine except for one thing. How can I make it append time to the file name instead of date ?

#1 Rhapsody
March 18th, 2009, 02:36 PM
Now it is setup to add the date and time to the file names.

#1 Rhapsody
March 18th, 2009, 02:38 PM
Sorry! Forgot the files again :rolleyes:

KBug
March 18th, 2009, 02:40 PM
Thank you very much that really helped

happyfuture
April 16th, 2009, 06:33 AM
Thanks for this program. I've been looking for something like this as I had the exact same dilemma as KBug (for years!).

I ran your program and it renamed all the files but it did not move them into the Pictures folder. Am I missing a step?

thanks.

#1 Rhapsody
April 16th, 2009, 08:40 AM
I ran your program and it renamed all the files but it did not move them into the Pictures folder. Am I missing a step?


Did you create a Pictures folder on your Desktop? That is the Pictures folder I created it to use.

happyfuture
April 16th, 2009, 09:36 PM
Yep! I'll try it again.