Page 1 of 1

Newbie code help.

Posted: Thu Sep 25, 2014 3:26 am
by shawnblc
I'm not getting an errors, but it's not working either.
my txt file contains:

test 123
testing 456

Code: Select all

   set itemdel to tab
   put fld "fldUser" into tUser
   put item 1 of URL "http://url.com/c/users.txt" into tLoginUser
   if tUser = tLoginUser then
      launch URL "http://yahoo.com"
   end if
   
* This is just for my own learning.

Re: Newbie code help.

Posted: Thu Sep 25, 2014 4:01 am
by sefrojones
I replaced "item" for "word" and it worked in LC 7.0 (RC2) :D

OR

Changing the itemdelimiter to space works also.


--Sefro

Re: Newbie code help.

Posted: Thu Sep 25, 2014 8:49 pm
by shawnblc
sefrojones wrote:I replaced "item" for "word" and it worked in LC 7.0 (RC2) :D

OR

Changing the itemdelimiter to space works also.


--Sefro
lol. good to know.