• 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
Cant get item x in LIST
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cant get item x in LIST


  • Subject: Cant get item x in LIST
  • From: cedrik <email@hidden>
  • Date: Sat, 19 Mar 2005 17:11:11 +0100

Title: Cant get item x in LIST
if (form_item = "Height") then set Height to convert2list(item_value, ",")
if (form_item = "Width") then set Width to convert2list(item_value, ",")

...where form_item comes from different sources while a REPEAT is running and contains values such as:
350,359.10,368.21,377.32,386.43,395.54,404.65,413.76,422.87,431.98,441.09

Gets split by delimiter through:

on convert2list(this_string, this_delimiter)
    set AppleScript's text item delimiters to this_delimiter
    set the item_list to every text item of this_string
    set AppleScript's text item delimiters to ""
    return item_list
end convert2list

Now the stange thing ist – i can easily call:
item x of Height
but not
item x of Width

I can call (count Width) with correct result though, so the “Width” must have been converted to a LIST.

Any explanation to this ?

Thanks for any hints !
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: iCal organization with dates & events & lists....
  • Next by Date: Re: Creating variables with names from other variable values ?
  • Previous by thread: FW: Creating variables with names from other variable values ?
  • Next by thread: Quark Copy Page Question
  • Index(es):
    • Date
    • Thread