• 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: file name mutations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. |
----------------------------------------------------------------------


  • Prev by Date: Re: file name mutations
  • Next by Date: Re: file name mutations
  • Previous by thread: Re: file name mutations
  • Next by thread: Re: file name mutations
  • Index(es):
    • Date
    • Thread