Does Automator Support Wildcards?

I have a workflow already in Automator and all I want to do is rename a group of PDFs but ask it to ignore 3 characters, ie. ipagexxx090929 - the 3 x's being where I want the numbers ignored. I though Automator would support 'wildcards' but am having no luck.

Any help appreciated.

iMac, Mac OS X (10.5.8)

Posted on Sep 29, 2009 8:33 AM

Reply
10 replies

Sep 29, 2009 3:29 PM in response to Richard Pearce

Automator (or AppleScript) do not use wildcards like several of the shells do, so you might try the *Run Shell Script* action if you are familiar with that kind of thing.

When you rename the file, do you want to leave the characters as-is and rename around them, or just delete those characters? Are the characters you want to ignore always in the same location? I have an Automator action that can rename (or delete) a substring or index range, if that will work for what you are wanting to do.

Jul 29, 2010 6:10 PM in response to red_menace

I know this thread's been dead for nine months, but I just wanted to say thanks. Just today I ran into a situation where I wanted to delete the first seven or eight characters in a series of 634 files. Your script made it beautifully easy. The output from my previous Automator action was a series of PDFs that all had "job XXX-" appended in front of the previous file name. A simple delete starting at the beginning and going until "-" did the charm in about twenty seconds.

Great job!

Feb 25, 2011 8:13 AM in response to sherlockth

Red_Menace. I am trying to do something with Automator and thought you might be able to help. I have a list of filenames: "A-B.mp3" for instance where "A" is everything before the dash and "B" is everything after the dash. How do I create a workflow that would automatically re-order the file name to "B-A.mp3"? Without wildcards, this seems impossible to me.

Feb 26, 2011 12:38 PM in response to brinewr71

Not sure if this would come under wildcards, but a *Run AppleScript* action can be used to swap parts of text around. Are there multiple divider characters, or are you just looking for the first one?

You should post your specific questions to a new topic so that it doesn't get lost in an existing one - I almost missed your question here since this topic is answered. Tiger's Automator is also a bit different than the Leopard ones, if your profile is correct.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Does Automator Support Wildcards?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.