• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Newbie question att: Mr Tea
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie question att: Mr Tea


  • Subject: Re: Newbie question att: Mr Tea
  • From: Spencer Sunar <email@hidden>
  • Date: Tue, 13 Feb 2001 10:38:29 +0000

Hello, and thank you Mr Tea for your response,
yes I do need to script to 'watch' a folder, also all its sub folders too.
If this is possible, it would be very useful in automating my image creation
process. If this is not possible an applescript droplet will be fine.

The name changes are always constant i.e.

"<filename>-01.jpg" will always change to "<filename>_200x200.jpg

Kind Regards

Spencer Sunar
Head of Design

bandnewmusic


> I need a script to rename files in a folder
> I.e.
>
> <filename>-01.jpg renamed to <filename)_200x200.jpg
> <filename>-02.jpg renamed to <filename)_160x160.jpg
> <filename>-03.jpg renamed to <filename)_140x140.jpg
>
> Etc.
>
> Does any one have a sample script which can do this?


If the name changes you describe are always constant, this is a
straightforward task for AS, which should require very little input from you
once it's set up.

The most efficient solution will depend on the circumstances under which you
want the script to run. You could use an applescript droplet that will
change the names of images in folders dropped onto it, or you could set up a
folder action script that renames the files when they arrive in the folder
that the script is attached to. The second method would allow you to export
directly into this folder from an app like Photoshop or GraphicConverter,
and have the names changed on the fly.

There are several scripts I use for managing/naming/numbering exported image
files. Please provide a little more information about how you would like
your set up to work, and I'll share what I have with you.

Mr Tea
--
Brew of the day: African Blend


  • Follow-Ups:
    • Re: Newbie question att: Mr Tea
      • From: Mr Tea <email@hidden>
  • Prev by Date: mount a afp volum
  • Next by Date: Word 98: get insertion point
  • Previous by thread: What constitutes an open file?
  • Next by thread: Re: Newbie question att: Mr Tea
  • Index(es):
    • Date
    • Thread