• 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
Re: Expected end of line, etc. but found identifier
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Expected end of line, etc. but found identifier


  • Subject: Re: Expected end of line, etc. but found identifier
  • From: "S. J. Cunningham" <email@hidden>
  • Date: Sat, 28 Nov 2015 20:48:52 -0500

On Nov 27, 2015, at 5:21 PM, Peter R Hawkes wrote:

> Simple script, below, that has worked. Taking it into the Editor and making a change I get the following error on the word ‘messages’  in the second line of code, when trying to compile …… what have I done?
>
>
> Syntax error
>
> Expected end of line, etc. but found identifier.
>
>
>
> tell application "Microsoft Outlook"
>
> 	set msgSet to current messages
>
> 	if msgSet = {} then
> 		error "No messages selected. Select at least one message."
> 		error -128
> 	end if
>
> 	repeat with aMessage in msgSet
>
> 		set category of aMessage to {category "PMH"}
>
> 	end repeat
>
> end tell
>
>
>
> Peter R Hawkes

I have seen a problem like that with Script Debugger.  Drove me crazy.  Quitting Script Debugger and then restarting it then opening the script and recompiling it fixed the problem.  Go figure.  What did you change from the working version?

Steve
------------------
OS X 10.6.8, AppleScript 2.1.2


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


References: 
 >Expected end of line, etc. but found identifier (From: Peter R Hawkes <email@hidden>)

  • Prev by Date: Re: Expected end of line, etc. but found identifier
  • Next by Date: Re: Expected end of line, etc. but found identifier
  • Previous by thread: Re: Expected end of line, etc. but found identifier
  • Next by thread: Re: Expected end of line, etc. but found identifier
  • Index(es):
    • Date
    • Thread