• 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
every character of theVar, as string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

every character of theVar, as string


  • Subject: every character of theVar, as string
  • From: Jeffrey Mattox <email@hidden>
  • Date: Sat, 10 May 2003 17:23:14 -0500

In my ASS project (but this question is more applicable to AS in general), I get a field from an AppleWorks database record thusly:

set theVar to (get |Name| of theRecord) -- an AppleWorks text field

Later, I have these lines (my "working form"):

-- theRow is a new row at the end of a data source
set text item delimiters to ""
contents of data cell "x" of theRow to (every character of theVar) as string

I got there by trial and error. I don't understand why I cannot use other forms, such as these (they all fail, resulting in an empty cell):

contents of data cell "x" of theRow to theVar
contents of data cell "x" of theRow to theVar as string
contents of data cell "x" of theRow to theVar as text

Could somebody enlighten me as to what my working form is actually doing to theVar?

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

  • Follow-Ups:
    • Re: every character of theVar, as string
      • From: david <email@hidden>
  • Prev by Date: Separations in Quark
  • Next by Date: Re: every character of theVar, as string
  • Previous by thread: Re: Separations in Quark
  • Next by thread: Re: every character of theVar, as string
  • Index(es):
    • Date
    • Thread