AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Multi-Rename Script v1.5c (Unicode)
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Thu Nov 19, 2009 8:00 pm    Post subject: Reply with quote

HugoV wrote:
TOR user wrote:
RegEx would be also a great addition for powering Search & Replace.
That is already supported as far as I know, see the RE checkbox in the screenshot above.


My bad ('Embarassed'). Sorry for stating that without doing further research.

('Confused') Perl is quite different from the syntax I got used...
Back to top
majkinetor



Joined: 24 May 2006
Posts: 4116
Location: Belgrade

PostPosted: Thu Nov 19, 2009 8:19 pm    Post subject: Reply with quote

Quote:
t could only have been better if no need to search for all the files but instead drag the parent folder filtering with *.mp3.
I mean, it would be really nice to be able to choose between adding a folder only (default behaviour), or also include files and /or subfolders inside it, making use of filters

You can do this without gui as:

Code:
dir /S /B | find ".mp3" >out
Mrs.ahk out

_________________
Back to top
View user's profile Send private message
BoffinbraiN



Joined: 16 Nov 2009
Posts: 107

PostPosted: Fri Nov 20, 2009 12:53 am    Post subject: Reply with quote

It still amazes me when people develop such complex applications in AHK. AHK is great for key hooks and anything I/O-related, but I hope they give other languages like C++ and Java a try too.

People on this thread might be interested in AF5 Rename Your Files http://www.fauland.com/af5.htm - it's saved me hours of time in total.
Back to top
View user's profile Send private message Visit poster's website
majkinetor



Joined: 24 May 2006
Posts: 4116
Location: Belgrade

PostPosted: Fri Nov 20, 2009 9:05 pm    Post subject: Reply with quote

Quote:
It still amazes me when people develop such complex applications in AHK. AHK is great for key hooks and anything I/O-related, but I hope they give other languages like C++ and Java a try too.

There is nothing to be amazed about. Its just a personal taste in question. The complexity is also personal thing. IMO, MRS is not that complex.

The benefit of mainstream languages is codebase, rich frameworks, and in this case (c++ java) compiler. The benefit of non-mainstream languages like AHK are fun, being able to program again (there are low number of frameworks so you have to do it yourself, programming in mentioned languages today is 95% design, 5% coding) and (in this case) absence of compiler (I prefer dynamic languages with integrated automation features).

I agree with you, however. AHK is not suitable for more complex projects.
I personally do it because my opinion is that automation as basic language feature is must today. If you think about it, thats what you need in all aspects of life - automatic management.

BTW, AF5 sucks big time. You should give MRS a try Smile

----------------

I am probably rewritting script in 2.0. Some of the things I am thinking are:

1. Creation of MRS framework so you can write MRS scripts.
2. Gui removal. With framework in place you can create your kind of interface (console, gui, web, whatever...)
_________________
Back to top
View user's profile Send private message
n-l-i-d
Guest





PostPosted: Fri Nov 20, 2009 9:40 pm    Post subject: Reply with quote

Quote:
BTW, AF5 sucks big time. You should give MRS a try


FYI: A really good renamer is RenameMaster, maybe you can get some ideas from it.

Cool
Back to top
majkinetor



Joined: 24 May 2006
Posts: 4116
Location: Belgrade

PostPosted: Sat Nov 21, 2009 12:51 pm    Post subject: Reply with quote

Rename master is nice altho I don't see any thing it does it can't be done with MRS. It doesn't support plugins too so you are stucked with defaults.
I totally don't like GUI driven approach. Domain specific language is the way to go for me.

Anyway, thanks for providing link to this progy. Perhaps linking it in Utilities forum would be useful.
_________________
Back to top
View user's profile Send private message
daonlyfreez



Joined: 16 Mar 2005
Posts: 841
Location: Berlin

PostPosted: Sat Nov 21, 2009 1:34 pm    Post subject: Reply with quote

You are right. Yours is way better Wink

One thing it does have though: it shows/warns for collisions.

And I guess the GUI options are good for newbs who are not that good with RegEx.

I'll add it to the Utilities forum (and link to your program)

Cool
_________________
My AHK stuff on ahk.net / on DropBox (mirror) / @home (if online)
Back to top
View user's profile Send private message
BoffinbraiN



