• 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: Find/replace
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Find/replace


  • Subject: Re: Find/replace
  • From: Robert Poland <email@hidden>
  • Date: Tue, 18 Aug 2009 17:29:17 -0600

Thanks Paul and Brad,

I was trying to make it too hard.


On Aug 18, 2009, at 5:12 PM, Houston, Brad wrote:

Here's a quicky

choose folder
set ff to the result

tell application "Finder"
   set listoffiles to every item of ff --FF is the folder
   repeat with x from 1 to count of listoffiles
       copy name of item x of listoffiles to Nname
       set z to text 6 thru (length of Nname) of Nname
       copy z as string to name of item x of listoffiles
   end repeat
end tell
beep 3

Brad Houston


On 8/18/09 3:52 PM, "Robert Poland" <email@hidden> wrote:

Wizards,

I am trying to do a script that will strip the leading 5 characters
from file names.

For example I want "0050_2010_winners_accessories" to become
"2010_winners_accessories".

In my current script I'm trying use these lines, where the "?" would
be a wild card. Apparently the "?" is not valid for this.

property searchStrings : {"00\?\?_"}
property replacementStrings : {""}

TIA,

Bob Poland - Fort Collins, CO



_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden )
Help/Unsubscribe/Update your Subscription:


>
m
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

--------------------------------------------------------

The information contained in this message is intended only for the recipient, and may be a confidential attorney-client communication or may otherwise be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, please be aware that any dissemination or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the message and deleting it from your computer. The McGraw-Hill Companies, Inc. reserves the right, subject to applicable local law, to monitor and review the content of any electronic message or information sent to or from McGraw-Hill employee e-mail addresses without informing the sender or recipient of the message.
--------------------------------------------------------



Bob Poland - Fort Collins, CO



_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Re: Find/replace (From: "Houston, Brad" <email@hidden>)

  • Prev by Date: Re: Value of insertion point in Quark 8
  • Next by Date: Re: Value of insertion point in Quark 8
  • Previous by thread: Re: Find/replace
  • Next by thread: Re: Find/replace
  • Index(es):
    • Date
    • Thread