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

Simple text question


  • Subject: Simple text question
  • From: "Script2" <email@hidden>
  • Date: Mon, 7 Jul 2008 13:03:18 -0400
  • Importance: Normal

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 I
missing? I tried set newword to word x of aword as string - did not work.

6000
F
This
is
test
#
1

I want to test which word contains [F].

Thanks

Ruby




 _______________________________________________
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: Jon Pugh <email@hidden>
    • Re: Simple text question
      • From: email@hidden
    • Re: Simple text question
      • From: KOENIG Yvan <email@hidden>
    • Re: Simple text question
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: "running" command issues (From: Ed Stockly <email@hidden>)

  • Prev by Date: Re: help needed - Broken (folder of front window)
  • Next by Date: Re: Simple text question
  • Previous by thread: Re: "running" command issues
  • Next by thread: Re: Simple text question
  • Index(es):
    • Date
    • Thread