• 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
Text items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Text items


  • Subject: Text items
  • From: "Fleisher, Ken" <email@hidden>
  • Date: Tue, 16 Jan 2007 13:12:43 -0500
  • Thread-topic: Text items

Title: Text items
I have the following code:

    set AppleScript's text item delimiters to "."
    repeat with i from 1 to c1
       set item i of names1 to text item 1 of item i of names1
   end repeat

This will for example take the file name without the “.xxx” extension for every file name in a list (I know there can be “.” elsewhere in the name, but for this purpose, our naming conventions do not permit it.)

Is there some way to do this without the loop? For example, this does not work:

set AppleScript's text item delimiters to "."
set names1 to text item 1 of every item of names1

Thanks in advance!

--
Ken Fleisher

Photographer
Imaging & Visual Services
National Gallery of Art
Washington, D.C.

Phone: (202) 712-7471
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/mailman//archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Text items
      • From: kai <email@hidden>
    • Re: Text items
      • From: Emmanuel <email@hidden>
  • Prev by Date: Using list of indices
  • Next by Date: Re: Using list of indices
  • Previous by thread: Re: Using list of indices
  • Next by thread: Re: Text items
  • Index(es):
    • Date
    • Thread