Re: Help with the "Contains" command
Re: Help with the "Contains" command
- Subject: Re: Help with the "Contains" command
- From: David Andrews <email@hidden>
- Date: Tue, 19 Oct 2004 21:06:54 -0400
And using a list, you can do something like this:
set my_spot to "165"
{"Home", "165", "orange"} contains my_spot
--> true
David
On Oct 19, 2004, at 2:45 PM, Vic Piercy wrote:
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:
email@hidden
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:
This email sent to email@hidden