• 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
Deleting a Custom Property in Word 2011
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Deleting a Custom Property in Word 2011


  • Subject: Deleting a Custom Property in Word 2011
  • From: Dave <email@hidden>
  • Date: Mon, 14 Mar 2016 17:38:53 +0000

Hi All,

Does anyone have any idea of how to delete a Custom Document Property in Word 2011?

i’ve tried this but just get an error:

on deletewWordCustomDocumentPropertyWithDocumentID:(theDocumentID as string) andPropertyName:(thePropertyName as string)
	--say "deletewWordCustomDocumentPropertyWithDocumentID:"

	set myDocument to my getWordDocumentWithDocumentID:theDocumentID

	tell application id "com.microsoft.Word"
		set myCustomPropertyList to the (custom document properties of myDocument whose name is thePropertyName)
		if (count of myCustomPropertyList) = 0 then
			return
		end if

		delete the (custom document properties of myDocument whose name is thePropertyName)
	end tell

end deletewWordCustomDocumentPropertyWithDocumentID:andPropertyName:

Thanks a lot,
Dave


 _______________________________________________
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


  • Prev by Date: Re: Weird problem with a script?
  • Next by Date: Problem getting Standard Doc Properties in Word 2011
  • Previous by thread: Re: Hoping for some advice
  • Next by thread: Problem getting Standard Doc Properties in Word 2011
  • Index(es):
    • Date
    • Thread