Re: Renaming Files
Re: Renaming Files
- Subject: Re: Renaming Files
- From: Emmanuel <email@hidden>
- Date: Fri, 27 Jul 2001 13:43:40 +0200
At 7:06 +0200 27/07/01, monk wrote:
>
>
-- 7/26/01 09:36 pm: email@hidden said:
>
>
> I have what I hope is a simple question:
>
>
>
> I want to be able to take SimpleText pictures and convert their file
>
> names to include a suffix (.PICT, .GIF, .JPEG) so they can be readily
>
> uploaded for use in a web page. I am trying to figure out how I can
>
> do the entire folder in one script. So far I am not having much
>
> luck. Any ideas?
>
>
>
here:
>
>
<script>
>
-- ADD PREFIX/SUFFIX TO FILES
>
-- )1998 Sal Soghoian, Apple Computer
>
>
tell application "finder"
[...]
Thanks to Sal for this script.
Note that it will work only on English-speaking OS's.
To make it work internationally, you should insert the following line (or a
similar one) where suitable after each "display dialog ... with buttons
{"Cancel", ...}":
--------------------------------
if button_pressed is "Cancel" then error number -128
--------------------------------
Emmanuel