• 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: Copy to list Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copy to list Question


  • Subject: Re: Copy to list Question
  • From: "Mark J. Reed" <email@hidden>
  • Date: Tue, 14 Apr 2009 20:51:32 -0400

What?  That doesn't make any sense at all.  You end up with
ListAnimals equal to {"Var1", "Var2", "Var3", "Var4"}.  I assume the
goal is to have ListAnimals equal to {"Cat", "Dog", "Horse",
"Bird"}...

On Tue, Apr 14, 2009 at 8:43 PM, M Pulis <email@hidden> wrote:
> cool... learned something new!
> thanks folks!
> gary
> On Apr 14, 2009, at 5:14 PM, Peter Baxter wrote:
>
> Hi Oakley
>
> It's quite easy to do this, however you need to define Varx seperately:
> set ListAnimals to ""
> set Var1 to "Cat"
> set Var2 to "Dog"
> set Var3 to "Horse"
> set Var4 to "Bird"
> set ListAnimals to {}
> repeat with x from 1 to 4
> set varx to "Var" & x
> set ListAnimals to ListAnimals & varx
> end repeat
> ListAnimals
>
> On 15/04/2009, at 7:25 AM, Oakley Masten wrote:
>
> Hi All
> Can this be done?
> It says Var is not defined.
> How do I fix this?
>
> set Var1 to "Cat"
> set Var2 to "Dog"
> set Var3 to "Horse"
> set Var4 to "Bird"
> set ListAnimals to {}
> repeat with x from 1 to 4
> copy (Var & x) to ListAnimals
> end repeat
> ListAnimals
> Thanks
> Oakley
> _______________________________________________
> 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
>
>  _______________________________________________
> 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
>
>  _______________________________________________
> 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
>



--
Mark J. Reed <email@hidden>
 _______________________________________________
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: Copy to list Question
      • From: M Pulis <email@hidden>
References: 
 >Fwd: Copy to list Question (From: Peter Baxter <email@hidden>)
 >Re: Copy to list Question (From: M Pulis <email@hidden>)

  • Prev by Date: Re: Copy to list Question
  • Next by Date: Re: Copy to list Question
  • Previous by thread: Re: Copy to list Question
  • Next by thread: Re: Copy to list Question
  • Index(es):
    • Date
    • Thread