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

Expected end of line, etc. but found identifier


  • Subject: Expected end of line, etc. but found identifier
  • From: Peter R Hawkes <email@hidden>
  • Date: Fri, 27 Nov 2015 22:21:35 +0000
  • Thread-topic: Expected end of line, etc. but found identifier

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



 _______________________________________________
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


  • Follow-Ups:
    • Re: Expected end of line, etc. but found identifier
      • From: 2551 <email@hidden>
    • Re: Expected end of line, etc. but found identifier
      • From: "S. J. Cunningham" <email@hidden>
    • Re: Expected end of line, etc. but found identifier
      • From: Christopher Stone <email@hidden>
  • Prev by Date: Re: How to get the number of items in a selected Folder ?
  • Next by Date: Re: How to get the number of items in a selected Folder ?
  • Previous by thread: Re: Another Mail Script Fails on El Capitan – Send Styled Text
  • Next by thread: Re: Expected end of line, etc. but found identifier
  • Index(es):
    • Date
    • Thread