Re: Setting Variables to List Items
Re: Setting Variables to List Items
- Subject: Re: Setting Variables to List Items
- From: John Delacour <email@hidden>
- Date: Tue, 18 Mar 2003 21:06:38 +0000
- Mac-eudora-version: 6.0a11
At 2:09 pm -0600 18/3/03, Peter Bunn wrote:
I'm trying to define (or associate?) a sequence of variables to a list of
individual items... (or at least that's what I _think_ I'm trying to do).
Please see the snippet below.
Is this thwhat you're trying to do ? ...
set s to "-walk-run-hide-quit"
set my text item delimiters to "-"
set {ls, text item delimiters} to {text items 2 through -1 of s, ""}
tell SomeApplication to doThis(item 1 of ls)
--
script SomeApplication
on doThis(action)
return "OK, I'm " & action & "ing."
end doThis
end script
_______________________________________________
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.