Re: file name mutations
Re: file name mutations
- Subject: Re: file name mutations
- From: Michelle Steiner <email@hidden>
- Date: Sun, 16 Sep 2001 22:35:46 -0700
On 9/16/01 10:21 PM, Bryan <email@hidden> wrote:
>
My choice (again the easiest thing to remember) is the
>
ACME Script Widgets OSAXen command "tokenize":
>
>
tell app "Finder"
>
set filepath to "MacHD:nz1711jr-11028812.eps"
>
set oldName to the name of file filepath
>
set newName to (item -1 of (tokenize oldName with delimiters {"-"}))
>
set the name of file filepath to newName
>
end tell.
without that OSAX, use this:
set {tid,text item delimiters} to {text item delimiters,"-"}
set newName to text item -1 of oldName
set text item delimiters to tid
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------