image
image

Go Back   macosx.com > Scripts > Apple Scripts

Reply
 
LinkBack Thread Tools
  #1  
Old March 18th, 2009, 03:04 AM
KBug's Avatar
Registered User
 
Join Date: Nov 2008
Posts: 37
Thanks: 4
Thanked 0 Times in 0 Posts
KBug is on a distinguished road
Auto rename screenshots

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.
Reply With Quote
  #2  
Old March 18th, 2009, 09:57 AM
#1 Rhapsody's Avatar
Mac Guru
 
Join Date: May 2008
Posts: 326
Thanks: 5
Thanked 11 Times in 11 Posts
#1 Rhapsody is on a distinguished road
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).
__________________
RhapsodyOS.tk Rhapsody OS Support/Development Site
Reply With Quote
  #3  
Old March 18th, 2009, 10:00 AM
#1 Rhapsody's Avatar
Mac Guru
 
Join Date: May 2008
Posts: 326
Thanks: 5
Thanked 11 Times in 11 Posts
#1 Rhapsody is on a distinguished road
Sorry! I forgot to attach it
Here it is.
Attached Files
File Type: zip Pictures.zip (54.6 KB, 9 views)
__________________
RhapsodyOS.tk Rhapsody OS Support/Development Site
Reply With Quote
  #4  
Old March 18th, 2009, 10:42 AM
KBug's Avatar
Registered User
 
Join Date: Nov 2008
Posts: 37
Thanks: 4
Thanked 0 Times in 0 Posts
KBug is on a distinguished road
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
Reply With Quote
  #5  
Old March 18th, 2009, 10:45 AM
KBug's Avatar
Registered User
 
Join Date: Nov 2008
Posts: 37
Thanks: 4
Thanked 0 Times in 0 Posts
KBug is on a distinguished road
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
Reply With Quote
  #6  
Old March 18th, 2009, 11:28 AM
#1 Rhapsody's Avatar
Mac Guru
 
Join Date: May 2008
Posts: 326
Thanks: 5
Thanked 11 Times in 11 Posts
#1 Rhapsody is on a distinguished road
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).
Attached Files
File Type: zip Pictures.zip (54.6 KB, 10 views)
__________________
RhapsodyOS.tk Rhapsody OS Support/Development Site
Reply With Quote
  #7  
Old March 18th, 2009, 01:39 PM
KBug's Avatar
Registered User
 
Join Date: Nov 2008
Posts: 37
Thanks: 4
Thanked 0 Times in 0 Posts
KBug is on a distinguished road
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.
Reply With Quote
  #8  
Old March 18th, 2009, 02:12 PM
#1 Rhapsody's Avatar
Mac Guru
 
Join Date: May 2008
Posts: 326
Thanks: 5
Thanked 11 Times in 11 Posts
#1 Rhapsody is on a distinguished road
What does the first block say? What is it called?
__________________
RhapsodyOS.tk Rhapsody OS Support/Development Site
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump


All times are GMT -5. The time now is 05:44 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.