Re: Find/replace
Re: Find/replace
- Subject: Re: Find/replace
- From: "Mark J. Reed" <email@hidden>
- Date: Tue, 18 Aug 2009 20:42:59 -0400
On Tue, Aug 18, 2009 at 6: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.
set truncatedFileName to text 6 thru end of originalFileName
That's if it's really always 5 characters. If you want to get rid of everything up to and including the first "_":
set text item delimiters to "_"
set truncatedFileName to text items 2 thru end of originalFileName as text
--
Mark J. Reed <
email@hidden>
_______________________________________________
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: | |
| >Find/replace (From: Robert Poland <email@hidden>) |