View Full Version : Looking for someone to help me convert a short .bat file to AppleScript
Grahf
Jun 26, 2009, 03: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
iShater
Jun 26, 2009, 03:27 PM
Are those two different bat files? cause the 2nd code block reverses what the first one does.
Grahf
Jun 26, 2009, 03:29 PM
Yes, they are. Sorry I didn't specify.
angelwatt
Jun 26, 2009, 03:37 PM
Instead of rename, use mv.
Grahf
Jun 26, 2009, 03:39 PM
Is the period part of the code or just a period? :P
angelwatt
Jun 26, 2009, 04:43 PM
Is the period part of the code or just a period? :P
It's just a period. mv short for move.
poppero
Jun 26, 2009, 05: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.
angelwatt
Jun 26, 2009, 05: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"
HiRez
Jun 27, 2009, 01:40 AM
Is that the entire code? Because if so it hardly seems worth scripting...
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.