• 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
Fwd: String parsing - help!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: String parsing - help!


  • Subject: Fwd: String parsing - help!
  • From: Lui <email@hidden>
  • Date: Fri, 22 Nov 2002 00:55:09 -0800 (PST)

Thank you for all your helpful solutions. Now that I
understand a bit more what can be done, the required
logic changed a bit:

Instead of one long string, the incoming file will a
pair of token and value in each record as follows:
-Name John Smith
-Address 123 Home Ave
-City San Diego
-State California
-Zip 92101

I need to put certain value into FileMakerPro. Lets
say its the City and State.

So the pseudo code would be:
open file to read
loop to read each record, if the token is "-City",
then update the FMP field with the value. Do the same
for "-State".

Please let me know if my logic is on the right track.
I find myself doing a lot of questionable loops,I
would appreciate some help on the syntex.

Sharon

--- Lui <email@hidden> wrote:
> Date: Thu, 21 Nov 2002 11:51:14 -0800 (PST)
> From: Lui <email@hidden>
> Subject: String parsing - help!
> To: Applescript <email@hidden>
>
> There must be an easier way to do the following
> parsing...
>
> I have an incoming string '-Name John Smith -Address
> 123 Home Ave -City San Diego -State California -Zip
> 92101'
>
> I am trying to capture the values into the
> cooresponding fields in FileMaker cells.
>
> I would really appreciate some help.
> Sharon
> Yahoo! Mail Plus  Powerful. Affordable. Sign up
> now.
> http://mailplus.yahoo.com
Yahoo! Mail Plus  Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Number of days left in the month
  • Next by Date: Re: Number of days left in the month
  • Previous by thread: Re: String parsing - help!
  • Next by thread: Replacement for "Akua Sweets" in OSX
  • Index(es):
    • Date
    • Thread