Syntax Error Help

Posted on
Tue Feb 12, 2013 6:28 pm
CraigM offline
Posts: 591
Joined: Oct 28, 2007

Syntax Error Help

I'm attempting to create an external applescript file. So I entered this into the Mac script editor:
Code: Select all
if value of variable "HomeAway" is "away" then
    execute group "Security HOME"
else if value of variable "HomeAway" is "home" then
    execute group "Security Away"
end if

But when I Compile or Save As Script I get this:
Syntax Error
Expected "then", etc. but found "".

With the first " highlighted

Posted on
Tue Feb 12, 2013 7:18 pm
ckeyes888 offline
Posts: 2425
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Syntax Error Help

Sounds like all you need to add is the tell block.

Just add:

Tell application "Indigoserver"

as the first line and end tell as the last.

Carl

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 11 guests