• 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
Help with the "Contains" command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with the "Contains" command


  • Subject: Help with the "Contains" command
  • From: Vic Piercy <email@hidden>
  • Date: Tue, 19 Oct 2004 11:45:19 -0700

I am trying to use "Contains" in my script but it is not working correctly. I was wondering if anyone can help. Here is what I am trying to do.

Tell application "Illustrator CS"
activate

tell document 1
set my_spot to name of spot 1 as text
if my_spot contains "Home" or "165" or "Orange" then...........


I would like to add more then the "Home" text to search for. I tried {"Home", "165", "orange"} but that fails to work.


any help would be appreciated. Thank You!

Vic Piercy



_______________________________________________
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


  • Follow-Ups:
    • Re: Help with the "Contains" command
      • From: David Andrews <email@hidden>
    • Re: Help with the "Contains" command
      • From: Andrew Oliver <email@hidden>
    • Re: Help with the "Contains" command
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Appleworks.
  • Next by Date: Re: Scripting MS Word "Insert Subdocument"
  • Previous by thread: Re: Appleworks.
  • Next by thread: Re: Help with the "Contains" command
  • Index(es):
    • Date
    • Thread