View Full Version : Looking for someone to help me convert a short .bat file to AppleScript

Jun 26, 2009, 02:24 PM
I'm not very savy in programming, but its a relatively short code so hopefully someone can help me out. Anyways:

rename sonny-2.swf sonny-2-ver-2-2.swf
rename sonny-2-ver-1-1.swf sonny-2.swf

rename sonny-2.swf sonny-2-ver-1-1.swf
rename sonny-2-ver-2-2.swf sonny-2.swf

Jun 26, 2009, 02:27 PM
Are those two different bat files? cause the 2nd code block reverses what the first one does.

Jun 26, 2009, 02:29 PM
Yes, they are. Sorry I didn't specify.

Jun 26, 2009, 02:37 PM
Instead of rename, use mv.

Jun 26, 2009, 02:39 PM
Is the period part of the code or just a period? :P

Jun 26, 2009, 03:43 PM
Is the period part of the code or just a period? :P

It's just a period. mv short for move.

Jun 26, 2009, 04:17 PM
you can find an example of what you need directy in the AppleScript's Examples Script folder in your Applications/AppleScript/Example Scripts/Finder Scripts directory.

Jun 26, 2009, 04:53 PM
I apparently missed the last word of the title on this thread. The mv command I gave is for the command line, but can be used in AppleScript as well doing like so,
do shell script "mv old.name new.name"

Jun 27, 2009, 12:40 AM
Is that the entire code? Because if so it hardly seems worth scripting...