Joined: 16 Nov 2009
Posts: 107

PostPosted: Sat Nov 21, 2009 4:40 pm    Post subject: Reply with quote

n-l-i-d wrote:
Quote:
BTW, AF5 sucks big time. You should give MRS a try


FYI: A really good renamer is RenameMaster, maybe you can get some ideas from it.


I only needed to add a date and a counter to files, and it was the first I came across, but yes, both of these apps are much more awesome, should I need something more complex. Cheers for that!
Back to top
View user's profile Send private message Visit poster's website
majkinetor



Joined: 24 May 2006
Posts: 4116
Location: Belgrade

PostPosted: Sun Nov 22, 2009 9:19 pm    Post subject: Reply with quote

Quote:
You are right. Yours is way better

I told you so Smile

The only thing it has is unlimited number of steps you can add, but, that will change in MRS 2.0.
_________________
Back to top
View user's profile Send private message
poetbox



Joined: 07 Jan 2007
Posts: 94

PostPosted: Thu Dec 03, 2009 3:15 am    Post subject: Reply with quote

How to add this funtion,that it,if instring(FILENAME,"MarkME"),then add "MArk" at the begining of the filename?
IT's only to add a prefix to certain files that have some wanted String!

eg,
HEres file:
FileA,Filebasfsdfs,FileC23sMArkME,FileEqweqwe,FileFMarkme,
Renname FileC23sMArkME to "Mark_[the old name]"
Back to top
View user's profile Send private message Send e-mail
Smurth



Joined: 13 Dec 2006
Posts: 104

PostPosted: Thu Dec 03, 2009 5:37 am    Post subject: Reply with quote

@majkinetor: Nice work, as usual...
...and AFX (aka Aphex Twin) is the only ambience I can listen to, when programming Wink
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4116
Location: Belgrade

PostPosted: Thu Dec 03, 2009 4:11 pm    Post subject: Reply with quote

Quote:
...and AFX (aka Aphex Twin) is the only ambience I can listen to, when programming

Here is some more for you then:
  • Yagya - The Rythm of Snow
  • Monolake - Hong Kong
  • Anders Ilar - Everdom

Enjoy Smile
_________________
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4116
Location: Belgrade

PostPosted: Thu Dec 03, 2009 4:15 pm    Post subject: Reply with quote

Quote:
How to add this funtion,that it,if instring(FILENAME,"MarkME"),then add "MArk" at the begining of the filename?


You need to write new Mask plugin. More info in tutorial. Save this in plugins folder as Prefix.ahk and u can use it.

Code:
Prefix:
   if InStr(#fn, #1)
       #Res := #2 #fn
   else #Res := #fn
return


Prefix_GetFields:
   #Res = *
return


Code:

Usage:
... [=MyPlugin.MarkME.MArk] ...


You could use different syntax (non dot one), for instance
Code:
[=MyPlugin MarkMe -> Mark]


and you need #3 for that one....
_________________
Back to top
View user's profile Send private message
poetbox



Joined: 07 Jan 2007
Posts: 94

PostPosted: Tue Dec 08, 2009 3:07 am    Post subject: Reply with quote

majkinetor wrote:
Quote:
How to add this funtion,that it,if instring(FILENAME,"MarkME"),then add "MArk" at the begining of the filename?


You need to write new Mask plugin. More info in tutorial. Save this in plugins folder as Prefix.ahk and u can use it.

Code:
Prefix:
   if InStr(#fn, #1)
       #Res := #2 #fn
   else #Res := #fn
return


Prefix_GetFields:
   #Res = *
return


Code:

Usage:
... [=MyPlugin.MarkME.MArk] ...


You could use different syntax (non dot one), for instance
Code:
[=MyPlugin MarkMe -> Mark]


and you need #3 for that one....

Great. It's my favorite!
Thank you very much!
Since you'v done,why not add it to the uploaded downloading files? Laughing
Back to top
View user's profile Send private message Send e-mail
majkinetor



Joined: 24 May 2006
Posts: 4116
Location: Belgrade

PostPosted: Tue Dec 08, 2009 3:09 pm    Post subject: Reply with quote

U r welcome.

Anyway, if any of you guys have some suggestions now is the right time.
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group