changing file names on the fly

2011-05-17 Thread Eva Isotalo
Is there a way to alter file names in a directory (from a MC script, not 
manually)? :-)


I have hundreds of images of which the name has to be changed slightly.
For example:
*anim1_Angle1.00_  9.png*
must be changed to (space deleted):
*anim1_Angle1.00_9.png*

Eva
___
metacard mailing list
metacard@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/metacard


Re: changing file names on the fly

2011-05-17 Thread Klaus on-rev
Hi Eva,

 Is there a way to alter file names in a directory (from a MC script, not 
 manually)? :-) 
 
 I have hundreds of images of which the name has to be changed slightly. 
 For example:
 anim1_Angle1.00_  9.png
 must be changed to (space deleted):
 anim1_Angle1.00_9.png

yes, use the rename command:
Put the filename into a variable - tFilenameOld
put tFileNameOld into tFileNameNew
Modify/fix it as needed:
set itemdel to /
replace   with  in item -1 of tFileNameNew
rename file tFileNameOld to tFileNameNew 

You get the picture :-)

 Eva

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.com


___
metacard mailing list
metacard@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/metacard


Re: changing file names on the fly

2011-05-17 Thread Klaus on-rev
Correction:

Am 17.05.2011 um 15:46 schrieb Klaus on-rev:

 Hi Eva,
 
 Is there a way to alter file names in a directory (from a MC script, not 
 manually)? :-) 
 
 I have hundreds of images of which the name has to be changed slightly. 
 For example:
 anim1_Angle1.00_  9.png
 must be changed to (space deleted):
 anim1_Angle1.00_9.png
 
 yes, use the rename command:
 Put the filename into a variable - tFilenameOld
 put tFileNameOld into tFileNameNew
 Modify/fix it as needed:
 set itemdel to /
 replace   with  in item -1 of tFileNameNew

## Of course withouth the single QUOTE
 rename file tFileNameOld to tFileNameNew 

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.com


___
metacard mailing list
metacard@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/metacard


Re: changing file names on the fly

2011-05-17 Thread Eva Isotalo

Great, thanks Klaus!

hugs
Eva


___
metacard mailing list
metacard@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/metacard


Re: Live livecode event

2011-05-17 Thread Björnke von Gierke

Knowledge about even the existence of Metacard is very low among new customers 
of LC. That is why I am looking for presenters who can talk about one or some 
of these topics:

- How to set up MC on Mac and/or Windows
- Introduction to differences between MC and LC
- Explanation about how to extend MC (or LC)
- History overview back to MC or even all the way to Hypercard
- Anything else

We gather every Saturday at 20:00 CET, more info at www.livecode.tv

Is no one  here is up to this task?


On 4 Apr 2011, at 19:39, Björnke von Gierke wrote:

 Hi
 
 Would someone who wants to be available to talk about one of these topics in 
 a live liveCode event? They're on, each Saturday 19:00 GMT. We usually get 20 
 live viewers, and quite a few people watch the recordings later. Preferable 
 someone who uses Metacard, I guess? Knowledge about even the existence of 
 Metacard is very low among new customers of LC.
 
 - How to set up MC on Mac and/or Windows
 - Introduction to differences between MC and LC
 - Explanation about how to extend MC (or LC)
 - History overview back to MC or even all the way to Hypercard
 - Anything else
 
 Please contact me off list.
 
 Cheers
 Björnke
 
 
 
 -- 
 
 official ChatRev page:
 http://bjoernke.com/chatrev
 
 
 Chat with other RunRev developers:
 go stack URL http://bjoernke.com/chatrev/chatrev1.3b3.rev;
 
 
 ___
 metacard mailing list
 metacard@lists.runrev.com
 http://lists.runrev.com/mailman/listinfo/metacard


___
metacard mailing list
metacard@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/metacard