• 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: delete first 3 characters in a file name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: delete first 3 characters in a file name


  • Subject: Re: delete first 3 characters in a file name
  • From: Michelle Steiner <email@hidden>
  • Date: Thu, 9 Dec 2004 17:10:41 -0700

On Dec 9, 2004, at 10:32 AM, Bill White wrote:

set newName to characters 5 thru -1 of oldName as string

By using txt item delimiters set to "_", the number of characters to be stripped is not an issue, nor is the number of characters to be retained. It is a more general solution, and makes only the assumption that there is an underscore in the file name, and that only those characters after the underscore are to be retained.


--
Windows was always a mystery to me; the biggest mystery being "Why does anyone want to use this?"


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


References: 
 >Re: delete first 3 characters in a file name (From: Bill White <email@hidden>)

  • Prev by Date: Re: delete first 3 characters in a file name
  • Next by Date: truncate the hostname of local computer
  • Previous by thread: Re: delete first 3 characters in a file name
  • Next by thread: Re: delete first 3 characters in a file name
  • Index(es):
    • Date
    • Thread