rejetto forum
May 25, 2012, 09:31:32 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Testing build #243  (Read 2993 times)
0 Members and 2 Guests are viewing this topic.
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« on: August 17, 2009, 05:03:45 AM »

download @ www.dovedove.it/hfs/hfs243.exe

what's new
+ {.set|mode=XXX.}
+ new event [on macro rename] [link]
* {.add folder.} will now replace any existing folder with same name
- after searching for files, archive was not applying to results (again!) [link]
- archiving and deletion was not working for file with "+" in the name [link]
Logged
SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1046


....... chut ! shh!


View Profile WWW
« Reply #1 on: August 17, 2009, 07:47:52 PM »

   
Hi!  Smiley

About:

"{.add folder.} will now replace any existing folder with same name"

Just a request for clarification.
I have a question, perhaps a little stupid:  Undecided

Why replace a folder if it already exists?
« Last Edit: August 17, 2009, 07:49:40 PM by SilentPliz » Logged
FRENCH CAN CAN
Insane poster
*****
Offline Offline

Italy Italy

Posts: 641


View Profile
« Reply #2 on: August 18, 2009, 03:38:08 AM »

Watch here:

link:

http://www.rejetto.com/forum/index.php?topic=7063.msg1045142#msg1045142
Logged
SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1046


....... chut ! shh!


View Profile WWW
« Reply #3 on: August 18, 2009, 04:01:53 AM »

OK thank you! Wink

... I missed this post.  Roll Eyes
Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #4 on: August 18, 2009, 03:55:43 PM »

Quote
"{.add folder.} will now replace any existing folder with same name"
Huh?
Why to destroy systematically an existing directory while it would be enough only to add the parameter overwrite=true to the macro.  

Quote
[special:import]
{.add folder|real|template|overwrite=true.}
{.set item|/template|hide=1.}
{.set item|/template|no log=1.}
{.dialog|
Thank you for choosing the RAWR-Template!

Remember to check for updates and visit us at:
http://www.RAWR-Designs.com
.}

Otherwise when the folder exists already then the action is simply cancelled
Quote
{.if|{.add folder|real|template.}
    |New folder created successfully
    |The directory already exists or was not able to be created
./if}

A use under this shape would be much more conventional
« Last Edit: August 20, 2009, 04:31:35 PM by Mars » Logged
SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1046


....... chut ! shh!


View Profile WWW
« Reply #5 on: August 22, 2009, 05:04:51 PM »

Hi!  Smiley

Bug in the Web page when the folder name ends with an exclamation point (!).



* 2009-08-22_224043.png (59.59 KB, 980x302 - viewed 223 times.)
« Last Edit: August 22, 2009, 05:14:20 PM by SilentPliz » Logged
rejetto forum
« Reply #5 on: August 22, 2009, 05:04:51 PM »

Do you like this software? Consider even $2
 Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #6 on: August 23, 2009, 03:19:45 PM »

Quote
<body>
<table width='100%'>
<tr>
  <td width='95%'>
    <div id='folderlabel'>{.!folder.}</div>
    <div id='folder'>{.breadcrumbs|{:<a href="%bread-url%">{.if|{.%bread-name%=.}|{.!Home.}|%bread-name%.}/</a>:} .}</div>
{.if| %user% |
  <td nowrap>
    <div class='button'><img src="/~img27"> {.!user.}: %user%</div>
/if.}

change inside all templates the red text to blue text  Wink

Quote
<body>
<table width='100%'>
<tr>
  <td width='95%'>
    <div id='folderlabel'>{.!folder.}</div>
    <div id='folder'>{.breadcrumbs|{:<a href="%bread-url%">{.or|%bread-name%|{.!Home.}.}</a>/:} .}</div>
{.if| %user% |
  <td nowrap>
    <div class='button'><img src="/~img27"> {.!user.}: %user%</div>
/if.}

when a bread-name is ended with ! , {.if|{.%bread-name%=.}| .}| is evaluate as {.if|{.%bread-name%!=.}|
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #7 on: August 24, 2009, 05:13:24 AM »

Quote
"{.add folder.} will now replace any existing folder with same name"
Why to destroy systematically an existing directory while it would be enough only to add the parameter overwrite=true to the macro. 

good point.
i will add the overwrite parameter in next build, but i will keep the "true" as default value, being it the most convenient for the people (according to the posts i read).
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #8 on: August 24, 2009, 05:19:15 AM »

when a bread-name is ended with ! , {.if|{.%bread-name%=.}| .}| is evaluate as {.if|{.%bread-name%!=.}|

haha, that's a sad part of the language being so "dynamic" Cheesy
i adopted your solution, since i like the "or" a lot,
just let it be known that the problem could be solved by putting extra spaces
{.%bread-name% = .}
or by using the conventional syntax
{.=|%bread-name%|.}
Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #9 on: August 24, 2009, 06:39:27 AM »

According to any rigour, the root should have been named  / at the place of an empty string with %bread-name%   Cheesy
and tested as this
{:<a href="%bread-url%">{.if|{./=%bread-name%.}|{.!Home.}|%bread-name%.}/</a>:}    Wink

hehe!
« Last Edit: August 25, 2009, 08:38:46 AM by Mars » Logged
Caco
Tireless poster
****
Offline Offline

Italy Italy

Posts: 113


View Profile
« Reply #10 on: August 27, 2009, 11:10:40 AM »

Quote
+ new event [on macro rename]

I'm trying to use this event to rename the preview file each time a file is renamed:

[+on macro rename]
{.rename "%folder-resource%\[previews]\%old-item-name%.flv"|"%folder-resource%\[previews]\%item-name%.flv.}

The problem is that %old-item-name% does not exist Cheesy

And i also fear that this could lead to a chain reaction.

Any idea?

If i had that old item name variable , i could pass it to a simple batch file using

{.exec cmd.exe preview_rename.bat %old-item-name% %item-name%.} instead of using {.rename.}
Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #11 on: August 27, 2009, 03:43:01 PM »

Quote
[+on macro rename]
{.rename "%folder-resource%\[previews]\%old-item-name%.flv"|"%folder-resource%\[previews]\%item-name%.flv.}

you can't use a macro rename inside the event [+on macro rename] because this event is called when the macro rename is launched. Wink

Logged
Caco
Tireless poster
****
Offline Offline

Italy Italy

Posts: 113


View Profile
« Reply #12 on: August 28, 2009, 08:04:36 AM »

I imagined that. Then i need to pass old name to a batch file, but i don't know how to do it  Grin
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #13 on: August 30, 2009, 11:34:30 AM »

you are right caco, next version will include these changes

+ new symbols %old-name% and %new-name% for event [on macro rename]
+ running a {.rename.} during [on macro rename] won't fire the event again (but you can override this with parameter "recursive")

Wink
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 16, 2012, 01:59:14 AM