image
image

Go Back   macosx.com > Scripts > Automator Scripts

Reply
 
Thread Tools
  #1  
Old January 29th, 2008, 05:55 PM
wicky's Avatar
play thing
 
Join Date: Jul 2002
Location: London
Posts: 358
Thanks: 0
Thanked 0 Times in 0 Posts
wicky is on a distinguished road
Automator wildcard?

I'm using OS x version 10.4.10

I have a LOAD of very annoyingly named files:
rf_header__0000_01.jpg
rf_header__0001_02.jpg
rf_header__0002_03.jpg
etc

I want to rename them to something more sensible like 01.jpg, 02, 03, etc.

I thought this is something that Automator would do with ease, but I would obviously have to use a wildcard for the varible numbers in the middle of the string:

I tried:
rf_header__****_01.jpg
but no joy!

Can somebody let me know how to use wildcards in Automator.

NB. Wildcards are the only thing that I miss from my M$ PeeCee days. You could use ***'s anywhere in the File Explorer. Is there a good reason why this is so much more difficult on a Mac?
__________________
#me {
Leaf Media: Design & Dev;
Liquid Layouts: Interactive Photography;
}
Reply With Quote
  #2  
Old January 29th, 2008, 05:58 PM
wicky's Avatar
play thing
 
Join Date: Jul 2002
Location: London
Posts: 358
Thanks: 0
Thanked 0 Times in 0 Posts
wicky is on a distinguished road
Ooops. Think I put this is the wrong forum... I'm a bit tired. Sorry!

Could somebody with access please move it to a more sensible new home.

Thanks
__________________
#me {
Leaf Media: Design & Dev;
Liquid Layouts: Interactive Photography;
}
Reply With Quote
  #3  
Old February 12th, 2008, 05:39 PM
wicky's Avatar
play thing
 
Join Date: Jul 2002
Location: London
Posts: 358
Thanks: 0
Thanked 0 Times in 0 Posts
wicky is on a distinguished road
Any info on using wildcards in OSx (automator or not) would be VERY useful.

???
Ta
__________________
#me {
Leaf Media: Design & Dev;
Liquid Layouts: Interactive Photography;
}
Reply With Quote
  #4  
Old February 12th, 2008, 06:40 PM
macbri's Avatar
Mac (r)evolution
 
Join Date: Jun 2005
Location: Ireland
Posts: 251
Thanks: 1
Thanked 0 Times in 0 Posts
macbri is on a distinguished road
In automator there's no direct way as far as I know, although you could string two "rename"modules together...



But you might also look into using the terminal. There's various ways of doing it, some decent examples here:

http://www.macosxhints.com/article.p...10509130450691
Reply With Quote
  #5  
Old April 12th, 2008, 11:51 AM
Registered User
 
Join Date: Apr 2004
Posts: 202
Thanks: 0
Thanked 0 Times in 0 Posts
rubaiyat is on a distinguished road
Why not just use A Better Finder Renamer or its equivalent?

Certainly beats trying to get Automator to jump through hoops Apple never designed it for.

Automator has never lived up to its hype in my experience. There are so many things it won't or can't do. Or does in such an awkward way that debugging it takes longer than doing the job manually.
Reply With Quote
  #6  
Old April 13th, 2008, 06:54 AM
wicky's Avatar
play thing
 
Join Date: Jul 2002
Location: London
Posts: 358
Thanks: 0
Thanked 0 Times in 0 Posts
wicky is on a distinguished road
Quote:
Originally Posted by rubaiyat View Post
Why not just use A Better Finder Renamer or its equivalent?....
Because the issue isn't just about renaming some files in Finder, that's an example.

Quote:
Originally Posted by rubaiyat View Post
... Automator has never lived up to its hype in my experience. There are so many things it won't or can't do. .....
Yeah, I agree. The ability to use a wildcard would probably sort that out. Hence the question.

Thanks.
__________________
#me {
Leaf Media: Design & Dev;
Liquid Layouts: Interactive Photography;
}
Reply With Quote
  #7  
Old May 19th, 2008, 10:13 PM
Registered User
 
Join Date: Apr 2004
Posts: 202
Thanks: 0
Thanked 0 Times in 0 Posts
rubaiyat is on a distinguished road
Odd how Apple skirts around wild cards, in Spotlight as well.
Reply With Quote
Reply

Tags
automator, wildcard

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 02:50 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.