• 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: Simple text question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple text question


  • Subject: Re: Simple text question
  • From: email@hidden
  • Date: Mon, 7 Jul 2008 14:20:36 -0400


I am not experience enough in the ways of Apple Script Foo... but if it supports Regular Expressions they are a likely answer to your question.

Or you could solve your problem with Python or Perl which do support regular expressions.


Charles Profitt
Sr. Network Technician
BrainBench Certified - (Master)Microsoft Security | (Master)Storage Area Networks Concepts | (Master)Microsoft Vista Desktop Administration
75 Barker Road
Pittsford, NY 14534

Important Notice:
This communication, including any attachments, is intended only for the use of the individual(s) or entity(s) to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this communication is not the intended recipient, you are hereby notified that any dissemination, distribution or reproduction of any part of this communication in any format is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to this communication and deleting the original and any automatically generated copies. Thank-you for your co-operation.



"Script2" <email@hidden>
Sent by: applescript-users-bounces+chas_profitt=email@hidden

07/07/2008 01:02 PM

To
<email@hidden>
cc
Subject
Simple text question






Set file1text to read file (hotfile0 from 1
Set gterm to every paragraph of file1text
Repeat with aword in gterm
                Display dialog aword
                Set wordcnt to number of words in aword
                Repeat with x from 1 to wordcnt
                                 Display dialog word x of aword
                End repeat
End repeat



Sample text

6000[F]this is test (#1).

6001[F]this is test (#2).


Display dialog aword  - displays - 6000[F]this is test (#1).

Word x of aword ignores the square bracket and the parenthesis. What am 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
  • Follow-Ups:
    • RE: Simple text question
      • From: "Script2" <email@hidden>
References: 
 >Re: "running" command issues (From: Ed Stockly <email@hidden>)
 >Simple text question (From: "Script2" <email@hidden>)

  • Prev by Date: RE: Simple text question
  • Next by Date: RE: Simple text question
  • Previous by thread: Re: Simple text question
  • Next by thread: RE: Simple text question
  • Index(es):
    • Date
    • Thread