Click here to Skip to main content
15,895,709 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: Moving an object vertically Pin
Peter_in_278027-Jun-12 18:18
professionalPeter_in_278027-Jun-12 18:18 
GeneralRe: Moving an object vertically Pin
crzybug30-Jun-12 12:51
crzybug30-Jun-12 12:51 
QuestionHow to Show a Div in JavaScript or JQuery Pin
Vimalsoft(Pty) Ltd18-Jun-12 12:15
professionalVimalsoft(Pty) Ltd18-Jun-12 12:15 
AnswerRe: How to Show a Div in JavaScript or JQuery Pin
enhzflep18-Jun-12 14:36
enhzflep18-Jun-12 14:36 
GeneralRe: How to Show a Div in JavaScript or JQuery Pin
Vimalsoft(Pty) Ltd18-Jun-12 20:18
professionalVimalsoft(Pty) Ltd18-Jun-12 20:18 
GeneralRe: How to Show a Div in JavaScript or JQuery Pin
enhzflep18-Jun-12 20:24
enhzflep18-Jun-12 20:24 
Questionjava script can't receive an event from MFC activex? Pin
creative2617-Jun-12 22:04
creative2617-Jun-12 22:04 
QuestionPython Bulk-Renamer for Date-Modified Pin
johtnkucz10-Jun-12 0:41
johtnkucz10-Jun-12 0:41 
#There was no python sub-category forum, so posted this here.


---------------------
Hey mates,
on ubuntu-linux. I need/want to code a python applicaton that does the following:

takes the 'date-modified' of the file (almost always a .jpg jpeg) and adds a 8 digit format string to the beginning of it.

I have manually using pyrenamer to rename them. When I have many files all on the same date. this works, but but but, when I have many files on different dates this is tedious.

the format string would be:

EXAMPLE;

file modified on 2012-17-Mar

change name to 20120317_num

where num is just a two digit numbe 01,02,...

Any ideas on how I would start to code such an app.

It is a relatively simple process but I fear it will be complex to code and outside of my skill-level and will need to research a lot of things like

how to get the date-modified information

manipulating/changing the string of 2012-17-Mar I could see a lot of if-elses for the 12 months and whatnot.


Relatively simple concept; currently outside of my abilities as a coder, but this would be great to code.


If anyone has any resources on how to do this, would be rewarding for me to code, would be freakishly useful, and would safe time. thanks!

pyrenamer is super bulk-file-renamer (the best i've seen across mac, windows, and linux OSes) but that specific usage where it takes the file format etc is complex.



I guess I would rather find such an app (to process files) AND THEN code a separate one for the reward of coding.

Recently i've been making folders of month and then subfolders of day and putting corresponding date-modified files in the month/day folder and then using pyrenamer.

again, tedious when have many 'different days' of date-modified.
AnswerRe: Python Bulk-Renamer for Date-Modified Pin
Diana Weiss13-Jun-12 1:49
Diana Weiss13-Jun-12 1:49 
QuestionPlotting libraries - spider plots Pin
Wjousts6-Jun-12 4:12
Wjousts6-Jun-12 4:12 
GeneralChange the wallpaper Pin
Weli055-Jun-12 17:18
Weli055-Jun-12 17:18 
GeneralRe: Change the wallpaper Pin
enhzflep5-Jun-12 18:25
enhzflep5-Jun-12 18:25 
GeneralRe: Change the wallpaper Pin
Weli055-Jun-12 21:53
Weli055-Jun-12 21:53 
GeneralRe: Change the wallpaper Pin
enhzflep6-Jun-12 0:19
enhzflep6-Jun-12 0:19 
AnswerRe: Change the wallpaper Pin
Weli056-Jun-12 6:31
Weli056-Jun-12 6:31 
QuestionHTML 5 Tutorial Pin
pix_programmer1-Jun-12 20:56
pix_programmer1-Jun-12 20:56 
AnswerRe: HTML 5 Tutorial Pin
Ali Al Omairi(Abu AlHassan)3-Jun-12 20:08
professionalAli Al Omairi(Abu AlHassan)3-Jun-12 20:08 
AnswerRe: HTML 5 Tutorial Pin
berba4-Jun-12 21:43
berba4-Jun-12 21:43 
Questionpassing argument from javascript Pin
dineshbabub1-Jun-12 0:55
dineshbabub1-Jun-12 0:55 
AnswerRe: passing argument from javascript Pin
Manfred Rudolf Bihy1-Jun-12 3:11
professionalManfred Rudolf Bihy1-Jun-12 3:11 
GeneralRe: passing argument from javascript Pin
dineshbabub3-Jun-12 18:13
dineshbabub3-Jun-12 18:13 
GeneralRe: passing argument from javascript Pin
dineshbabub3-Jun-12 21:06
dineshbabub3-Jun-12 21:06 
GeneralRe: passing argument from javascript Pin
Manfred Rudolf Bihy4-Jun-12 1:51
professionalManfred Rudolf Bihy4-Jun-12 1:51 
GeneralRe: passing argument from javascript Pin
Manfred Rudolf Bihy3-Jun-12 21:43
professionalManfred Rudolf Bihy3-Jun-12 21:43 
GeneralRe: passing argument from javascript Pin
dineshbabub3-Jun-12 22:14
dineshbabub3-Jun-12 22:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.