AutoHotkey Community

It is currently May 27th, 2012, 1:33 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 92 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 7  Next
Author Message
 Post subject:
PostPosted: November 19th, 2009, 8:00 pm 
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 (':oops:'). Sorry for stating that without doing further research.

(':?') Perl is quite different from the syntax I got used...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2009, 8:19 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
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

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 20th, 2009, 12:53 am 
Offline

Joined: November 16th, 2009, 9:24 am
Posts: 114
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 20th, 2009, 9:05 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
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 :)

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

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...)

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 20th, 2009, 9:40 pm 
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.

8)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 21st, 2009, 12:51 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
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.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 21st, 2009, 1:34 pm 
Offline

Joined: March 16th, 2005, 10:33 pm
Posts: 969
Location: Frisia
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)

8)

_________________
Image mirror 1mirror 2mirror 3ahk4.me • PM or Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 21st, 2009, 4:40 pm 
Offline

Joined: November 16th, 2009, 9:24 am
Posts: 114
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!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 22nd, 2009, 9:19 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Quote:
You are right. Yours is way better

I told you so :)

The only thing it has is unlimited number of steps you can add, but, that will change in MRS 2.0.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 3rd, 2009, 3:15 am 
Offline

Joined: January 7th, 2007, 1:43 pm
Posts: 107
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]"


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 3rd, 2009, 5:37 am 
Offline

Joined: December 13th, 2006, 7:10 am
Posts: 118
@majkinetor: Nice work, as usual...
...and AFX (aka Aphex Twin) is the only ambience I can listen to, when programming ;)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 3rd, 2009, 4:11 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
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 :)

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 3rd, 2009, 4:15 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
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....

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 8th, 2009, 3:07 am 
Offline

Joined: January 7th, 2007, 1:43 pm
Posts: 107
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? :lol:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 8th, 2009, 3:09 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
U r welcome.

Anyway, if any of you guys have some suggestions now is the right time.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 92 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 7  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 13 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group